public static final class Transaction.Properties extends java.lang.Object
Constructor and Description |
---|
Properties()
Default constructor, sets properties to default values:
|
Properties(java.lang.String transactionName)
Construct a properties instance with the given name and a
default isolationLevel of
Transaction.IsolationLevel.SERIALIZABLE |
Properties(java.lang.String transactionName,
Transaction.IsolationLevel isolationLevel)
Construct a properties instance with the given name and
isolation level.
|
Properties(Transaction.IsolationLevel isolationLevel)
Construct a properties instance with the given isolation level
and a null transaction name.
|
Modifier and Type | Method and Description |
---|---|
Transaction.IsolationLevel |
getIsolationLevel()
Get the isolation level.
|
java.lang.String |
getTransactionName()
Get the transaction name.
|
void |
setIsolationLevel(Transaction.IsolationLevel isolationLevel)
Set the isolation level.
|
void |
setTransactionName(java.lang.String transactionName)
Set the transaction name.
|
public Properties()
isolationLevel = Transaction.IsolationLevel.SERIALIZABLE
,
transactionName is null.
public Properties(Transaction.IsolationLevel isolationLevel)
isolationLevel
- - Isolation level of transaction
when it executes.public Properties(java.lang.String transactionName)
Transaction.IsolationLevel.SERIALIZABLE
transactionName
- - Name of transaction when it executes.public Properties(java.lang.String transactionName, Transaction.IsolationLevel isolationLevel)
transactionName
- - Name of transaction when it executes.isolationLevel
- - Isolation level of transaction
when it executes.public void setTransactionName(java.lang.String transactionName)
transactionName
- - Name of transaction when executed.public java.lang.String getTransactionName()
If never set, returns null. If passed into the Transaction.execute(Properties)
method as null, the name
passed into the Transaction.Transaction(String)
constructor is used, or the calling class name is used if the
default Transaction.Transaction()
constructor was used.
public void setIsolationLevel(Transaction.IsolationLevel isolationLevel)
isolationLevel
- - Isolation level of transaction
when it executes.public Transaction.IsolationLevel getIsolationLevel()