org.tynamo.jdo.internal
Class PersistedEntity

java.lang.Object
  extended by org.tynamo.jdo.internal.PersistedEntity
All Implemented Interfaces:
Serializable

@ImmutableSessionPersistedObject
public class PersistedEntity
extends Object
implements Serializable

Encapsulates a JDO entity class with an entity id.

See Also:
Serialized Form

Constructor Summary
PersistedEntity(Class pcClass, Serializable id)
          Creates a new persisted entity
 
Method Summary
 Object restore(javax.jdo.PersistenceManager pm)
          Recreates the persistent JDO object from the given persistence manager
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistedEntity

public PersistedEntity(Class pcClass,
                       Serializable id)
Creates a new persisted entity

Parameters:
pcClass - the JDO persistent type
id - the JDO Object ID of the persistent class. Note that this value is not just the value of the "primary key" property, but the actual Object ID retrieved by JDOHelper.getObjectId(java.lang.Object) or PersistenceManager.getObjectId(java.lang.Object)
Method Detail

restore

public Object restore(javax.jdo.PersistenceManager pm)
Recreates the persistent JDO object from the given persistence manager

Parameters:
pm -
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2012. All Rights Reserved.