|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.jca.FBTpbMapper
This class is provides mapping capabilities between standard JDBC transaction isolation level and Firebird Transaction Parameters Block (TPB).
Field Summary | |
static FBTpbMapper |
DEFAULT_MAPPER
|
static java.lang.String |
DEFAULT_MAPPING_RESOURCE
|
Constructor Summary | |
FBTpbMapper()
Create instance of this class with the default mapping of JDBC transaction isolation levels to Firebird TPB. |
|
FBTpbMapper(java.util.Map stringMapping)
Create instance of this class for the specified string mapping. |
|
FBTpbMapper(java.lang.String mappingResource,
java.lang.ClassLoader cl)
Create instance of this class and load mapping from the specified resource. |
Method Summary | |
java.util.Set |
getDefaultMapping()
Get default mapping. |
java.util.Set |
getMapping(int transactionIsolation)
Get mapping for the specified transaction isolation level. |
void |
setMapping(int transactionIsolation,
java.util.Set tpb)
Set mapping for the specified transaction isolation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_MAPPING_RESOURCE
public static final FBTpbMapper DEFAULT_MAPPER
Constructor Detail |
public FBTpbMapper()
public FBTpbMapper(java.util.Map stringMapping) throws FBResourceException
stringMapping
- mapping of JDBC transaction isolation to Firebird
mapping. Keys and values of this map must be strings. Keys can have
following values:
"TRANSACTION_SERIALIZABLE"
"TRANSACTION_REPEATABLE_READ"
"TRANSACTION_READ_COMMITTED"
"TRANSACTION_READ_UNCOMMITTED"
"isc_tpb_consistency"
"isc_tpb_concurrency"
"isc_tpb_read_committed"
"isc_tpb_rec_version"
"isc_tpb_no_rec_version"
"isc_tpb_wait"
"isc_tpb_nowait"
"isc_tpb_read"
"isc_tpb_write"
"isc_tpb_lock_read"
"isc_tpb_lock_write"
"isc_tpb_shared"
"isc_tpb_protected"
FBResourceException
- if mapping contains incorrect values.public FBTpbMapper(java.lang.String mappingResource, java.lang.ClassLoader cl) throws FBResourceException
mappingResource
- name of the resource to load.cl
- class loader that should be used to load specified resource.
FBResourceException
- if resource cannot be loaded or contains
incorrect values.Method Detail |
public java.util.Set getMapping(int transactionIsolation) throws FBResourceException
transactionIsolation
- transaction isolation level.
FBResourceException
- if specified transaction isolation level
is unknown.public void setMapping(int transactionIsolation, java.util.Set tpb) throws FBResourceException
transactionIsolation
- transaction isolation level.tpb
- TPB parameters.
FBResourceException
- if incorrect isolation level is specified.public java.util.Set getDefaultMapping()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |