All Packages This Package Previous Next
Class sqlj.runtime.profile.SetTransactionDescriptor
java.lang.Object
|
+----sqlj.runtime.profile.SetTransactionDescriptor
- public class SetTransactionDescriptor
- extends Object
- implements Serializable
A SetTransactionDescriptor describes the access mode and isolation level
of a SET TRANSACTION statement.
- See Also:
- getDescriptor
-
READ_NONE
- Constant returned by
getAccessMode
indicating that an
access mode was not specified for the transaction.
-
READ_ONLY
- Constant returned by
getAccessMode
indicating transaction
read-only access mode.
-
READ_WRITE
- Constant returned by
getAccessMode
indicating transaction
read-write access mode.
-
SetTransactionDescriptor(int, int)
- Creates a new set transaction descriptor with the given access mode
and isolation level.
-
getAccessMode()
- The specified access mode for the transaction.
-
getIsolationLevel()
- The specified isolation level for the transaction.
-
toString()
- Returns a string describing the access mode and isolation level
of this object, in the format
"ACCESS_MODE=mode,ISOLATION_LEVEL=level".
READ_ONLY
public static final int READ_ONLY
- Constant returned by
getAccessMode
indicating transaction
read-only access mode.
- See Also:
- getAccessMode
READ_WRITE
public static final int READ_WRITE
- Constant returned by
getAccessMode
indicating transaction
read-write access mode.
- See Also:
- getAccessMode
READ_NONE
public static final int READ_NONE
- Constant returned by
getAccessMode
indicating that an
access mode was not specified for the transaction.
- See Also:
- getAccessMode
SetTransactionDescriptor
public SetTransactionDescriptor(int accessMode,
int isolationLevel)
- Creates a new set transaction descriptor with the given access mode
and isolation level. If access mode is undefined, use READ_NONE.
If isolation level is undefined, use TRANSACTION_NONE.
- Parameters:
- accessMode - the access mode for this descriptor
- isolationLevel - the isolation level for this descriptor
getAccessMode
public int getAccessMode()
- The specified access mode for the transaction. The value returned will
be one of the following constants.
A return value of READ_NONE indicates that an access mode was not
explicitly specified for this transaction.
getIsolationLevel
public int getIsolationLevel()
- The specified isolation level for the transaction. The value returned
will be one of the following java.sql.Connection-defined constants.
- TRANSACTION_READ_COMMITTED
- TRANSACTION_READ_UNCOMMITTED
- TRANSACTION_REPEATABLE_READ
- TRANSACTION_SERIALIZABLE
- TRANSACTION_NONE
A return value of TRANSACTION_NONE indicates that an isolation level
was not explicitly specified for this transaction.
toString
public String toString()
- Returns a string describing the access mode and isolation level
of this object, in the format
"ACCESS_MODE=mode,ISOLATION_LEVEL=level".
- Overrides:
- toString in class Object
All Packages This Package Previous Next