org.tynamo.jdo.internal
Class PersistedEntity
java.lang.Object
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
|
Method Summary |
Object |
restore(javax.jdo.PersistenceManager pm)
Recreates the persistent JDO object from the given persistence manager |
String |
toString()
|
PersistedEntity
public PersistedEntity(Class pcClass,
Serializable id)
- Creates a new persisted entity
- Parameters:
pcClass - the JDO persistent typeid - 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)
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.