|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.StoreData
Representation of a class/field managed by the StoreManager.
Field Summary | |
static int |
FCO_TYPE
First class object (FCO) type |
protected java.lang.String |
interfaceName
If this class is an implementation of a persistent interface, this attribute will hold the name of the interface. |
protected boolean |
isTableOwner
Whether this class is the owner of the table. |
protected static Localiser |
LOCALISER
Localiser for messages. |
protected ExtendableMetaData |
metaData
MetaData for this object. |
protected java.lang.String |
name
Name of the class/field. |
static int |
SCO_TYPE
Second class object (SCO) type |
protected DatastoreContainerObject |
table
The datastore container (table) where this class/field is persisted. |
protected java.lang.String |
tableName
Name of the datastore object where it is stored. |
protected int |
type
Type of data being stored. |
Constructor Summary | |
StoreData(AbstractPropertyMetaData fmd,
DatastoreContainerObject table)
Constructor for SCO data. |
|
StoreData(ClassMetaData cmd,
DatastoreContainerObject table,
boolean tableOwner)
Constructor for FCO data. |
|
StoreData(java.lang.String name,
java.lang.String tableName,
boolean tableOwner,
int type,
java.lang.String interfaceName)
Constructor. |
Method Summary | |
DatastoreContainerObject |
getDatastoreContainerObject()
Accessor for the Table details. |
DatastoreIdentifier |
getDatastoreIdentifier()
Accessor for the identifier for the table. |
java.lang.String |
getInterfaceName()
Accessor for the persistent interface name |
ExtendableMetaData |
getMetaData()
Accessor for class/field meta data. |
java.lang.String |
getName()
Accessor for class/field name. |
java.lang.String |
getSuperclass()
Accessor for any superclass for this class, if this is a class. |
java.lang.String |
getTableName()
Accessor for tableName. |
int |
getType()
Accessor for type. |
boolean |
hasTable()
Accessor for whether this has a table representation. |
boolean |
isFCO()
Accessor for whether this represents FCO data |
boolean |
isSCO()
Accessor for whether this represents SCO data. |
boolean |
isTableOwner()
Accessor for whether this class is the owner of the table. |
void |
setDatastoreContainerObject(DatastoreClass table)
Convenience to set the table. |
java.lang.String |
toString()
Method to return this class/field managed object as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final Localiser LOCALISER
public static final int FCO_TYPE
public static final int SCO_TYPE
protected final java.lang.String name
protected final java.lang.String interfaceName
protected java.lang.String tableName
protected final boolean isTableOwner
protected final int type
protected final ExtendableMetaData metaData
protected DatastoreContainerObject table
Constructor Detail |
public StoreData(java.lang.String name, java.lang.String tableName, boolean tableOwner, int type, java.lang.String interfaceName)
name
- Name of the class/fieldtableName
- Name of the table associatedtableOwner
- Whether this is the ownertype
- The type (FCO/SCO)interfaceName
- if this class is an implementation of a persistent interface (multiple persistent interface names are comma separated), otherwise is null.public StoreData(ClassMetaData cmd, DatastoreContainerObject table, boolean tableOwner)
cmd
- MetaData for the class.table
- Table where the class is stored.tableOwner
- Whether the class is the owner of the table.public StoreData(AbstractPropertyMetaData fmd, DatastoreContainerObject table)
fmd
- MetaData for the field.table
- Table where the field is stored.Method Detail |
public java.lang.String getName()
public java.lang.String getInterfaceName()
public java.lang.String getTableName()
public boolean isTableOwner()
public boolean hasTable()
public boolean isFCO()
public boolean isSCO()
public int getType()
public java.lang.String getSuperclass()
public ExtendableMetaData getMetaData()
public DatastoreContainerObject getDatastoreContainerObject()
public DatastoreIdentifier getDatastoreIdentifier()
public void setDatastoreContainerObject(DatastoreClass table)
table
- The tablepublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |