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

Variable Index

 o READ_NONE
Constant returned by getAccessMode indicating that an access mode was not specified for the transaction.
 o READ_ONLY
Constant returned by getAccessMode indicating transaction read-only access mode.
 o READ_WRITE
Constant returned by getAccessMode indicating transaction read-write access mode.

Constructor Index

 o SetTransactionDescriptor(int, int)
Creates a new set transaction descriptor with the given access mode and isolation level.

Method Index

 o getAccessMode()
The specified access mode for the transaction.
 o getIsolationLevel()
The specified isolation level for the transaction.
 o toString()
Returns a string describing the access mode and isolation level of this object, in the format "ACCESS_MODE=mode,ISOLATION_LEVEL=level".

Variables

 o READ_ONLY
 public static final int READ_ONLY
Constant returned by getAccessMode indicating transaction read-only access mode.

See Also:
getAccessMode
 o READ_WRITE
 public static final int READ_WRITE
Constant returned by getAccessMode indicating transaction read-write access mode.

See Also:
getAccessMode
 o 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

Constructors

 o 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

Methods

 o 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.

 o 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.

A return value of TRANSACTION_NONE indicates that an isolation level was not explicitly specified for this transaction.

 o 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