org.alfresco.repo.domain.propval
Class PropertyValueEntity.PersistedType

java.lang.Object
  extended by java.lang.Enum
      extended by org.alfresco.repo.domain.propval.PropertyValueEntity.PersistedType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Enclosing class:
PropertyValueEntity

public static class PropertyValueEntity.PersistedType
extends java.lang.Enum

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
See Also:
Serialized Form

Field Summary
static PropertyValueEntity.PersistedType CONSTRUCTABLE
           
static PropertyValueEntity.PersistedType DOUBLE
           
static PropertyValueEntity.PersistedType ENUM
           
static PropertyValueEntity.PersistedType LONG
           
static PropertyValueEntity.PersistedType NULL
           
static PropertyValueEntity.PersistedType SERIALIZABLE
           
static PropertyValueEntity.PersistedType STRING
           
 
Method Summary
abstract  java.lang.Class getAssociatedClass()
          Get the persisted type's class.
abstract  java.lang.Short getOrdinalNumber()
          Fetch the numerical value that will represent the the persisted type.
static PropertyValueEntity.PersistedType valueOf(java.lang.String name)
           
static PropertyValueEntity.PersistedType[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field 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()

valueOf

public static PropertyValueEntity.PersistedType valueOf(java.lang.String name)

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.