Enum ClassPersistenceModifier

java.lang.Object
java.lang.Enum<ClassPersistenceModifier>
org.datanucleus.metadata.ClassPersistenceModifier
All Implemented Interfaces:
Serializable, Comparable<ClassPersistenceModifier>

public enum ClassPersistenceModifier extends Enum<ClassPersistenceModifier>
Definition of the options for persistence-modifier of a class.
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • ClassPersistenceModifier

      private ClassPersistenceModifier(String name)
  • Method Details

    • values

      public static ClassPersistenceModifier[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ClassPersistenceModifier 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ClassPersistenceModifier>
    • getClassPersistenceModifier

      public static ClassPersistenceModifier getClassPersistenceModifier(String value)
      Return ClassPersistenceModifier from String.
      Parameters:
      value - persistence-modifier attribute value
      Returns:
      Instance of ClassPersistenceModifier. If value invalid, return null.