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
Fields Modifier and Type Field Description static byte
CHECK_READ
static byte
CHECK_WRITE
static Object
DESERIALIZED
static byte
LOAD_REQUIRED
static byte
MEDIATE_READ
static byte
MEDIATE_WRITE
static byte
READ_OK
static byte
READ_WRITE_OK
static byte
SERIALIZABLE
-
Method Summary
-
-
-
Field Detail
-
READ_WRITE_OK
static final byte READ_WRITE_OK
- See Also:
- Constant Field Values
-
LOAD_REQUIRED
static final byte LOAD_REQUIRED
- See Also:
- Constant Field Values
-
READ_OK
static final byte READ_OK
- See Also:
- Constant Field Values
-
CHECK_READ
static final byte CHECK_READ
- See Also:
- Constant Field Values
-
MEDIATE_READ
static final byte MEDIATE_READ
- See Also:
- Constant Field Values
-
CHECK_WRITE
static final byte CHECK_WRITE
- See Also:
- Constant Field Values
-
MEDIATE_WRITE
static final byte MEDIATE_WRITE
- See Also:
- Constant Field Values
-
SERIALIZABLE
static final byte SERIALIZABLE
- See Also:
- Constant Field Values
-
DESERIALIZED
static final Object DESERIALIZED
-
-
Method Detail
-
pcGetEnhancementContractVersion
int pcGetEnhancementContractVersion()
-
pcGetGenericContext
Object pcGetGenericContext()
-
pcGetStateManager
StateManager pcGetStateManager()
-
pcReplaceStateManager
void pcReplaceStateManager(StateManager sm)
-
pcProvideField
void pcProvideField(int fieldIndex)
-
pcProvideFields
void pcProvideFields(int[] fieldIndices)
-
pcReplaceField
void pcReplaceField(int fieldIndex)
-
pcReplaceFields
void pcReplaceFields(int[] fieldIndex)
-
pcCopyFields
void pcCopyFields(Object fromObject, int[] fields)
-
pcDirty
void pcDirty(String fieldName)
-
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
PersistenceCapable pcNewInstance(StateManager sm, boolean clear)
-
pcNewInstance
PersistenceCapable pcNewInstance(StateManager sm, Object obj, boolean clear)
-
pcNewObjectIdInstance
Object pcNewObjectIdInstance()
-
pcCopyKeyFieldsToObjectId
void pcCopyKeyFieldsToObjectId(Object obj)
-
pcCopyKeyFieldsToObjectId
void pcCopyKeyFieldsToObjectId(FieldSupplier supplier, Object obj)
-
pcCopyKeyFieldsFromObjectId
void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, Object obj)
-
pcGetDetachedState
Object pcGetDetachedState()
-
pcSetDetachedState
void pcSetDetachedState(Object state)
-
-