net.sourceforge.domian.repository
Class PersistentEntity<T extends Entity>

java.lang.Object
  extended by net.sourceforge.domian.repository.PersistentEntity<T>

public final class PersistentEntity<T extends Entity>
extends java.lang.Object

A holder class wrapping a possible Entity object, as well as meta-data conserning persistence stuff.

Since:
0.4
Author:
Eirik Torske

Constructor Summary
PersistentEntity(T entity, EntityPersistenceMetaData entityMetaData)
           
 
Method Summary
 T getEntity()
           
 EntityPersistenceMetaData getMetaData()
           
 void setEntity(T entity)
           
 void setMetaData(EntityPersistenceMetaData metaData)
           
 void touchReadMetaData()
           
 void touchWriteMetaData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentEntity

public PersistentEntity(T entity,
                        EntityPersistenceMetaData entityMetaData)
Method Detail

getEntity

public T getEntity()

setEntity

public void setEntity(T entity)

getMetaData

public EntityPersistenceMetaData getMetaData()

setMetaData

public void setMetaData(EntityPersistenceMetaData metaData)

touchWriteMetaData

public void touchWriteMetaData()

touchReadMetaData

public void touchReadMetaData()


Copyright © 2006-2010. All Rights Reserved.