Package org.alfresco.repo.domain.propval
Enum PropertyValueEntity.PersistedType
- java.lang.Object
-
- java.lang.Enum<PropertyValueEntity.PersistedType>
-
- org.alfresco.repo.domain.propval.PropertyValueEntity.PersistedType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PropertyValueEntity.PersistedType>
- Enclosing class:
- PropertyValueEntity
public static enum PropertyValueEntity.PersistedType extends java.lang.Enum<PropertyValueEntity.PersistedType>
Enumeration of persisted types for alf_prop_value.persisted_type. This enumeration is a helper for the default implementation of thePropertyTypeConverterand should not be used in public interfaces.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTRUCTABLEDOUBLEENUMLONGNULLSERIALIZABLESTRING
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Class<?>getAssociatedClass()Get the persisted type's class.abstract java.lang.ShortgetOrdinalNumber()Fetch the numerical value that will represent the the persisted type.static PropertyValueEntity.PersistedTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PropertyValueEntity.PersistedType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final PropertyValueEntity.PersistedType NULL
-
LONG
public static final PropertyValueEntity.PersistedType LONG
-
DOUBLE
public static final PropertyValueEntity.PersistedType DOUBLE
-
STRING
public static final PropertyValueEntity.PersistedType STRING
-
SERIALIZABLE
public static final PropertyValueEntity.PersistedType SERIALIZABLE
-
CONSTRUCTABLE
public static final PropertyValueEntity.PersistedType CONSTRUCTABLE
-
ENUM
public static final PropertyValueEntity.PersistedType ENUM
-
-
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 namejava.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
-
-