Enum PersistenceProviderType

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Method Summary

      Modifier and Type Method Description
      static PersistenceProviderType fromOrdinal​(int ordinal)
      Return the PersistenceProviderType from an ordinal value.
      static PersistenceProviderType fromString​(java.lang.String name)
      Return the PersistenceProviderType from a string value.
      static PersistenceProviderType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PersistenceProviderType[] 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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static PersistenceProviderType[] 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 PersistenceProviderType 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
      • fromString

        public static PersistenceProviderType fromString​(java.lang.String name)
        Return the PersistenceProviderType from a string value. We do not rely on Java's naming because the string values need to be cross-platform and the names may be different in each language.
        Parameters:
        name - the enums name.
        Returns:
        the associated PersistenceProviderType, or null if no association exists.
      • fromOrdinal

        public static PersistenceProviderType fromOrdinal​(int ordinal)
        Return the PersistenceProviderType from an ordinal value. We do not rely on Java's ordering because the ordinal values need to be cross-platform, and the values may be ordered differently.
        Parameters:
        ordinal - the enums ordinal value.
        Returns:
        the associated PersistenceProviderType, or null if no association exists.