Package org.apache.openjpa.enhance
Interface PersistenceCapable
- All Known Implementing Classes:
ReflectingPersistenceCapable
public interface PersistenceCapable
The interface that persistent instances will implement.
- Author:
- Marc Prud'hommeaux
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final Objectstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionvoidpcCopyFields(Object fromObject, int[] fields) voidpcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj) voidvoidpcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj) voidintbooleanbooleanbooleanpcIsNew()booleanbooleanpcNewInstance(StateManager sm, boolean clear) pcNewInstance(StateManager sm, Object obj, boolean clear) voidpcProvideField(int fieldIndex) voidpcProvideFields(int[] fieldIndices) voidpcReplaceField(int fieldIndex) voidpcReplaceFields(int[] fieldIndex) voidvoidpcSetDetachedState(Object state)
-
Field Details
-
READ_WRITE_OK
static final byte READ_WRITE_OK- See Also:
-
LOAD_REQUIRED
static final byte LOAD_REQUIRED- See Also:
-
READ_OK
static final byte READ_OK- See Also:
-
CHECK_READ
static final byte CHECK_READ- See Also:
-
MEDIATE_READ
static final byte MEDIATE_READ- See Also:
-
CHECK_WRITE
static final byte CHECK_WRITE- See Also:
-
MEDIATE_WRITE
static final byte MEDIATE_WRITE- See Also:
-
SERIALIZABLE
static final byte SERIALIZABLE- See Also:
-
DESERIALIZED
-
-
Method Details
-
pcGetEnhancementContractVersion
int pcGetEnhancementContractVersion() -
pcGetGenericContext
Object pcGetGenericContext() -
pcGetStateManager
StateManager pcGetStateManager() -
pcReplaceStateManager
-
pcProvideField
void pcProvideField(int fieldIndex) -
pcProvideFields
void pcProvideFields(int[] fieldIndices) -
pcReplaceField
void pcReplaceField(int fieldIndex) -
pcReplaceFields
void pcReplaceFields(int[] fieldIndex) -
pcCopyFields
-
pcDirty
-
pcFetchObjectId
Object pcFetchObjectId() -
pcGetVersion
Object pcGetVersion() -
pcIsDirty
boolean pcIsDirty() -
pcIsTransactional
boolean pcIsTransactional() -
pcIsPersistent
boolean pcIsPersistent() -
pcIsNew
boolean pcIsNew() -
pcIsDeleted
boolean pcIsDeleted() -
pcIsDetached
Boolean pcIsDetached() -
pcNewInstance
-
pcNewInstance
-
pcNewObjectIdInstance
Object pcNewObjectIdInstance() -
pcNewObjectIdInstance
-
pcCopyKeyFieldsToObjectId
-
pcCopyKeyFieldsToObjectId
-
pcCopyKeyFieldsFromObjectId
-
pcGetDetachedState
Object pcGetDetachedState() -
pcSetDetachedState
-