Class PropertyValueEntity

java.lang.Object
org.alfresco.repo.domain.propval.PropertyValueEntity

public class PropertyValueEntity extends Object
Entity bean for alf_prop_value table.

Values here are either simple values that can be stored in a long or will be references to data in other tables.

Since:
3.2
Author:
Derek Hulley
  • Field Details

    • LONG_ZERO

      public static final Long LONG_ZERO
    • LONG_ONE

      public static final Long LONG_ONE
    • ORDINAL_NULL

      public static final Short ORDINAL_NULL
    • ORDINAL_LONG

      public static final Short ORDINAL_LONG
    • ORDINAL_DOUBLE

      public static final Short ORDINAL_DOUBLE
    • ORDINAL_STRING

      public static final Short ORDINAL_STRING
    • ORDINAL_SERIALIZABLE

      public static final Short ORDINAL_SERIALIZABLE
    • ORDINAL_CONSTRUCTABLE

      public static final Short ORDINAL_CONSTRUCTABLE
    • ORDINAL_ENUM

      public static final Short ORDINAL_ENUM
    • PERSISTED_TYPE_NULL

      public static final Pair<Short,Serializable> PERSISTED_TYPE_NULL
    • persistedTypesByOrdinal

      public static final Map<Short,PropertyValueEntity.PersistedType> persistedTypesByOrdinal
      An unmodifiable map of persisted type enums keyed by their ordinal number
  • Constructor Details

    • PropertyValueEntity

      public PropertyValueEntity()
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public Serializable getValue(Class<Serializable> actualType, PropertyTypeConverter converter)
      Helper method to get the value based on the persisted type.
      Parameters:
      actualType - the type to convert to
      converter - the data converter to use
      Returns:
      Returns the converted value
    • setValue

      public void setValue(Serializable value, PropertyTypeConverter converter)
      Shortcut method to set the value. It will be converted as required and the necessary fields will be populated.
      Parameters:
      value - the value to persist (may be null)
      converter - the converter that will perform and type conversion
    • getPersistedTypeEnum

      public static PropertyValueEntity.PersistedType getPersistedTypeEnum(Serializable value, PropertyTypeConverter converter)
      Helper method to determine how the given value will be stored.
      Parameters:
      value - the value to check
      converter - the type converter
      Returns:
      Returns the persisted type
      See Also:
    • getPersistedTypeEnum

      public PropertyValueEntity.PersistedType getPersistedTypeEnum()
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getActualTypeId

      public Long getActualTypeId()
    • setActualTypeId

      public void setActualTypeId(Long actualTypeId)
    • getPersistedType

      public Short getPersistedType()
    • setPersistedType

      public void setPersistedType(Short persistedType)
    • getLongValue

      public Long getLongValue()
    • setLongValue

      public void setLongValue(Long longValue)
    • getStringValue

      public String getStringValue()
    • setStringValue

      public void setStringValue(String stringValue)
    • getDoubleValue

      public Double getDoubleValue()
    • setDoubleValue

      public void setDoubleValue(Double doubleValue)
    • getSerializableValue

      public Serializable getSerializableValue()
    • setSerializableValue

      public void setSerializableValue(Serializable serializableValue)