| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GrouperTransactionType>
edu.internet2.middleware.grouper.hibernate.GrouperTransactionType
public enum GrouperTransactionType
enum of possible transaction types
| Enum Constant Summary | |
|---|---|
| NONEeven if in a current tx, do not use transactions | |
| READ_WRITE_NEWeven if in the middle of a transaction, create a new read/write autonomous nested transaction. | |
| READ_WRITE_OR_USE_EXISTINGuse the current transaction if one exists. | |
| READONLY_NEWeven if in the middle of a transaction, create a new readonly autonomous nested transaction. | |
| READONLY_OR_USE_EXISTINGuse the current transaction if one exists, if not, create a new readonly tx. | |
| Method Summary | |
|---|---|
| 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. not NONE) | 
| static GrouperTransactionType | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static GrouperTransactionType | valueOfIgnoreCase(java.lang.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. | 
| Methods inherited from class java.lang.Enum | 
|---|
| compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
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
| Method Detail | 
|---|
public static GrouperTransactionType[] values()
for (GrouperTransactionType c : GrouperTransactionType.values()) System.out.println(c);
public static GrouperTransactionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static GrouperTransactionType valueOfIgnoreCase(java.lang.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
 type
GrouperDAOException - if there is a compatibility problempublic abstract GrouperTransactionType grouperTransactionTypeToUse()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||