org.entityfs.cap.entityattrs.impl
Class CreationTimeSetter<T extends CreationTimeAttributes>

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<EntityAttributesPreparer<T>>
      extended by org.entityfs.cap.entityattrs.impl.CreationTimeSetter<T>
Type Parameters:
T - The concrete EntityAttributes implementation used.
All Implemented Interfaces:
EntityAttributesPreparer<T>

public class CreationTimeSetter<T extends CreationTimeAttributes>
extends ObjectProxySupport<EntityAttributesPreparer<T>>
implements EntityAttributesPreparer<T>

This EntityAttributesPreparer sets the creation time property on the attributes.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-entity_attributes

Constructor Summary
CreationTimeSetter(EntityAttributesPreparer<T> proxied)
           
 
Method Summary
 T prepareEntityAttributes(String name, T attr)
          Prepare the entity attributes for the new entity.
 
Methods inherited from class org.entityfs.support.lang.ObjectProxySupport
equals, getProxied, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreationTimeSetter

public CreationTimeSetter(EntityAttributesPreparer<T> proxied)
Method Detail

prepareEntityAttributes

public T prepareEntityAttributes(String name,
                                 T attr)
Description copied from interface: EntityAttributesPreparer
Prepare the entity attributes for the new entity.

This method does not have to save the new attributes. That is the responsibility of the caller.

Specified by:
prepareEntityAttributes in interface EntityAttributesPreparer<T extends CreationTimeAttributes>
Parameters:
name - The name of the new entity.
attr - The attributes object.
Returns:
The modified attributes instance, (attr).