Package oracle.jdbc
Enum Class OracleConnection.TransactionPriority
java.lang.Object
java.lang.Enum<OracleConnection.TransactionPriority>
oracle.jdbc.OracleConnection.TransactionPriority
- All Implemented Interfaces:
Serializable,Comparable<OracleConnection.TransactionPriority>,Constable
- Enclosing interface:
- OracleConnection
public static enum OracleConnection.TransactionPriority
extends Enum<OracleConnection.TransactionPriority>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHIGHTransaction Priority never rolls back aHIGHpriority transaction in order to release a row lock for another transaction.Use LOW to mark a transaction that has low priority. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OracleConnection.TransactionPriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
-
HIGH
HIGHTransaction Priority never rolls back aHIGHpriority transaction in order to release a row lock for another transaction. This is the default.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-