org.firebirdsql.jdbc
Class FBDriverPropertyManager

java.lang.Object
  extended by org.firebirdsql.jdbc.FBDriverPropertyManager

public class FBDriverPropertyManager
extends java.lang.Object

Manager of the DPB properties.


Constructor Summary
FBDriverPropertyManager()
           
 
Method Summary
static java.lang.String getCanonicalName(java.lang.String propertyName)
           
static java.sql.DriverPropertyInfo[] getDriverPropertyInfo(java.util.Properties props)
          Get property information for the specified properties.
static void handleEncodings(java.util.HashMap info)
          Handle character encoding parameters.
static java.util.HashMap normalize(java.util.Properties props)
          Normalize the properties.
static java.util.Map<java.lang.String,java.lang.String> normalize(java.lang.String url, java.util.Properties props)
          Deprecated. Use normalize(Properties) instead. Method will be removed in Jaybird 3.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBDriverPropertyManager

public FBDriverPropertyManager()
Method Detail

normalize

@Deprecated
public static java.util.Map<java.lang.String,java.lang.String> normalize(java.lang.String url,
                                                                                    java.util.Properties props)
                                                                  throws java.sql.SQLException
Deprecated. Use normalize(Properties) instead. Method will be removed in Jaybird 3.0

Normalize the properties. This method resolves the aliases to their original names. Also it restores the short syntax for the DPB parameters.

Parameters:
url - ignored
props - instance of Properties containing original properties.
Returns:
instance of Map containing the normalized ones.
Throws:
java.sql.SQLException - if original properties reference the same DPB parameter using both alias and original name.

normalize

public static java.util.HashMap normalize(java.util.Properties props)
                                   throws java.sql.SQLException
Normalize the properties. This method resolves the aliases to their original names. Also it restores the short syntax for the DPB parameters.

Parameters:
props - instance of Properties containing original properties.
Returns:
instance of Map containing the normalized ones.
Throws:
java.sql.SQLException - if original properties reference the same DPB parameter using both alias and original name.

getCanonicalName

public static java.lang.String getCanonicalName(java.lang.String propertyName)

handleEncodings

public static void handleEncodings(java.util.HashMap info)
                            throws java.sql.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.

Parameters:
info - connection properties
Throws:
java.sql.SQLException - if both isc_dpb_local_encoding and charSet are specified.

getDriverPropertyInfo

public static java.sql.DriverPropertyInfo[] getDriverPropertyInfo(java.util.Properties props)
Get property information for the specified properties.

Parameters:
props - instance of Properties.
Returns:
array of DriverPropertyInfo instances.


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.