Enum EventStrategy.Detachment

    • Enum Constant Detail

      • NONE

        public static final EventStrategy.Detachment NONE
        Does not detach the element from the graph. It should be noted that if this option is used with transactional graphs new transactions may be opened if these elements are accessed after a commit() is called.
    • Method Detail

      • values

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

        public static EventStrategy.Detachment 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