|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.metadata.MetaData
Base class for all MetaData. Provides state management for the MetaData. The states represent the lifecycle of a MetaData object. The lifecycle goes as follows :
Field Summary | |
protected static Localiser |
LOCALISER
|
static int |
METADATA_CREATED_STATE
State representing the start state of MetaData, representing the initial values passed in. |
static int |
METADATA_INITIALISED_STATE
State reflecting that MetaData object has been initialised, setting up any internal information that is required. |
static int |
METADATA_POPULATED_STATE
State reflecting that MetaData object has been populated with the real class definition, adding in extra fields that weren't in the startup. |
static int |
METADATA_USED_STATE
State reflecting that MetaData object has been modified with usage information (e.g actual column names for the fields). |
protected int |
metaDataState
State indicator for this MetaData object. |
protected MetaData |
parent
Parent MetaData object. |
Constructor Summary | |
MetaData(MetaData parent)
Constructor. |
Method Summary | |
MetaData |
getParent()
Accessor for the parent MetaData object. |
void |
initialise()
Method to initialise the object. |
boolean |
isCreated()
Accessor for whether the object state is "created". |
boolean |
isInitialised()
Accessor for whether the object state is "initialised". |
boolean |
isPopulated()
Accessor for whether the object state is "populated". |
boolean |
isUsed()
Accessor for whether the object state is "used". |
void |
populate()
Method to populate the object. |
void |
setInitialised()
Utility to set the state as initialised. |
void |
setPopulated()
Utility to set the state as populated. |
void |
setUsed()
Utility to set the state as used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Localiser LOCALISER
public static final int METADATA_CREATED_STATE
public static final int METADATA_POPULATED_STATE
public static final int METADATA_INITIALISED_STATE
public static final int METADATA_USED_STATE
protected int metaDataState
protected MetaData parent
Constructor Detail |
public MetaData(MetaData parent)
parent
- The parent MetaData object.Method Detail |
public void populate()
public void initialise()
public void setInitialised()
public void setPopulated()
public void setUsed()
public MetaData getParent()
public boolean isCreated()
public boolean isPopulated()
public boolean isInitialised()
public boolean isUsed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |