public class RDBMSTableInfo extends Object implements org.datanucleus.store.schema.ListStoreSchemaData
| Constructor and Description |
|---|
RDBMSTableInfo() |
RDBMSTableInfo(ResultSet rs)
Constructor to create a table info definition for the current row of the passed ResultSet.
|
RDBMSTableInfo(String catalog,
String schema,
String table)
Constructor taking just the catalog, schema and table name directly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(org.datanucleus.store.schema.StoreSchemaData child)
Method to add another column to the table schema.
|
void |
addProperty(String name,
Object value)
Method to add a property for the table.
|
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(int position)
Accessor for the column at the position.
|
org.datanucleus.store.schema.StoreSchemaData |
getChild(String key)
Accessor for the column with a particular name.
|
List |
getChildren()
Accessor for the columns
|
int |
getNumberOfChildren()
Accessor for the number of columns in the schema for this table.
|
org.datanucleus.store.schema.StoreSchemaData |
getParent() |
Object |
getProperty(String name)
Accessor for a property of the table.
|
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 RDBMSTableInfo()
public RDBMSTableInfo(String catalog, String schema, String table)
catalog - Catalog containing the tableschema - Schema containing the tabletable - The table namepublic RDBMSTableInfo(ResultSet rs)
rs - ResultSet (from DatabaseMetaData.getTables() for example).org.datanucleus.exceptions.NucleusDataStoreException - Thrown if an error occurs getting the informationpublic void addChild(org.datanucleus.store.schema.StoreSchemaData child)
addChild in interface org.datanucleus.store.schema.ListStoreSchemaDatachild - Columnpublic void clearChildren()
clearChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic org.datanucleus.store.schema.StoreSchemaData getChild(int position)
getChild in interface org.datanucleus.store.schema.ListStoreSchemaDataposition - Index of the columnpublic org.datanucleus.store.schema.StoreSchemaData getChild(String key)
key - Name of the columnpublic List getChildren()
getChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic int getNumberOfChildren()
getNumberOfChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic 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 propertypublic org.datanucleus.store.schema.StoreSchemaData getParent()
getParent in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic final boolean equals(Object obj)
public final int hashCode()
Copyright © 2017. All rights reserved.