|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateManager
Internal state manager for managed instances.
Field Summary | |
---|---|
static int |
SET_ATTACH
|
static int |
SET_REMOTE
|
static int |
SET_USER
|
Method Summary | |
---|---|
void |
accessingField(int idx)
Field access callback. |
void |
dirty(java.lang.String field)
Make named field dirty. |
java.lang.Object |
fetchObjectId()
Return the object id, assigning it if necessary. |
java.lang.Object |
getGenericContext()
Persistence context. |
java.lang.Object |
getVersion()
Returns the optimistic version for this instance. |
boolean |
isDeleted()
Whether the instance is deleted in this transaction. |
boolean |
isDetached()
Whether the instance is detached (i.e. |
boolean |
isDirty()
Whether the instance has been modified in this transaction. |
boolean |
isNew()
Whether the instance is newly-persisted in this transaction. |
boolean |
isPersistent()
Whether the instance is persistent. |
boolean |
isTransactional()
Whether the instance is transactional. |
void |
providedBooleanField(PersistenceCapable pc,
int idx,
boolean cur)
Provide state callback. |
void |
providedByteField(PersistenceCapable pc,
int idx,
byte cur)
Provide state callback. |
void |
providedCharField(PersistenceCapable pc,
int idx,
char cur)
Provide state callback. |
void |
providedDoubleField(PersistenceCapable pc,
int idx,
double cur)
Provide state callback. |
void |
providedFloatField(PersistenceCapable pc,
int idx,
float cur)
Provide state callback. |
void |
providedIntField(PersistenceCapable pc,
int idx,
int cur)
Provide state callback. |
void |
providedLongField(PersistenceCapable pc,
int idx,
long cur)
Provide state callback. |
void |
providedObjectField(PersistenceCapable pc,
int idx,
java.lang.Object cur)
Provide state callback. |
void |
providedShortField(PersistenceCapable pc,
int idx,
short cur)
Provide state callback. |
void |
providedStringField(PersistenceCapable pc,
int idx,
java.lang.String cur)
Provide state callback. |
void |
proxyDetachedDeserialized(int idx)
Proxy the given detached field after deserialization. |
boolean |
replaceBooleanField(PersistenceCapable pc,
int idx)
Replace state callback. |
byte |
replaceByteField(PersistenceCapable pc,
int idx)
Replace state callback. |
char |
replaceCharField(PersistenceCapable pc,
int idx)
Replace state callback. |
double |
replaceDoubleField(PersistenceCapable pc,
int idx)
Replace state callback. |
byte |
replaceFlags()
Change internal flags. |
float |
replaceFloatField(PersistenceCapable pc,
int idx)
Replace state callback. |
int |
replaceIntField(PersistenceCapable pc,
int idx)
Replace state callback. |
long |
replaceLongField(PersistenceCapable pc,
int idx)
Replace state callback. |
java.lang.Object |
replaceObjectField(PersistenceCapable pc,
int idx)
Replace state callback. |
short |
replaceShortField(PersistenceCapable pc,
int idx)
Replace state callback. |
StateManager |
replaceStateManager(StateManager sm)
Change state manager. |
java.lang.String |
replaceStringField(PersistenceCapable pc,
int idx)
Replace state callback. |
boolean |
serializing()
Callback to prepare instance for serialization. |
void |
settingBooleanField(PersistenceCapable pc,
int idx,
boolean cur,
boolean next,
int set)
Setting state callback. |
void |
settingByteField(PersistenceCapable pc,
int idx,
byte cur,
byte next,
int set)
Setting state callback. |
void |
settingCharField(PersistenceCapable pc,
int idx,
char cur,
char next,
int set)
Setting state callback. |
void |
settingDoubleField(PersistenceCapable pc,
int idx,
double cur,
double next,
int set)
Setting state callback. |
void |
settingFloatField(PersistenceCapable pc,
int idx,
float cur,
float next,
int set)
Setting state callback. |
void |
settingIntField(PersistenceCapable pc,
int idx,
int cur,
int next,
int set)
Setting state callback. |
void |
settingLongField(PersistenceCapable pc,
int idx,
long cur,
long next,
int set)
Setting state callback. |
void |
settingObjectField(PersistenceCapable pc,
int idx,
java.lang.Object cur,
java.lang.Object next,
int set)
Setting state callback. |
void |
settingShortField(PersistenceCapable pc,
int idx,
short cur,
short next,
int set)
Setting state callback. |
void |
settingStringField(PersistenceCapable pc,
int idx,
java.lang.String cur,
java.lang.String next,
int set)
Setting state callback. |
boolean |
writeDetached(java.io.ObjectOutput out)
Write detached state object and detached state manager to the given stream. |
Field Detail |
---|
static final int SET_USER
static final int SET_REMOTE
static final int SET_ATTACH
Method Detail |
---|
java.lang.Object getGenericContext()
byte replaceFlags()
StateManager replaceStateManager(StateManager sm)
java.lang.Object getVersion()
boolean isDirty()
boolean isTransactional()
boolean isPersistent()
boolean isNew()
boolean isDeleted()
boolean isDetached()
void dirty(java.lang.String field)
java.lang.Object fetchObjectId()
boolean serializing()
boolean writeDetached(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
void proxyDetachedDeserialized(int idx)
void accessingField(int idx)
void settingBooleanField(PersistenceCapable pc, int idx, boolean cur, boolean next, int set)
void settingCharField(PersistenceCapable pc, int idx, char cur, char next, int set)
void settingByteField(PersistenceCapable pc, int idx, byte cur, byte next, int set)
void settingShortField(PersistenceCapable pc, int idx, short cur, short next, int set)
void settingIntField(PersistenceCapable pc, int idx, int cur, int next, int set)
void settingLongField(PersistenceCapable pc, int idx, long cur, long next, int set)
void settingFloatField(PersistenceCapable pc, int idx, float cur, float next, int set)
void settingDoubleField(PersistenceCapable pc, int idx, double cur, double next, int set)
void settingStringField(PersistenceCapable pc, int idx, java.lang.String cur, java.lang.String next, int set)
void settingObjectField(PersistenceCapable pc, int idx, java.lang.Object cur, java.lang.Object next, int set)
void providedBooleanField(PersistenceCapable pc, int idx, boolean cur)
void providedCharField(PersistenceCapable pc, int idx, char cur)
void providedByteField(PersistenceCapable pc, int idx, byte cur)
void providedShortField(PersistenceCapable pc, int idx, short cur)
void providedIntField(PersistenceCapable pc, int idx, int cur)
void providedLongField(PersistenceCapable pc, int idx, long cur)
void providedFloatField(PersistenceCapable pc, int idx, float cur)
void providedDoubleField(PersistenceCapable pc, int idx, double cur)
void providedStringField(PersistenceCapable pc, int idx, java.lang.String cur)
void providedObjectField(PersistenceCapable pc, int idx, java.lang.Object cur)
boolean replaceBooleanField(PersistenceCapable pc, int idx)
char replaceCharField(PersistenceCapable pc, int idx)
byte replaceByteField(PersistenceCapable pc, int idx)
short replaceShortField(PersistenceCapable pc, int idx)
int replaceIntField(PersistenceCapable pc, int idx)
long replaceLongField(PersistenceCapable pc, int idx)
float replaceFloatField(PersistenceCapable pc, int idx)
double replaceDoubleField(PersistenceCapable pc, int idx)
java.lang.String replaceStringField(PersistenceCapable pc, int idx)
java.lang.Object replaceObjectField(PersistenceCapable pc, int idx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |