Package oracle.jdbc

Enum OracleConnection.TransactionPriority

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      HIGH
      HIGH Transaction Priority never rolls back a HIGH priority transaction in order to release a row lock for another transaction.
      LOW
      Use LOW to mark a transaction that has low priority.
      MEDIUM
      Transaction Priority will roll back a MEDIUM priority transaction if it is holding a row lock required by a HIGH priority transaction, and the HIGH priority transaction has been waiting for the row lock longer than the time specified by the PRIORITY_TXNS_HIGH_WAIT_TARGET parameter in the database.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static OracleConnection.TransactionPriority valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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_TARGET and PRIORITY_TXNS_MEDIUM_WAIT_TARGET database parameters).

      • MEDIUM

        public static final OracleConnection.TransactionPriority MEDIUM

        Transaction Priority will roll back a MEDIUM priority transaction if it is holding a row lock required by a HIGH priority transaction, and the HIGH priority transaction has been waiting for the row lock longer than the time specified by the PRIORITY_TXNS_HIGH_WAIT_TARGET parameter in the database.

      • HIGH

        public static final OracleConnection.TransactionPriority HIGH

        HIGH Transaction Priority never rolls back a HIGH priority 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 name
        java.lang.NullPointerException - if the argument is null