public enum GrouperTransactionType extends Enum<GrouperTransactionType>
Enum Constant and Description |
---|
NONE
even if in a current tx, do not use transactions
|
READ_WRITE_NEW
even if in the middle of a transaction, create a new read/write autonomous nested transaction.
|
READ_WRITE_OR_USE_EXISTING
use the current transaction if one exists.
|
READONLY_NEW
even if in the middle of a transaction, create a new readonly autonomous nested transaction.
|
READONLY_OR_USE_EXISTING
use the current transaction if one exists, if not, create a new readonly tx.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
checkCompatibility(GrouperTransactionType existingGrouperTransactionType)
return if readonly.
|
abstract GrouperTransactionType |
grouperTransactionTypeToUse()
convert the declared tx type to one that is not "if exists"...
|
abstract boolean |
isNewAutonomous()
return if new autonomous transaction
|
abstract boolean |
isReadonly()
return if readonly.
|
abstract boolean |
isTransactional()
if there is a transaction (e.g.
|
static GrouperTransactionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperTransactionType |
valueOfIgnoreCase(String string)
do a case-insensitive matching
|
static GrouperTransactionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrouperTransactionType READONLY_OR_USE_EXISTING
public static final GrouperTransactionType NONE
public static final GrouperTransactionType READONLY_NEW
public static final GrouperTransactionType READ_WRITE_OR_USE_EXISTING
public static final GrouperTransactionType READ_WRITE_NEW
public static GrouperTransactionType[] values()
for (GrouperTransactionType c : GrouperTransactionType.values()) System.out.println(c);
public static GrouperTransactionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static GrouperTransactionType valueOfIgnoreCase(String string)
string
- public abstract boolean isReadonly()
public abstract boolean isNewAutonomous()
public abstract boolean isTransactional()
public abstract void checkCompatibility(GrouperTransactionType existingGrouperTransactionType) throws GrouperDAOException
existingGrouperTransactionType
- if null, no parent, if not, then this is the enclosing
typeGrouperDAOException
- if there is a compatibility problempublic abstract GrouperTransactionType grouperTransactionTypeToUse()
Copyright © 2016 Internet2. All rights reserved.