|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.lifecycle.ShadowData
public class ShadowData
The data store for the ShadowObject that is associated with an Enhanced class. Stores the ID of Shadowed Objects.
| Constructor Summary | |
|---|---|
ShadowData(ID id,
int version)
|
|
| Method Summary | |
|---|---|
void |
clearInitialisation(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
Removes the initialisation flag for a field. |
void |
clearInitialisations()
|
ID |
getField(java.lang.Class declaringClass,
FieldType type,
java.lang.String name)
Returns a field if it exists, otherwise throws an exception |
FieldInfo[] |
getFields()
Returns an array of all the fields, which could be zero length if none exist. |
ID |
getID()
Gets the Object ID the ShadowData is associated with. |
int |
getVersion()
The version of the Object has defined by the Database that gave the ID to the enhanced object. |
boolean |
hasField(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
|
void |
initialiseField(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
Sets the status of a Field to say that it has already been initialised to the Entity. |
boolean |
isFieldInitialised(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
Returns the current known initialisation state of an Object. |
void |
setField(java.lang.Class declaringClass,
FieldType type,
java.lang.String name,
ID value)
Sets a field value. |
void |
setVersion(int newVersion)
Sets the version to a new value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShadowData(ID id,
int version)
| Method Detail |
|---|
public void setField(java.lang.Class declaringClass,
FieldType type,
java.lang.String name,
ID value)
type - The type of the fieldname - The name of the fieldvalue - The value the field should take
public ID getField(java.lang.Class declaringClass,
FieldType type,
java.lang.String name)
type - The class type of the fieldname - The name of the field
java.lang.RuntimeException - if the field does not existpublic FieldInfo[] getFields()
public boolean hasField(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
public ID getID()
public int getVersion()
public void setVersion(int newVersion)
newVersion - The new version parameter.
public void initialiseField(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
declaringClass - type - name -
public void clearInitialisation(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
declaringClass - type - name - public void clearInitialisations()
public boolean isFieldInitialised(java.lang.Class<?> declaringClass,
FieldType type,
java.lang.String name)
declaringClass - type - name -
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||