public class ReflectingPersistenceCapable extends Object implements PersistenceCapable, ManagedInstanceProvider, Serializable
PersistenceCapable
interface that can handle
the persistence-capable contract for instances that were not enhanced
before class load time.CHECK_READ, CHECK_WRITE, DESERIALIZED, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
Constructor and Description |
---|
ReflectingPersistenceCapable(Object o,
OpenJPAConfiguration conf) |
public ReflectingPersistenceCapable(Object o, OpenJPAConfiguration conf)
public int pcGetEnhancementContractVersion()
pcGetEnhancementContractVersion
in interface PersistenceCapable
public Object pcGetGenericContext()
pcGetGenericContext
in interface PersistenceCapable
public StateManager pcGetStateManager()
pcGetStateManager
in interface PersistenceCapable
public void pcReplaceStateManager(StateManager sm)
pcReplaceStateManager
in interface PersistenceCapable
public void pcProvideField(int i)
pcProvideField
in interface PersistenceCapable
public void pcProvideFields(int[] fieldIndices)
pcProvideFields
in interface PersistenceCapable
public void pcReplaceField(int i)
pcReplaceField
in interface PersistenceCapable
public void pcReplaceFields(int[] fieldIndices)
pcReplaceFields
in interface PersistenceCapable
public void pcCopyField(Object fromObject, int i)
public void pcCopyFields(Object fromObject, int[] fieldIndices)
pcCopyFields
in interface PersistenceCapable
public void pcDirty(String fieldName)
pcDirty
in interface PersistenceCapable
public Object pcFetchObjectId()
pcFetchObjectId
in interface PersistenceCapable
public Object pcGetVersion()
pcGetVersion
in interface PersistenceCapable
public boolean pcIsDirty()
pcIsDirty
in interface PersistenceCapable
public boolean pcIsTransactional()
pcIsTransactional
in interface PersistenceCapable
public boolean pcIsPersistent()
pcIsPersistent
in interface PersistenceCapable
public boolean pcIsNew()
pcIsNew
in interface PersistenceCapable
public boolean pcIsDeleted()
pcIsDeleted
in interface PersistenceCapable
public Boolean pcIsDetached()
pcIsDetached
in interface PersistenceCapable
public PersistenceCapable pcNewInstance(StateManager sm, boolean clear)
pcNewInstance
in interface PersistenceCapable
public PersistenceCapable pcNewInstance(StateManager sm, Object oid, boolean clear)
pcNewInstance
in interface PersistenceCapable
public Object pcNewObjectIdInstance()
pcNewObjectIdInstance
in interface PersistenceCapable
public Object pcNewObjectIdInstance(Object oid)
pcNewObjectIdInstance
in interface PersistenceCapable
public void pcCopyKeyFieldsToObjectId(Object oid)
pcCopyKeyFieldsToObjectId
in interface PersistenceCapable
public void pcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj)
pcCopyKeyFieldsToObjectId
in interface PersistenceCapable
public void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj)
pcCopyKeyFieldsFromObjectId
in interface PersistenceCapable
public Object pcGetDetachedState()
pcGetDetachedState
in interface PersistenceCapable
public void pcSetDetachedState(Object state)
pcSetDetachedState
in interface PersistenceCapable
public void pcSetSerializationUserVisible(boolean userVisible)
public boolean pcIsSerializationUserVisible()
public Object getManagedInstance()
getManagedInstance
in interface ManagedInstanceProvider
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.