Package oracle.jdbc
Enum OracleConnection.TransactionPriority
- java.lang.Object
-
- java.lang.Enum<OracleConnection.TransactionPriority>
-
- oracle.jdbc.OracleConnection.TransactionPriority
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OracleConnection.TransactionPriority>
- Enclosing interface:
- OracleConnection
public static enum OracleConnection.TransactionPriority extends java.lang.Enum<OracleConnection.TransactionPriority>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OracleConnection.TransactionPriorityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OracleConnection.TransactionPriority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOW
public static final OracleConnection.TransactionPriority LOW
Use LOW to mark a transaction that has low priority. Such a low priority transaction will be rolled back if it's holding a lock that is required by a higher priority transaction that has been waiting longer than its target wait time (see
PRIORITY_TXNS_HIGH_WAIT_TARGETandPRIORITY_TXNS_MEDIUM_WAIT_TARGETdatabase parameters).
-
MEDIUM
public static final OracleConnection.TransactionPriority MEDIUM
-
HIGH
public static final OracleConnection.TransactionPriority HIGH
HIGHTransaction Priority never rolls back aHIGHpriority transaction in order to release a row lock for another transaction. This is the default.
-
-
Method Detail
-
values
public static OracleConnection.TransactionPriority[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OracleConnection.TransactionPriority c : OracleConnection.TransactionPriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OracleConnection.TransactionPriority valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-