Enum Lock.Type

    • Enum Constant Detail

      • READ

        public static final Lock.Type READ
        Acquires the read lock before the business method is invoked.
      • WRITE

        public static final Lock.Type WRITE
        Acquires the write (exclusive) lock before the business method is invoked.
      • NONE

        public static final Lock.Type NONE
        Acquires no lock.

        This could be useful if you need to override the behavior defined by a class-level interceptor binding.

    • Method Detail

      • values

        public static Lock.Type[] 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 (Lock.Type c : Lock.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Lock.Type valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null