public final class BeanWrapperDelegate extends DefaultPersistenceDelegate
BeanWrappers.| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(Class<?> type,
Object oldInstance,
Object newInstance,
Encoder out)
Produces statements on
newInstance so that
newInstance becomes equivalent to oldInstance. |
protected Expression |
instantiate(Object oldInstance,
Encoder out)
Return an expression whose value is oldInstance.
|
protected boolean |
mutatesTo(Object oldInstance,
Object newInstance)
Returns true if an equivalent copy of
oldInstance can be made
from newInstance. |
static void |
registerDelegate()
Registers the persistence delegate so that it will be used.
|
writeObjectpublic static void registerDelegate()
protected boolean mutatesTo(Object oldInstance, Object newInstance)
oldInstance can be made
from newInstance.mutatesTo in class DefaultPersistenceDelegateoldInstance - The instance to be copied.newInstance - The instance to be modified.protected Expression instantiate(Object oldInstance, Encoder out)
instantiate in class DefaultPersistenceDelegateoldInstance - The instance that will be created by the expression.out - The Encoder it will be written to.protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
newInstance so that
newInstance becomes equivalent to oldInstance.initialize in class DefaultPersistenceDelegatetype - XXXoldInstance - The instance to be copied.newInstance - The instance to be modified.out - The encoder to write the statements to.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.