|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBConnectionHelper
public class FBConnectionHelper
This class maps the extended JDBC properties to the
FBConnectionRequestInfo instance. It uses
java.lang.reflection. to determine correct type of the parameter
passed to the Driver.connect(String, Properties) method.
| Field Summary | |
|---|---|
static String |
DPB_PREFIX
|
static String |
ISC_DPB_TYPES_RESOURCE
|
static String |
TPB_MAPPING_PROPERTY
|
static String |
TPB_PREFIX
|
static String |
TRANSACTION_READ_COMMITTED
|
static String |
TRANSACTION_REPEATABLE_READ
|
static String |
TRANSACTION_SERIALIZABLE
|
| Constructor Summary | |
|---|---|
FBConnectionHelper()
|
|
| Method Summary | |
|---|---|
static Integer |
getDpbKey(String name)
Get integer value of the DPB key corresponding to the specified name. |
static Map |
getDpbMap()
Get mapping between DPB names and their keys. |
static Integer |
getTpbParam(String name)
Get value of TPB parameter for the specified name. |
static Object |
parseDpbString(String name,
Object value)
|
static void |
processTpbMapping(GDS gds,
FirebirdConnectionProperties connectionProperties,
Properties info)
This method extracts TPB mapping information from the connection parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TRANSACTION_SERIALIZABLE
public static final String TRANSACTION_REPEATABLE_READ
public static final String TRANSACTION_READ_COMMITTED
public static final String DPB_PREFIX
public static final String TPB_PREFIX
public static final String TPB_MAPPING_PROPERTY
public static final String ISC_DPB_TYPES_RESOURCE
| Constructor Detail |
|---|
public FBConnectionHelper()
| Method Detail |
|---|
public static Integer getDpbKey(String name)
name - name of the key.
Integer corresponding to the specified name
or null if value is not known.public static Map getDpbMap()
Map, where key is the name of DPB parameter,
value is its DPB key.
public static Object parseDpbString(String name,
Object value)
public static void processTpbMapping(GDS gds,
FirebirdConnectionProperties connectionProperties,
Properties info)
throws FBResourceException
info contains "tpb_mapping" parameter
pointing to a resource bundle with mapping information;
info contains separate mappings for each of following
transaction isolation levels: "TRANSACTION_SERIALIZABLE",
"TRANSACTION_REPEATABLE_READ" and
"TRANSACTION_READ_COMMITTED".
info - connection parameters passed into a driver.
FBResourceException - if specified mapping is incorrect.public static Integer getTpbParam(String name)
name - string representation of TPB parameter, can have "isc_tpb_"
prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||