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 the
PersistenceCapable
interface that can handle
the persistence-capable contract for instances that were not enhanced
before class load time.- Since:
- 1.0.0
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pcCopyField
(Object fromObject, int i) void
pcCopyFields
(Object fromObject, int[] fieldIndices) void
pcCopyKeyFieldsFromObjectId
(FieldConsumer consumer, Object obj) void
void
pcCopyKeyFieldsToObjectId
(FieldSupplier supplier, Object obj) void
int
boolean
boolean
boolean
pcIsNew()
boolean
boolean
boolean
pcNewInstance
(StateManager sm, boolean clear) pcNewInstance
(StateManager sm, Object oid, boolean clear) void
pcProvideField
(int i) void
pcProvideFields
(int[] fieldIndices) void
pcReplaceField
(int i) void
pcReplaceFields
(int[] fieldIndices) void
void
pcSetDetachedState
(Object state) void
pcSetSerializationUserVisible
(boolean userVisible)
-
Constructor Details
-
ReflectingPersistenceCapable
-
-
Method Details
-
pcGetEnhancementContractVersion
public int pcGetEnhancementContractVersion()- Specified by:
pcGetEnhancementContractVersion
in interfacePersistenceCapable
-
pcGetGenericContext
- Specified by:
pcGetGenericContext
in interfacePersistenceCapable
-
pcGetStateManager
- Specified by:
pcGetStateManager
in interfacePersistenceCapable
-
pcReplaceStateManager
- 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
-
pcCopyFields
- Specified by:
pcCopyFields
in interfacePersistenceCapable
-
pcDirty
- Specified by:
pcDirty
in interfacePersistenceCapable
-
pcFetchObjectId
- Specified by:
pcFetchObjectId
in interfacePersistenceCapable
-
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
- Specified by:
pcIsDetached
in interfacePersistenceCapable
-
pcNewInstance
- Specified by:
pcNewInstance
in interfacePersistenceCapable
-
pcNewInstance
- Specified by:
pcNewInstance
in interfacePersistenceCapable
-
pcNewObjectIdInstance
- Specified by:
pcNewObjectIdInstance
in interfacePersistenceCapable
-
pcNewObjectIdInstance
- Specified by:
pcNewObjectIdInstance
in interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
- Specified by:
pcCopyKeyFieldsToObjectId
in interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
- Specified by:
pcCopyKeyFieldsToObjectId
in interfacePersistenceCapable
-
pcCopyKeyFieldsFromObjectId
- Specified by:
pcCopyKeyFieldsFromObjectId
in interfacePersistenceCapable
-
pcGetDetachedState
- Specified by:
pcGetDetachedState
in interfacePersistenceCapable
-
pcSetDetachedState
- Specified by:
pcSetDetachedState
in interfacePersistenceCapable
-
pcSetSerializationUserVisible
public void pcSetSerializationUserVisible(boolean userVisible) -
pcIsSerializationUserVisible
public boolean pcIsSerializationUserVisible() -
getManagedInstance
- Specified by:
getManagedInstance
in interfaceManagedInstanceProvider
-