public class TransactionDescriptor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ISOLATION_DEFAULT
Keep database default isolation level
|
| Constructor and Description |
|---|
TransactionDescriptor(int isolation)
Create transaction descriptor with desired isolation level and
NESTED propagation |
TransactionDescriptor(int isolation,
TransactionPropagation propagation) |
TransactionDescriptor(TransactionPropagation propagation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIsolation() |
TransactionPropagation |
getPropagation() |
public static final int ISOLATION_DEFAULT
public TransactionDescriptor(int isolation,
TransactionPropagation propagation)
isolation - one of the following Connection constants:
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_REPEATABLE_READ,
Connection.TRANSACTION_SERIALIZABLE, or
TransactionDescriptor.ISOLATION_DEFAULTpropagation - transaction propagation behaviourTransactionPropagationpublic TransactionDescriptor(int isolation)
NESTED propagationisolation - one of the following Connection constants:
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_REPEATABLE_READ,
Connection.TRANSACTION_SERIALIZABLE, or
TransactionDescriptor.ISOLATION_DEFAULTpublic TransactionDescriptor(TransactionPropagation propagation)
propagation - transaction propagation behaviourTransactionPropagationpublic int getIsolation()
public TransactionPropagation getPropagation()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.