public class FBConnectionHelper
extends java.lang.Object
FBConnectionRequestInfo
instance. It uses
java.lang.reflection.
to determine correct type of the parameter
passed to the Driver.connect(String, Properties)
method.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DPB_PREFIX |
static java.lang.String |
ISC_DPB_TYPES_RESOURCE |
static java.lang.String |
TPB_MAPPING_PROPERTY |
static java.lang.String |
TPB_PREFIX |
static java.lang.String |
TRANSACTION_READ_COMMITTED |
static java.lang.String |
TRANSACTION_REPEATABLE_READ |
static java.lang.String |
TRANSACTION_SERIALIZABLE |
Constructor and Description |
---|
FBConnectionHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
getDpbKey(java.lang.String name)
Get integer value of the DPB key corresponding to the specified name.
|
static java.util.Map<java.lang.String,java.lang.Integer> |
getDpbMap()
Get mapping between DPB names and their keys.
|
static java.lang.Integer |
getTpbParam(java.lang.String name)
Get value of TPB parameter for the specified name.
|
static java.lang.Object |
parseDpbString(java.lang.String name,
java.lang.Object value) |
static void |
processTpbMapping(GDS gds,
FirebirdConnectionProperties connectionProperties,
java.util.Properties info)
This method extracts TPB mapping information from the connection
parameters and adds it to the connectionProperties.
|
public static final java.lang.String TRANSACTION_SERIALIZABLE
public static final java.lang.String TRANSACTION_REPEATABLE_READ
public static final java.lang.String TRANSACTION_READ_COMMITTED
public static final java.lang.String DPB_PREFIX
public static final java.lang.String TPB_PREFIX
public static final java.lang.String TPB_MAPPING_PROPERTY
public static final java.lang.String ISC_DPB_TYPES_RESOURCE
public static java.lang.Integer getDpbKey(java.lang.String name)
name
- name of the key.Integer
corresponding to the specified name
or null
if value is not known.public static java.util.Map<java.lang.String,java.lang.Integer> getDpbMap()
Map
, where key is the name of DPB parameter,
value is its DPB key.public static java.lang.Object parseDpbString(java.lang.String name, java.lang.Object value)
public static void processTpbMapping(GDS gds, FirebirdConnectionProperties connectionProperties, java.util.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"
.
gds
- GDS objectconnectionProperties
- FirebirdConnectionProperties to set transaction stateinfo
- connection parameters passed into a driver.FBResourceException
- if specified mapping is incorrect.public static java.lang.Integer getTpbParam(java.lang.String name)
name
- string representation of TPB parameter, can have "isc_tpb_"
prefix.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.