org.apache.openjpa.enhance
Class ReflectingPersistenceCapable
java.lang.Object
org.apache.openjpa.enhance.ReflectingPersistenceCapable
- All Implemented Interfaces:
- ManagedInstanceProvider, PersistenceCapable
public class ReflectingPersistenceCapable
- extends java.lang.Object
- implements PersistenceCapable, ManagedInstanceProvider
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectingPersistenceCapable
public ReflectingPersistenceCapable(java.lang.Object o,
OpenJPAConfiguration conf)
pcGetEnhancementContractVersion
public int pcGetEnhancementContractVersion()
- Specified by:
pcGetEnhancementContractVersion in interface PersistenceCapable
pcGetGenericContext
public java.lang.Object pcGetGenericContext()
- Specified by:
pcGetGenericContext in interface PersistenceCapable
pcGetStateManager
public StateManager pcGetStateManager()
- Specified by:
pcGetStateManager in interface PersistenceCapable
pcReplaceStateManager
public void pcReplaceStateManager(StateManager sm)
- Specified by:
pcReplaceStateManager in interface PersistenceCapable
pcProvideField
public void pcProvideField(int i)
- Specified by:
pcProvideField in interface PersistenceCapable
pcProvideFields
public void pcProvideFields(int[] fieldIndices)
- Specified by:
pcProvideFields in interface PersistenceCapable
pcReplaceField
public void pcReplaceField(int i)
- Specified by:
pcReplaceField in interface PersistenceCapable
pcReplaceFields
public void pcReplaceFields(int[] fieldIndices)
- Specified by:
pcReplaceFields in interface PersistenceCapable
pcCopyField
public void pcCopyField(java.lang.Object fromObject,
int i)
pcCopyFields
public void pcCopyFields(java.lang.Object fromObject,
int[] fieldIndices)
- Specified by:
pcCopyFields in interface PersistenceCapable
pcDirty
public void pcDirty(java.lang.String fieldName)
- Specified by:
pcDirty in interface PersistenceCapable
pcFetchObjectId
public java.lang.Object pcFetchObjectId()
- Specified by:
pcFetchObjectId in interface PersistenceCapable
pcGetVersion
public java.lang.Object pcGetVersion()
- Specified by:
pcGetVersion in interface PersistenceCapable
pcIsDirty
public boolean pcIsDirty()
- Specified by:
pcIsDirty in interface PersistenceCapable
pcIsTransactional
public boolean pcIsTransactional()
- Specified by:
pcIsTransactional in interface PersistenceCapable
pcIsPersistent
public boolean pcIsPersistent()
- Specified by:
pcIsPersistent in interface PersistenceCapable
pcIsNew
public boolean pcIsNew()
- Specified by:
pcIsNew in interface PersistenceCapable
pcIsDeleted
public boolean pcIsDeleted()
- Specified by:
pcIsDeleted in interface PersistenceCapable
pcIsDetached
public java.lang.Boolean pcIsDetached()
- Specified by:
pcIsDetached in interface PersistenceCapable
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm,
boolean clear)
- Specified by:
pcNewInstance in interface PersistenceCapable
pcNewInstance
public PersistenceCapable pcNewInstance(StateManager sm,
java.lang.Object oid,
boolean clear)
- Specified by:
pcNewInstance in interface PersistenceCapable
pcNewObjectIdInstance
public java.lang.Object pcNewObjectIdInstance()
- Specified by:
pcNewObjectIdInstance in interface PersistenceCapable
pcNewObjectIdInstance
public java.lang.Object pcNewObjectIdInstance(java.lang.Object oid)
- Specified by:
pcNewObjectIdInstance in interface PersistenceCapable
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(java.lang.Object oid)
- Specified by:
pcCopyKeyFieldsToObjectId in interface PersistenceCapable
pcCopyKeyFieldsToObjectId
public void pcCopyKeyFieldsToObjectId(FieldSupplier supplier,
java.lang.Object obj)
- Specified by:
pcCopyKeyFieldsToObjectId in interface PersistenceCapable
pcCopyKeyFieldsFromObjectId
public void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer,
java.lang.Object obj)
- Specified by:
pcCopyKeyFieldsFromObjectId in interface PersistenceCapable
pcGetDetachedState
public java.lang.Object pcGetDetachedState()
- Specified by:
pcGetDetachedState in interface PersistenceCapable
pcSetDetachedState
public void pcSetDetachedState(java.lang.Object state)
- Specified by:
pcSetDetachedState in interface PersistenceCapable
getManagedInstance
public java.lang.Object getManagedInstance()
- Specified by:
getManagedInstance in interface ManagedInstanceProvider
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.