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
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final Object
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pcCopyFields
(Object fromObject, int[] fields) void
pcCopyKeyFieldsFromObjectId
(FieldConsumer consumer, Object obj) void
void
pcCopyKeyFieldsToObjectId
(FieldSupplier supplier, Object obj) void
int
boolean
boolean
boolean
pcIsNew()
boolean
boolean
pcNewInstance
(StateManager sm, boolean clear) pcNewInstance
(StateManager sm, Object obj, boolean clear) void
pcProvideField
(int fieldIndex) void
pcProvideFields
(int[] fieldIndices) void
pcReplaceField
(int fieldIndex) void
pcReplaceFields
(int[] fieldIndex) void
void
pcSetDetachedState
(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
-