org.entityfs.cap.entityattrs.impl
Class CreationTimeSetter<T extends CreationTimeAttributes>
java.lang.Object
org.entityfs.support.lang.ObjectProxySupport<EntityAttributesPreparer<T>>
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
CreationTimeSetter
public CreationTimeSetter(EntityAttributesPreparer<T> proxied)
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
).