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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpcCopyField(Object fromObject, int i) voidpcCopyFields(Object fromObject, int[] fieldIndices) voidpcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj) voidvoidpcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj) voidintbooleanbooleanbooleanpcIsNew()booleanbooleanbooleanpcNewInstance(StateManager sm, boolean clear) pcNewInstance(StateManager sm, Object oid, boolean clear) voidpcProvideField(int i) voidpcProvideFields(int[] fieldIndices) voidpcReplaceField(int i) voidpcReplaceFields(int[] fieldIndices) voidvoidpcSetDetachedState(Object state) voidpcSetSerializationUserVisible(boolean userVisible)
-
Constructor Details
-
ReflectingPersistenceCapable
-
-
Method Details
-
pcGetEnhancementContractVersion
public int pcGetEnhancementContractVersion()- Specified by:
pcGetEnhancementContractVersionin interfacePersistenceCapable
-
pcGetGenericContext
- Specified by:
pcGetGenericContextin interfacePersistenceCapable
-
pcGetStateManager
- Specified by:
pcGetStateManagerin interfacePersistenceCapable
-
pcReplaceStateManager
- Specified by:
pcReplaceStateManagerin interfacePersistenceCapable
-
pcProvideField
public void pcProvideField(int i) - Specified by:
pcProvideFieldin interfacePersistenceCapable
-
pcProvideFields
public void pcProvideFields(int[] fieldIndices) - Specified by:
pcProvideFieldsin interfacePersistenceCapable
-
pcReplaceField
public void pcReplaceField(int i) - Specified by:
pcReplaceFieldin interfacePersistenceCapable
-
pcReplaceFields
public void pcReplaceFields(int[] fieldIndices) - Specified by:
pcReplaceFieldsin interfacePersistenceCapable
-
pcCopyField
-
pcCopyFields
- Specified by:
pcCopyFieldsin interfacePersistenceCapable
-
pcDirty
- Specified by:
pcDirtyin interfacePersistenceCapable
-
pcFetchObjectId
- Specified by:
pcFetchObjectIdin interfacePersistenceCapable
-
pcGetVersion
- Specified by:
pcGetVersionin interfacePersistenceCapable
-
pcIsDirty
public boolean pcIsDirty()- Specified by:
pcIsDirtyin interfacePersistenceCapable
-
pcIsTransactional
public boolean pcIsTransactional()- Specified by:
pcIsTransactionalin interfacePersistenceCapable
-
pcIsPersistent
public boolean pcIsPersistent()- Specified by:
pcIsPersistentin interfacePersistenceCapable
-
pcIsNew
public boolean pcIsNew()- Specified by:
pcIsNewin interfacePersistenceCapable
-
pcIsDeleted
public boolean pcIsDeleted()- Specified by:
pcIsDeletedin interfacePersistenceCapable
-
pcIsDetached
- Specified by:
pcIsDetachedin interfacePersistenceCapable
-
pcNewInstance
- Specified by:
pcNewInstancein interfacePersistenceCapable
-
pcNewInstance
- Specified by:
pcNewInstancein interfacePersistenceCapable
-
pcNewObjectIdInstance
- Specified by:
pcNewObjectIdInstancein interfacePersistenceCapable
-
pcNewObjectIdInstance
- Specified by:
pcNewObjectIdInstancein interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
- Specified by:
pcCopyKeyFieldsToObjectIdin interfacePersistenceCapable
-
pcCopyKeyFieldsToObjectId
- Specified by:
pcCopyKeyFieldsToObjectIdin interfacePersistenceCapable
-
pcCopyKeyFieldsFromObjectId
- Specified by:
pcCopyKeyFieldsFromObjectIdin interfacePersistenceCapable
-
pcGetDetachedState
- Specified by:
pcGetDetachedStatein interfacePersistenceCapable
-
pcSetDetachedState
- Specified by:
pcSetDetachedStatein interfacePersistenceCapable
-
pcSetSerializationUserVisible
public void pcSetSerializationUserVisible(boolean userVisible) -
pcIsSerializationUserVisible
public boolean pcIsSerializationUserVisible() -
getManagedInstance
- Specified by:
getManagedInstancein interfaceManagedInstanceProvider
-