Enum Class PropertyValueEntity.PersistedType

java.lang.Object
java.lang.Enum<PropertyValueEntity.PersistedType>
org.alfresco.repo.domain.propval.PropertyValueEntity.PersistedType
All Implemented Interfaces:
Serializable, Comparable<PropertyValueEntity.PersistedType>, Constable
Enclosing class:
PropertyValueEntity

public static enum PropertyValueEntity.PersistedType extends Enum<PropertyValueEntity.PersistedType>
Enumeration of persisted types for alf_prop_value.persisted_type.

This enumeration is a helper for the default implementation of the PropertyTypeConverter and should not be used in public interfaces.

Since:
3.2
Author:
Derek Hulley
  • Enum Constant Details

  • Method Details

    • values

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

      public static PropertyValueEntity.PersistedType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOrdinalNumber

      public abstract 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 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