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<org.datanucleus.store.schema.StoreSchemaData> |
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.ListStoreSchemaData
child
- Columnpublic void clearChildren()
clearChildren
in interface org.datanucleus.store.schema.ListStoreSchemaData
public org.datanucleus.store.schema.StoreSchemaData getChild(int position)
getChild
in interface org.datanucleus.store.schema.ListStoreSchemaData
position
- Index of the columnpublic org.datanucleus.store.schema.StoreSchemaData getChild(String key)
key
- Name of the columnpublic List<org.datanucleus.store.schema.StoreSchemaData> getChildren()
getChildren
in interface org.datanucleus.store.schema.ListStoreSchemaData
public int getNumberOfChildren()
getNumberOfChildren
in interface org.datanucleus.store.schema.ListStoreSchemaData
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.ListStoreSchemaData
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent
in interface org.datanucleus.store.schema.ListStoreSchemaData
public final boolean equals(Object obj)
public final int hashCode()
Copyright © 2020. All rights reserved.