org.firebirdsql.jdbc
Class FBDriverPropertyManager
java.lang.Objectorg.firebirdsql.jdbc.FBDriverPropertyManager
public class FBDriverPropertyManager
extends java.lang.Object
Manager of the DPB properties.
static String | getCanonicalName(String propertyName)
|
static DriverPropertyInfo[] | getDriverPropertyInfo(Properties props)- Get property information for the specified properties.
|
static void | handleEncodings(HashMap info)- Handle character encoding parameters.
|
static HashMap | normalize(String url, Map props)- Normalize the properties.
|
getCanonicalName
public static String getCanonicalName(String propertyName)
getDriverPropertyInfo
public static DriverPropertyInfo[] getDriverPropertyInfo(Properties props)
Get property information for the specified properties.
props - instance of Properties.
- array of
DriverPropertyInfo instances.
handleEncodings
public static void handleEncodings(HashMap info)
throws SQLException Handle character encoding parameters. This method ensures that both
java encoding an client connection encodings are correctly set.
Additionally method handles the character translation stuff.
info - connection properties
normalize
public static HashMap normalize(String url,
Map props)
throws SQLException Normalize the properties. This method resolves the aliases to their
original names. Also it restores the short syntax for the DPB parameters.
props - instance of Properties containing original properties.
- instance of
Properties containing the normalized ones.
Copyright B) 2001 David Jencks and other authors. All rights reserved.