Package org.alfresco.repo.domain.propval
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract Class<?>Get the persisted type's class.abstract ShortFetch the numerical value that will represent the the persisted type.Returns the enum constant of this class with the specified name.static PropertyValueEntity.PersistedType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
-
LONG
-
DOUBLE
-
STRING
-
SERIALIZABLE
-
CONSTRUCTABLE
-
ENUM
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
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
-