org.firebirdsql.jca
Class FBTpb

java.lang.Object
  extended byorg.firebirdsql.jca.FBTpb
All Implemented Interfaces:
java.io.Serializable

public class FBTpb
extends java.lang.Object
implements java.io.Serializable

FBTpb.java Created: Wed Jun 19 10:12:22 2002

Author:
David Jencks
See Also:
Serialized Form

Field Summary
static java.lang.Integer ISC_TPB_CONCURRENCY
           
static java.lang.Integer ISC_TPB_CONSISTENCY
           
static java.lang.Integer ISC_TPB_NO_REC_VERSION
           
static java.lang.Integer ISC_TPB_NOWAIT
           
static java.lang.Integer ISC_TPB_READ
           
static java.lang.Integer ISC_TPB_READ_COMMITTED
           
static java.lang.Integer ISC_TPB_REC_VERSION
           
static java.lang.Integer ISC_TPB_WAIT
           
static java.lang.Integer ISC_TPB_WRITE
           
static java.lang.String TRANSACTION_NONE
           
static java.lang.String TRANSACTION_READ_COMMITTED
           
static java.lang.String TRANSACTION_READ_UNCOMMITTED
           
static java.lang.String TRANSACTION_REPEATABLE_READ
           
static java.lang.String TRANSACTION_SERIALIZABLE
           
 
Constructor Summary
FBTpb(FBTpb tpb)
           
FBTpb(FBTpbMapper mapper)
           
 
Method Summary
 void add(java.lang.Integer key)
           
 boolean equals(java.lang.Object other)
           
 byte[] getArray()
           
 int getIscTransactionIsolation()
          Deprecated. This method should not be used by applications because only JDBC transaction isolation levels should be used. Also corresponding setter method is deprecated, so using this method makes a little sense without it.
 FBTpbMapper getMapper()
           
 int getTransactionIsolation()
          Gets this Connection's current transaction isolation level.
 java.lang.String getTransactionIsolationName()
           
 int hashCode()
           
 boolean isReadOnly()
           
 void setIscTransactionIsolation(int isolation)
          Deprecated. This method does not handle correctly JDBC-TPB mapping and should not be called if custom mapping is used.
 void setMapper(FBTpbMapper mapper)
           
 void setReadOnly(boolean readOnly)
           
 void setTpb(FBTpb tpb)
           
 void setTransactionIsolation(int level)
          Attempts to change the transaction isolation level to the one given.
 void setTransactionIsolationName(java.lang.String tin)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_SERIALIZABLE

public static final java.lang.String TRANSACTION_SERIALIZABLE
See Also:
Constant Field Values

TRANSACTION_REPEATABLE_READ

public static final java.lang.String TRANSACTION_REPEATABLE_READ
See Also:
Constant Field Values

TRANSACTION_READ_COMMITTED

public static final java.lang.String TRANSACTION_READ_COMMITTED
See Also:
Constant Field Values

TRANSACTION_READ_UNCOMMITTED

public static final java.lang.String TRANSACTION_READ_UNCOMMITTED
See Also:
Constant Field Values

TRANSACTION_NONE

public static final java.lang.String TRANSACTION_NONE
See Also:
Constant Field Values

ISC_TPB_CONSISTENCY

public static final java.lang.Integer ISC_TPB_CONSISTENCY

ISC_TPB_CONCURRENCY

public static final java.lang.Integer ISC_TPB_CONCURRENCY

ISC_TPB_READ_COMMITTED

public static final java.lang.Integer ISC_TPB_READ_COMMITTED

ISC_TPB_REC_VERSION

public static final java.lang.Integer ISC_TPB_REC_VERSION

ISC_TPB_NO_REC_VERSION

public static final java.lang.Integer ISC_TPB_NO_REC_VERSION

ISC_TPB_WAIT

public static final java.lang.Integer ISC_TPB_WAIT

ISC_TPB_NOWAIT

public static final java.lang.Integer ISC_TPB_NOWAIT

ISC_TPB_READ

public static final java.lang.Integer ISC_TPB_READ

ISC_TPB_WRITE

public static final java.lang.Integer ISC_TPB_WRITE
Constructor Detail

FBTpb

public FBTpb(FBTpbMapper mapper)

FBTpb

public FBTpb(FBTpb tpb)
Method Detail

getMapper

public FBTpbMapper getMapper()

setMapper

public void setMapper(FBTpbMapper mapper)
               throws FBResourceException
Throws:
FBResourceException

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

setTpb

public void setTpb(FBTpb tpb)

add

public void add(java.lang.Integer key)

setTransactionIsolationName

public void setTransactionIsolationName(java.lang.String tin)
                                 throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

getTransactionIsolationName

public java.lang.String getTransactionIsolationName()
                                             throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws javax.resource.ResourceException
Attempts to change the transaction isolation level to the one given. The constants defined in the interface Connection are the possible transaction isolation levels.

Note: This method cannot be called while in the middle of a transaction.

Parameters:
level - one of the TRANSACTION_* isolation values with the exception of TRANSACTION_NONE; some databases may not support other values
Throws:
SQLException - if a database access error occurs
javax.resource.ResourceException

getTransactionIsolation

public int getTransactionIsolation()
                            throws javax.resource.ResourceException
Gets this Connection's current transaction isolation level.

Returns:
the current TRANSACTION_* mode value
Throws:
SQLException - if a database access error occurs
javax.resource.ResourceException

getIscTransactionIsolation

public int getIscTransactionIsolation()
Deprecated. This method should not be used by applications because only JDBC transaction isolation levels should be used. Also corresponding setter method is deprecated, so using this method makes a little sense without it.

Get Firebird transaction isolation level.

Returns:
Firebird transaction isolation level.

setIscTransactionIsolation

public void setIscTransactionIsolation(int isolation)
Deprecated. This method does not handle correctly JDBC-TPB mapping and should not be called if custom mapping is used.

Set Firebird transaction isolation level.

Parameters:
isolation - one of the ISCConstants.isc_tpb_consistency, ISCConstants.isc_tpb_concurrency or ISCConstants.isc_tpb_read_committed.

setReadOnly

public void setReadOnly(boolean readOnly)

isReadOnly

public boolean isReadOnly()

getArray

public byte[] getArray()


Copyright © 2001 David Jencks and other authors. All rights reserved.