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 thePersistenceCapableinterface 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:
 pcGetEnhancementContractVersionin interfacePersistenceCapable
 
- 
pcGetGenericContext
public Object pcGetGenericContext()
- Specified by:
 pcGetGenericContextin interfacePersistenceCapable
 
- 
pcGetStateManager
public StateManager pcGetStateManager()
- Specified by:
 pcGetStateManagerin interfacePersistenceCapable
 
- 
pcReplaceStateManager
public void pcReplaceStateManager(StateManager sm)
- 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
public void pcCopyField(Object fromObject, int i)
 
- 
pcCopyFields
public void pcCopyFields(Object fromObject, int[] fieldIndices)
- Specified by:
 pcCopyFieldsin interfacePersistenceCapable
 
- 
pcDirty
public void pcDirty(String fieldName)
- Specified by:
 pcDirtyin interfacePersistenceCapable
 
- 
pcFetchObjectId
public Object pcFetchObjectId()
- Specified by:
 pcFetchObjectIdin interfacePersistenceCapable
 
- 
pcGetVersion
public Object 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
public Boolean pcIsDetached()
- Specified by:
 pcIsDetachedin interfacePersistenceCapable
 
- 
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm, boolean clear)
- Specified by:
 pcNewInstancein interfacePersistenceCapable
 
- 
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm, Object oid, boolean clear)
- Specified by:
 pcNewInstancein interfacePersistenceCapable
 
- 
pcNewObjectIdInstance
public Object pcNewObjectIdInstance()
- Specified by:
 pcNewObjectIdInstancein interfacePersistenceCapable
 
- 
pcNewObjectIdInstance
public Object pcNewObjectIdInstance(Object oid)
- Specified by:
 pcNewObjectIdInstancein interfacePersistenceCapable
 
- 
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(Object oid)
- Specified by:
 pcCopyKeyFieldsToObjectIdin interfacePersistenceCapable
 
- 
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj)
- Specified by:
 pcCopyKeyFieldsToObjectIdin interfacePersistenceCapable
 
- 
pcCopyKeyFieldsFromObjectId
public void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj)
- Specified by:
 pcCopyKeyFieldsFromObjectIdin interfacePersistenceCapable
 
- 
pcGetDetachedState
public Object pcGetDetachedState()
- Specified by:
 pcGetDetachedStatein interfacePersistenceCapable
 
- 
pcSetDetachedState
public void pcSetDetachedState(Object state)
- Specified by:
 pcSetDetachedStatein interfacePersistenceCapable
 
- 
pcSetSerializationUserVisible
public void pcSetSerializationUserVisible(boolean userVisible)
 
- 
pcIsSerializationUserVisible
public boolean pcIsSerializationUserVisible()
 
- 
getManagedInstance
public Object getManagedInstance()
- Specified by:
 getManagedInstancein interfaceManagedInstanceProvider
 
 - 
 
 -