-
Method Summary
Creates an object instance from the given
DataKey
.
void
void
Saves the object instance to the given
DataKey
.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
create
Creates an object instance from the given
DataKey
. Should not return null unless no data is present.
- Specified by:
create
in interface Persister<T>
- Parameters:
root
- The root key to load from
- Returns:
- The created instance, or null if no data was present
-
-
-
save
public void save(T instance,
DataKey root)
Saves the object instance to the given
DataKey
.
- Specified by:
save
in interface Persister<T>
- Parameters:
instance
- The object instance to save
root
- The key to save into