Package org.apache.openjpa.enhance
Class ReflectingPersistenceCapable
- java.lang.Object
-
- org.apache.openjpa.enhance.ReflectingPersistenceCapable
-
- All Implemented Interfaces:
Serializable
,ManagedInstanceProvider
,PersistenceCapable
public class ReflectingPersistenceCapable extends Object implements PersistenceCapable, ManagedInstanceProvider, Serializable
Implementation of thePersistenceCapable
interface that can handle the persistence-capable contract for instances that were not enhanced before class load time.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.enhance.PersistenceCapable
CHECK_READ, CHECK_WRITE, DESERIALIZED, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
-
-
Constructor Summary
Constructors Constructor Description ReflectingPersistenceCapable(Object o, OpenJPAConfiguration conf)
-
Method Summary
-
-
-
Constructor Detail
-
ReflectingPersistenceCapable
public ReflectingPersistenceCapable(Object o, OpenJPAConfiguration conf)
-
-
Method Detail
-
pcGetEnhancementContractVersion
public int pcGetEnhancementContractVersion()
- Specified by:
pcGetEnhancementContractVersion
in interfacePersistenceCapable
-
pcGetGenericContext
public Object pcGetGenericContext()
- Specified by:
pcGetGenericContext
in interfacePersistenceCapable
-
pcGetStateManager
public StateManager pcGetStateManager()
- Specified by:
pcGetStateManager
in interfacePersistenceCapable
-
pcReplaceStateManager
public void pcReplaceStateManager(StateManager sm)
- Specified by:
pcReplaceStateManager
in interfacePersistenceCapable
-
pcProvideField
public void pcProvideField(int i)
- Specified by:
pcProvideField
in interfacePersistenceCapable
-
pcProvideFields
public void pcProvideFields(int[] fieldIndices)
- Specified by:
pcProvideFields
in interfacePersistenceCapable
-
pcReplaceField
public void pcReplaceField(int i)
- Specified by:
pcReplaceField
in interfacePersistenceCapable
-
pcReplaceFields
public void pcReplaceFields(int[] fieldIndices)
- Specified by:
pcReplaceFields
in interfacePersistenceCapable
-
pcCopyField
public void pcCopyField(Object fromObject, int i)
-
pcCopyFields
public void pcCopyFields(Object fromObject, int[] fieldIndices)
- Specified by:
pcCopyFields
in interfacePersistenceCapable
-
pcDirty
public void pcDirty(String fieldName)
- Specified by:
pcDirty
in interfacePersistenceCapable
-
pcFetchObjectId
public Object pcFetchObjectId()
- Specified by:
pcFetchObjectId
in interfacePersistenceCapable
-
pcGetVersion
public Object pcGetVersion()
- Specified by:
pcGetVersion
in interfacePersistenceCapable
-
pcIsDirty
public boolean pcIsDirty()
- Specified by:
pcIsDirty
in interfacePersistenceCapable
-
pcIsTransactional
public boolean pcIsTransactional()
- Specified by:
pcIsTransactional
in interfacePersistenceCapable
-
pcIsPersistent
public boolean pcIsPersistent()
- Specified by:
pcIsPersistent
in interfacePersistenceCapable
-
pcIsNew
public boolean pcIsNew()
- Specified by:
pcIsNew
in interfacePersistenceCapable
-
pcIsDeleted
public boolean pcIsDeleted()
- Specified by:
pcIsDeleted
in interfacePersistenceCapable
-
pcIsDetached
public Boolean pcIsDetached()
- Specified by:
pcIsDetached
in interfacePersistenceCapable
-
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm, boolean clear)
- Specified by:
pcNewInstance
in interfacePersistenceCapable
-
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm, Object oid, boolean clear)
- Specified by:
pcNewInstance
in interfacePersistenceCapable
-
pcNewObjectIdInstance
public Object pcNewObjectIdInstance()
- Specified by:
pcNewObjectIdInstance
in interfacePersistenceCapable
-
pcNewObjectIdInstance
public Object pcNewObjectIdInstance(Object oid)
- Specified by:
pcNewObjectIdInstance
in interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(Object oid)
- Specified by:
pcCopyKeyFieldsToObjectId
in interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj)
- Specified by:
pcCopyKeyFieldsToObjectId
in interfacePersistenceCapable
-
pcCopyKeyFieldsFromObjectId
public void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj)
- Specified by:
pcCopyKeyFieldsFromObjectId
in interfacePersistenceCapable
-
pcGetDetachedState
public Object pcGetDetachedState()
- Specified by:
pcGetDetachedState
in interfacePersistenceCapable
-
pcSetDetachedState
public void pcSetDetachedState(Object state)
- Specified by:
pcSetDetachedState
in interfacePersistenceCapable
-
pcSetSerializationUserVisible
public void pcSetSerializationUserVisible(boolean userVisible)
-
pcIsSerializationUserVisible
public boolean pcIsSerializationUserVisible()
-
getManagedInstance
public Object getManagedInstance()
- Specified by:
getManagedInstance
in interfaceManagedInstanceProvider
-
-