public abstract class PersistenceDelegate extends java.lang.Object
A PersistenceDelegate describes how a another object
has to constructed and transformed in order to create a complete
replicate.
For custom classes you will need to implement
PersistenceDelegate in a way that is suitable for them.
To make use of the implementation you have to register it with an
Encoder using the {Encoder#setPersistenceDelegate} method.
| Constructor and Description |
|---|
PersistenceDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(java.lang.Class<?> type,
java.lang.Object oldInstance,
java.lang.Object newInstance,
Encoder out) |
protected abstract Expression |
instantiate(java.lang.Object oldInstance,
Encoder out) |
protected boolean |
mutatesTo(java.lang.Object oldInstance,
java.lang.Object newInstance) |
void |
writeObject(java.lang.Object oldInstance,
Encoder out) |
public PersistenceDelegate()
protected void initialize(java.lang.Class<?> type, java.lang.Object oldInstance, java.lang.Object newInstance, Encoder out)
public void writeObject(java.lang.Object oldInstance, Encoder out)
protected boolean mutatesTo(java.lang.Object oldInstance, java.lang.Object newInstance)
protected abstract Expression instantiate(java.lang.Object oldInstance, Encoder out)