|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.schema.RDBMSColumnInfo
public class RDBMSColumnInfo
Representation of column schema information in the datastore.
| Field Summary | |
|---|---|
protected int |
charOctetLength
Indicates the maximum number of bytes in the column (for char types only). |
protected String |
columnDef
The default value for the column; may be null. |
protected String |
columnName
The column name. |
protected int |
columnSize
The column size. |
protected short |
dataType
Indicates the JDBC (SQL) data type from Types. |
protected int |
decimalDigits
Indicates the number of fractional digits. |
protected String |
isNullable
Whether the column definitely doesnt allow NULL values ("NO") or possibly does ("YES"). |
protected int |
nullable
Indicates whether the column can be NULL. |
protected int |
numPrecRadix
Indicates the radix, which is typically either 10 or 2. |
protected int |
ordinalPosition
The index of the column in its table; the first column is 1, the second column is 2. |
protected String |
remarks
An explanatory comment on the column; may be null. |
protected String |
tableCat
The table catalog, which may be null. |
protected String |
tableName
The table name. |
protected String |
tableSchem
The table schema, which may be null. |
protected String |
typeName
The local type name used by the data source. |
| Constructor Summary | |
|---|---|
RDBMSColumnInfo(ResultSet rs)
Constructor to create a column info definition for the current row of the passed ResultSet. |
|
| Method Summary | |
|---|---|
void |
addChild(org.datanucleus.store.schema.StoreSchemaData child)
|
void |
addProperty(String name,
Object value)
Method to add a property for the column. |
void |
clearChildren()
Method to remove all children. |
boolean |
equals(Object obj)
Indicates whether some object is "equal to" this one. |
int |
getCharOctetLength()
|
org.datanucleus.store.schema.StoreSchemaData |
getChild(int position)
|
List |
getChildren()
|
String |
getColumnDef()
|
String |
getColumnName()
|
int |
getColumnSize()
|
short |
getDataType()
|
int |
getDecimalDigits()
|
String |
getIsNullable()
|
int |
getNullable()
|
int |
getNumberOfChildren()
|
int |
getNumPrecRadix()
|
int |
getOrdinalPosition()
|
org.datanucleus.store.schema.StoreSchemaData |
getParent()
Accessor for the parent Table schema component. |
Object |
getProperty(String name)
Accessor for a property. |
String |
getRemarks()
|
String |
getTableCat()
|
String |
getTableName()
|
String |
getTableSchem()
|
String |
getTypeName()
|
int |
hashCode()
Returns a hash code value for this object. |
void |
setColumnSize(int size)
|
void |
setDataType(short type)
|
void |
setDecimalDigits(int digits)
|
void |
setParent(org.datanucleus.store.schema.StoreSchemaData parent)
Mutator for the parent component. |
String |
toString()
Returns the string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String tableCat
protected String tableSchem
protected String tableName
protected String columnName
protected short dataType
Types.
protected String typeName
protected int columnSize
protected int decimalDigits
protected int numPrecRadix
protected int nullable
protected String remarks
protected String columnDef
protected int charOctetLength
protected int ordinalPosition
protected String isNullable
| Constructor Detail |
|---|
public RDBMSColumnInfo(ResultSet rs)
rs - ResultSet (from DatabaseMetaData.getColumns() for example).
org.datanucleus.exceptions.NucleusDataStoreException - Thrown if an error occurs getting the information| Method Detail |
|---|
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent in interface org.datanucleus.store.schema.ListStoreSchemaDataparent - Parent componentpublic org.datanucleus.store.schema.StoreSchemaData getParent()
getParent in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic void setDecimalDigits(int digits)
public void setDataType(short type)
public void setColumnSize(int size)
public int getDecimalDigits()
public String getIsNullable()
public int getNullable()
public int getColumnSize()
public short getDataType()
public int getNumPrecRadix()
public int getCharOctetLength()
public int getOrdinalPosition()
public String getColumnDef()
public String getRemarks()
public String getTypeName()
public String getTableName()
public String getColumnName()
public String getTableCat()
public String getTableSchem()
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 void addChild(org.datanucleus.store.schema.StoreSchemaData child)
addChild in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic 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.ListStoreSchemaDatapublic List getChildren()
getChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic int getNumberOfChildren()
getNumberOfChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic 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 | |||||||||