public class PropertyValueEntity extends Object
Values here are either simple values that can be stored in a long
or will be references to data in other tables.
Modifier and Type | Class and Description |
---|---|
static class |
PropertyValueEntity.PersistedType
Enumeration of persisted types for alf_prop_value.persisted_type.
|
Modifier and Type | Field and Description |
---|---|
static Long |
LONG_ONE |
static Long |
LONG_ZERO |
static Short |
ORDINAL_CONSTRUCTABLE |
static Short |
ORDINAL_DOUBLE |
static Short |
ORDINAL_ENUM |
static Short |
ORDINAL_LONG |
static Short |
ORDINAL_NULL |
static Short |
ORDINAL_SERIALIZABLE |
static Short |
ORDINAL_STRING |
static org.alfresco.util.Pair<Short,Serializable> |
PERSISTED_TYPE_NULL |
static Map<Short,PropertyValueEntity.PersistedType> |
persistedTypesByOrdinal
An unmodifiable map of persisted type enums keyed by their ordinal number
|
Constructor and Description |
---|
PropertyValueEntity() |
public static final Long LONG_ZERO
public static final Long LONG_ONE
public static final Short ORDINAL_NULL
public static final Short ORDINAL_LONG
public static final Short ORDINAL_DOUBLE
public static final Short ORDINAL_STRING
public static final Short ORDINAL_SERIALIZABLE
public static final Short ORDINAL_CONSTRUCTABLE
public static final Short ORDINAL_ENUM
public static final org.alfresco.util.Pair<Short,Serializable> PERSISTED_TYPE_NULL
public static final Map<Short,PropertyValueEntity.PersistedType> persistedTypesByOrdinal
public Serializable getValue(Class<Serializable> actualType, PropertyTypeConverter converter)
actualType
- the type to convert toconverter
- the data converter to usepublic void setValue(Serializable value, PropertyTypeConverter converter)
value
- the value to persist (may be null)converter
- the converter that will perform and type conversionpublic static PropertyValueEntity.PersistedType getPersistedTypeEnum(Serializable value, PropertyTypeConverter converter)
value
- the value to checkconverter
- the type converterPropertyTypeConverter.getPersistentType(Serializable)
public PropertyValueEntity.PersistedType getPersistedTypeEnum()
public Long getId()
public void setId(Long id)
public Long getActualTypeId()
public void setActualTypeId(Long actualTypeId)
public Short getPersistedType()
public void setPersistedType(Short persistedType)
public Long getLongValue()
public void setLongValue(Long longValue)
public String getStringValue()
public void setStringValue(String stringValue)
public Double getDoubleValue()
public void setDoubleValue(Double doubleValue)
public Serializable getSerializableValue()
public void setSerializableValue(Serializable serializableValue)
Copyright © 2005–2017 Alfresco Software. All rights reserved.