|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.schema.RDBMSSchemaInfo
public class RDBMSSchemaInfo
Representation of schema table information in the datastore. Stores a map of tables, keyed by the table name. Supports the following properties :-
| Constructor Summary | |
|---|---|
RDBMSSchemaInfo(String catalog,
String schema)
|
|
| Method Summary | |
|---|---|
void |
addChild(org.datanucleus.store.schema.StoreSchemaData data)
Method to add another table to the schema. |
void |
addProperty(String name,
Object value)
Method to add a property for the schema. |
void |
clearChildren()
Method to remove all children. |
boolean |
equals(Object obj)
Indicates whether some object is "equal to" this one. |
org.datanucleus.store.schema.StoreSchemaData |
getChild(String key)
Accessor for the table with this key. |
Map<String,org.datanucleus.store.schema.StoreSchemaData> |
getChildren()
Accessor for the tables. |
int |
getNumberOfChildren()
Accessor for the number of tables in the schema for this schema. |
org.datanucleus.store.schema.StoreSchemaData |
getParent()
|
Object |
getProperty(String name)
Accessor for a property of the schema. |
int |
hashCode()
Returns a hash code value for this object. |
void |
setParent(org.datanucleus.store.schema.StoreSchemaData parent)
|
String |
toString()
Returns the string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RDBMSSchemaInfo(String catalog,
String schema)
| Method Detail |
|---|
public void addChild(org.datanucleus.store.schema.StoreSchemaData data)
addChild in interface org.datanucleus.store.schema.MapStoreSchemaDatadata - Child information (RDBMSTableInfo)
org.datanucleus.exceptions.NucleusException - Thrown if the table has no property "table_key"public void clearChildren()
clearChildren in interface org.datanucleus.store.schema.MapStoreSchemaDatapublic org.datanucleus.store.schema.StoreSchemaData getChild(String key)
getChild in interface org.datanucleus.store.schema.MapStoreSchemaDatakey - Key of the table
public Map<String,org.datanucleus.store.schema.StoreSchemaData> getChildren()
getChildren in interface org.datanucleus.store.schema.MapStoreSchemaDatapublic int getNumberOfChildren()
getNumberOfChildren in interface org.datanucleus.store.schema.MapStoreSchemaData
public void addProperty(String name,
Object value)
addProperty in interface org.datanucleus.store.schema.StoreSchemaDataname - Name of propertyvalue - Its valuepublic Object getProperty(String name)
getProperty in interface org.datanucleus.store.schema.StoreSchemaDataname - Name of the property
public org.datanucleus.store.schema.StoreSchemaData getParent()
getParent in interface org.datanucleus.store.schema.MapStoreSchemaDatapublic void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent in interface org.datanucleus.store.schema.MapStoreSchemaDatapublic final boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare
public final int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||