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 java.lang.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
pcCopyFields(java.lang.Object fromObject, int[] fields)
void
pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, java.lang.Object obj)
void
pcCopyKeyFieldsToObjectId(java.lang.Object obj)
void
pcCopyKeyFieldsToObjectId(FieldSupplier supplier, java.lang.Object obj)
void
pcDirty(java.lang.String fieldName)
java.lang.Object
pcFetchObjectId()
java.lang.Object
pcGetDetachedState()
int
pcGetEnhancementContractVersion()
java.lang.Object
pcGetGenericContext()
StateManager
pcGetStateManager()
java.lang.Object
pcGetVersion()
boolean
pcIsDeleted()
java.lang.Boolean
pcIsDetached()
boolean
pcIsDirty()
boolean
pcIsNew()
boolean
pcIsPersistent()
boolean
pcIsTransactional()
PersistenceCapable
pcNewInstance(StateManager sm, boolean clear)
PersistenceCapable
pcNewInstance(StateManager sm, java.lang.Object obj, boolean clear)
java.lang.Object
pcNewObjectIdInstance()
java.lang.Object
pcNewObjectIdInstance(java.lang.Object obj)
void
pcProvideField(int fieldIndex)
void
pcProvideFields(int[] fieldIndices)
void
pcReplaceField(int fieldIndex)
void
pcReplaceFields(int[] fieldIndex)
void
pcReplaceStateManager(StateManager sm)
void
pcSetDetachedState(java.lang.Object state)
-
-
-
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 java.lang.Object DESERIALIZED
-
-
Method Detail
-
pcGetEnhancementContractVersion
int pcGetEnhancementContractVersion()
-
pcGetGenericContext
java.lang.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(java.lang.Object fromObject, int[] fields)
-
pcDirty
void pcDirty(java.lang.String fieldName)
-
pcFetchObjectId
java.lang.Object pcFetchObjectId()
-
pcGetVersion
java.lang.Object pcGetVersion()
-
pcIsDirty
boolean pcIsDirty()
-
pcIsTransactional
boolean pcIsTransactional()
-
pcIsPersistent
boolean pcIsPersistent()
-
pcIsNew
boolean pcIsNew()
-
pcIsDeleted
boolean pcIsDeleted()
-
pcIsDetached
java.lang.Boolean pcIsDetached()
-
pcNewInstance
PersistenceCapable pcNewInstance(StateManager sm, boolean clear)
-
pcNewInstance
PersistenceCapable pcNewInstance(StateManager sm, java.lang.Object obj, boolean clear)
-
pcNewObjectIdInstance
java.lang.Object pcNewObjectIdInstance()
-
pcNewObjectIdInstance
java.lang.Object pcNewObjectIdInstance(java.lang.Object obj)
-
pcCopyKeyFieldsToObjectId
void pcCopyKeyFieldsToObjectId(java.lang.Object obj)
-
pcCopyKeyFieldsToObjectId
void pcCopyKeyFieldsToObjectId(FieldSupplier supplier, java.lang.Object obj)
-
pcCopyKeyFieldsFromObjectId
void pcCopyKeyFieldsFromObjectId(FieldConsumer consumer, java.lang.Object obj)
-
pcGetDetachedState
java.lang.Object pcGetDetachedState()
-
pcSetDetachedState
void pcSetDetachedState(java.lang.Object state)
-
-