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

Field Summary
private  T entity
           
private  EntityPersistenceMetaData metaData
           
 
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
 

Field Detail

entity

private T extends Entity entity

metaData

private EntityPersistenceMetaData metaData
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.