public final class PersistentFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
from(Persistent persistent,
Class<?> clazz)
Reincarnate an object, populated from the store.
|
static Persistent |
fromInstance(Database db,
Object pojo) |
static Persistent |
populatedPersistent(Table<?> table,
Object pojo) |
public static Persistent fromInstance(Database db, Object pojo)
db - database to look inpojo - the instance to create a Persistent from.public static Persistent populatedPersistent(Table<?> table, Object pojo)
table - the Table the persisted pojo is to be stored inpojo - the object to populate the Persistent frompublic static Object from(Persistent persistent, Class<?> clazz) throws NoSuchMethodException
persistent - the Persistent to read fromclazz - the class to create a new, populated instance ofNoSuchMethodExceptionCopyright © 2000–2021 PanEris. All rights reserved.