|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.ProxySetupStateManager
class ProxySetupStateManager
Mostly-unimplemented state manager type whose sole purpose is to check the initial value of all SCO container fields for their initialized types and comparators.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.enhance.StateManager |
---|
SET_ATTACH, SET_REMOTE, SET_USER |
Constructor Summary | |
---|---|
ProxySetupStateManager()
|
Method Summary | |
---|---|
void |
accessingField(int i)
Field access callback. |
void |
dirty(String s)
Make named field dirty. |
Object |
fetchObjectId()
Return the object id, assigning it if necessary. |
Object |
getGenericContext()
Persistence context. |
Object |
getPCPrimaryKey(Object oid,
int field)
Return the persistence-capable primary key object by extracting the identity value of the related instance stored in the given field from the given object id. |
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 i,
boolean b)
Provide state callback. |
void |
providedByteField(PersistenceCapable pc,
int i,
byte b)
Provide state callback. |
void |
providedCharField(PersistenceCapable pc,
int i,
char c)
Provide state callback. |
void |
providedDoubleField(PersistenceCapable pc,
int i,
double d)
Provide state callback. |
void |
providedFloatField(PersistenceCapable pc,
int i,
float f)
Provide state callback. |
void |
providedIntField(PersistenceCapable pc,
int i,
int i2)
Provide state callback. |
void |
providedLongField(PersistenceCapable pc,
int i,
long l)
Provide state callback. |
void |
providedObjectField(PersistenceCapable pc,
int i,
Object o)
Provide state callback. |
void |
providedShortField(PersistenceCapable pc,
int i,
short s)
Provide state callback. |
void |
providedStringField(PersistenceCapable pc,
int i,
String s)
Provide state callback. |
void |
proxyDetachedDeserialized(int idx)
Proxy the given detached field after deserialization. |
boolean |
replaceBooleanField(PersistenceCapable pc,
int i)
Replace state callback. |
byte |
replaceByteField(PersistenceCapable pc,
int i)
Replace state callback. |
char |
replaceCharField(PersistenceCapable pc,
int i)
Replace state callback. |
double |
replaceDoubleField(PersistenceCapable pc,
int i)
Replace state callback. |
float |
replaceFloatField(PersistenceCapable pc,
int i)
Replace state callback. |
int |
replaceIntField(PersistenceCapable pc,
int i)
Replace state callback. |
long |
replaceLongField(PersistenceCapable pc,
int i)
Replace state callback. |
Object |
replaceObjectField(PersistenceCapable pc,
int i)
Replace state callback. |
short |
replaceShortField(PersistenceCapable pc,
int i)
Replace state callback. |
StateManager |
replaceStateManager(StateManager sm)
Change state manager. |
String |
replaceStringField(PersistenceCapable pc,
int i)
Replace state callback. |
boolean |
serializing()
Callback to prepare instance for serialization. |
void |
setProxyData(PersistenceCapable pc,
ClassMetaData meta)
|
void |
settingBooleanField(PersistenceCapable pc,
int i,
boolean b,
boolean b2,
int set)
Setting state callback. |
void |
settingByteField(PersistenceCapable pc,
int i,
byte b,
byte b2,
int set)
Setting state callback. |
void |
settingCharField(PersistenceCapable pc,
int i,
char c,
char c2,
int set)
Setting state callback. |
void |
settingDoubleField(PersistenceCapable pc,
int i,
double d,
double d2,
int set)
Setting state callback. |
void |
settingFloatField(PersistenceCapable pc,
int i,
float f,
float f2,
int set)
Setting state callback. |
void |
settingIntField(PersistenceCapable pc,
int i,
int i2,
int i3,
int set)
Setting state callback. |
void |
settingLongField(PersistenceCapable pc,
int i,
long l,
long l2,
int set)
Setting state callback. |
void |
settingObjectField(PersistenceCapable pc,
int i,
Object o,
Object o2,
int set)
Setting state callback. |
void |
settingShortField(PersistenceCapable pc,
int i,
short s,
short s2,
int set)
Setting state callback. |
void |
settingStringField(PersistenceCapable pc,
int i,
String s,
String s2,
int set)
Setting state callback. |
boolean |
writeDetached(ObjectOutput out)
Write detached state object and detached state manager to the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ProxySetupStateManager()
Method Detail |
---|
public void setProxyData(PersistenceCapable pc, ClassMetaData meta)
public Object getPCPrimaryKey(Object oid, int field)
StateManager
getPCPrimaryKey
in interface StateManager
public StateManager replaceStateManager(StateManager sm)
StateManager
replaceStateManager
in interface StateManager
public boolean isDirty()
StateManager
isDirty
in interface StateManager
public boolean isTransactional()
StateManager
isTransactional
in interface StateManager
public boolean isPersistent()
StateManager
isPersistent
in interface StateManager
public boolean isNew()
StateManager
isNew
in interface StateManager
public boolean isDeleted()
StateManager
isDeleted
in interface StateManager
public boolean isDetached()
StateManager
isDetached
in interface StateManager
public Object getGenericContext()
StateManager
getGenericContext
in interface StateManager
public void dirty(String s)
StateManager
dirty
in interface StateManager
public Object fetchObjectId()
StateManager
fetchObjectId
in interface StateManager
public Object getVersion()
StateManager
getVersion
in interface StateManager
public void accessingField(int i)
StateManager
accessingField
in interface StateManager
public boolean serializing()
StateManager
serializing
in interface StateManager
public boolean writeDetached(ObjectOutput out)
StateManager
writeDetached
in interface StateManager
public void proxyDetachedDeserialized(int idx)
StateManager
proxyDetachedDeserialized
in interface StateManager
public void settingBooleanField(PersistenceCapable pc, int i, boolean b, boolean b2, int set)
StateManager
settingBooleanField
in interface StateManager
public void settingCharField(PersistenceCapable pc, int i, char c, char c2, int set)
StateManager
settingCharField
in interface StateManager
public void settingByteField(PersistenceCapable pc, int i, byte b, byte b2, int set)
StateManager
settingByteField
in interface StateManager
public void settingShortField(PersistenceCapable pc, int i, short s, short s2, int set)
StateManager
settingShortField
in interface StateManager
public void settingIntField(PersistenceCapable pc, int i, int i2, int i3, int set)
StateManager
settingIntField
in interface StateManager
public void settingLongField(PersistenceCapable pc, int i, long l, long l2, int set)
StateManager
settingLongField
in interface StateManager
public void settingFloatField(PersistenceCapable pc, int i, float f, float f2, int set)
StateManager
settingFloatField
in interface StateManager
public void settingDoubleField(PersistenceCapable pc, int i, double d, double d2, int set)
StateManager
settingDoubleField
in interface StateManager
public void settingStringField(PersistenceCapable pc, int i, String s, String s2, int set)
StateManager
settingStringField
in interface StateManager
public void settingObjectField(PersistenceCapable pc, int i, Object o, Object o2, int set)
StateManager
settingObjectField
in interface StateManager
public void providedBooleanField(PersistenceCapable pc, int i, boolean b)
StateManager
providedBooleanField
in interface StateManager
public void providedCharField(PersistenceCapable pc, int i, char c)
StateManager
providedCharField
in interface StateManager
public void providedByteField(PersistenceCapable pc, int i, byte b)
StateManager
providedByteField
in interface StateManager
public void providedShortField(PersistenceCapable pc, int i, short s)
StateManager
providedShortField
in interface StateManager
public void providedIntField(PersistenceCapable pc, int i, int i2)
StateManager
providedIntField
in interface StateManager
public void providedLongField(PersistenceCapable pc, int i, long l)
StateManager
providedLongField
in interface StateManager
public void providedFloatField(PersistenceCapable pc, int i, float f)
StateManager
providedFloatField
in interface StateManager
public void providedDoubleField(PersistenceCapable pc, int i, double d)
StateManager
providedDoubleField
in interface StateManager
public void providedStringField(PersistenceCapable pc, int i, String s)
StateManager
providedStringField
in interface StateManager
public void providedObjectField(PersistenceCapable pc, int i, Object o)
StateManager
providedObjectField
in interface StateManager
public boolean replaceBooleanField(PersistenceCapable pc, int i)
StateManager
replaceBooleanField
in interface StateManager
public char replaceCharField(PersistenceCapable pc, int i)
StateManager
replaceCharField
in interface StateManager
public byte replaceByteField(PersistenceCapable pc, int i)
StateManager
replaceByteField
in interface StateManager
public short replaceShortField(PersistenceCapable pc, int i)
StateManager
replaceShortField
in interface StateManager
public int replaceIntField(PersistenceCapable pc, int i)
StateManager
replaceIntField
in interface StateManager
public long replaceLongField(PersistenceCapable pc, int i)
StateManager
replaceLongField
in interface StateManager
public float replaceFloatField(PersistenceCapable pc, int i)
StateManager
replaceFloatField
in interface StateManager
public double replaceDoubleField(PersistenceCapable pc, int i)
StateManager
replaceDoubleField
in interface StateManager
public String replaceStringField(PersistenceCapable pc, int i)
StateManager
replaceStringField
in interface StateManager
public Object replaceObjectField(PersistenceCapable pc, int i)
StateManager
replaceObjectField
in interface StateManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |