org.spicefactory.pimento.type
Class ListType

java.lang.Object
  extended by org.spicefactory.pimento.type.AbstractAssociationType
      extended by org.spicefactory.pimento.type.AbstractCollectionType
          extended by org.spicefactory.pimento.type.ListType
All Implemented Interfaces:
PropertyType

public class ListType
extends AbstractCollectionType

Represents a List property type.

Author:
Jens Halm

Constructor Summary
ListType()
           
 
Method Summary
 Object prepareValueFromSnapshot(Object entity, Object value, Property property, IoContext context, boolean createChangeSet)
          Prepares the specified property value, performing all necessary conversions, but without actually applying it to the specified entity.
 
Methods inherited from class org.spicefactory.pimento.type.AbstractCollectionType
createFullCollectionFromSnapshots, getCollection, getValueForSnapshot
 
Methods inherited from class org.spicefactory.pimento.type.AbstractAssociationType
equals, getAssociationMetadata, getFetchPlan, getMetadataForEntity, getMetadataForSnapshot, setAssociationMetadata, setValue, useLazyMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListType

public ListType()
Method Detail

prepareValueFromSnapshot

public Object prepareValueFromSnapshot(Object entity,
                                       Object value,
                                       Property property,
                                       IoContext context,
                                       boolean createChangeSet)
Description copied from interface: PropertyType
Prepares the specified property value, performing all necessary conversions, but without actually applying it to the specified entity. The prepared values will be collected in a EntityUpdate instance which gets passed to any configured interceptors before the property is applied with the setValue method of this class.

Parameters:
entity - the entity to prepare the property for
value - the new value for the property
property - the property to prepare
context - the active IoContext
createChangeSet - whether a change set is being created
Returns:
the (possibly converted) value of the property as it will later be applied to the entity.