Enum PropertyValueEntity.PersistedType

    • Method Detail

      • values

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

        public static PropertyValueEntity.PersistedType 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
      • getOrdinalNumber

        public abstract java.lang.Short getOrdinalNumber()
        Fetch the numerical value that will represent the the persisted type. This is done explicitly to prevent ordering issues if further types are added.
        Returns:
        Returns the ordinal number
      • getAssociatedClass

        public abstract java.lang.Class<?> getAssociatedClass()
        Get the persisted type's class. This is used for determining the source type when converting from persisted values.
        Returns:
        Returns the class associated with the persisted type