public class RDBMSSchemaInfo extends Object implements org.datanucleus.store.schema.MapStoreSchemaData
Constructor and Description |
---|
RDBMSSchemaInfo(String catalog,
String schema) |
Modifier and Type | Method and Description |
---|---|
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.
|
public void addChild(org.datanucleus.store.schema.StoreSchemaData data)
addChild
in interface org.datanucleus.store.schema.MapStoreSchemaData
data
- 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.MapStoreSchemaData
public org.datanucleus.store.schema.StoreSchemaData getChild(String key)
getChild
in interface org.datanucleus.store.schema.MapStoreSchemaData
key
- Key of the tablepublic Map<String,org.datanucleus.store.schema.StoreSchemaData> getChildren()
getChildren
in interface org.datanucleus.store.schema.MapStoreSchemaData
public int getNumberOfChildren()
getNumberOfChildren
in interface org.datanucleus.store.schema.MapStoreSchemaData
public void addProperty(String name, Object value)
addProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of propertyvalue
- Its valuepublic Object getProperty(String name)
getProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of the propertypublic org.datanucleus.store.schema.StoreSchemaData getParent()
getParent
in interface org.datanucleus.store.schema.MapStoreSchemaData
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent
in interface org.datanucleus.store.schema.MapStoreSchemaData
public final boolean equals(Object obj)
public final int hashCode()
Copyright © 2017. All rights reserved.