Class RDBMSSchemaInfo
java.lang.Object
org.datanucleus.store.rdbms.schema.RDBMSSchemaInfo
- All Implemented Interfaces:
org.datanucleus.store.schema.MapStoreSchemaData, org.datanucleus.store.schema.StoreSchemaData
public class RDBMSSchemaInfo
extends Object
implements org.datanucleus.store.schema.MapStoreSchemaData
Representation of schema table information in the datastore.
Stores a map of tables, keyed by the table name.
Supports the following properties :-
- catalog Catalog containing the tables
- schema Schema containing the tables
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(org.datanucleus.store.schema.StoreSchemaData data) Method to add another table to the schema.voidaddProperty(String name, Object value) Method to add a property for the schema.voidMethod to remove all children.final booleanIndicates whether some object is "equal to" this one.org.datanucleus.store.schema.StoreSchemaDataAccessor for the table with this key.Accessor for the tables.intAccessor for the number of tables in the schema for this schema.org.datanucleus.store.schema.StoreSchemaDatagetProperty(String name) Accessor for a property of the schema.final inthashCode()Returns a hash code value for this object.voidsetParent(org.datanucleus.store.schema.StoreSchemaData parent) toString()Returns the string representation of this object.
-
Field Details
-
hash
private int hashHashcode. Set on first use. -
properties
-
tables
-
-
Constructor Details
-
RDBMSSchemaInfo
-
-
Method Details
-
addChild
public void addChild(org.datanucleus.store.schema.StoreSchemaData data) Method to add another table to the schema. Will key the table into its Map using the table property "table_key".- Specified by:
addChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
data- Child information (RDBMSTableInfo)- Throws:
org.datanucleus.exceptions.NucleusException- Thrown if the table has no property "table_key"
-
clearChildren
public void clearChildren()Method to remove all children.- Specified by:
clearChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
getChild
Accessor for the table with this key.- Specified by:
getChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
key- Key of the table- Returns:
- Table with this key
-
getChildren
-
getNumberOfChildren
public int getNumberOfChildren()Accessor for the number of tables in the schema for this schema.- Specified by:
getNumberOfChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Returns:
- Number of tables
-
addProperty
-
getProperty
-
getParent
public org.datanucleus.store.schema.StoreSchemaData getParent()- Specified by:
getParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
setParent
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent) - Specified by:
setParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
equals
Indicates whether some object is "equal to" this one. Two RDBMSSchemaInfo are considered equal if their catalog, schema are all equal. -
hashCode
-
toString
-