|
||||||||||
| 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 java.lang.String |
columnDef
The default value for the column; may be null. |
protected java.lang.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 java.lang.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 java.lang.String |
remarks
An explanatory comment on the column; may be null. |
protected java.lang.String |
tableCat
The table catalog, which may be null. |
protected java.lang.String |
tableName
The table name. |
protected java.lang.String |
tableSchem
The table schema, which may be null. |
protected java.lang.String |
typeName
The local type name used by the data source. |
| Constructor Summary | |
|---|---|
RDBMSColumnInfo(java.sql.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(java.lang.String name,
java.lang.Object value)
Method to add a property for the column. |
void |
clearChildren()
Method to remove all children. |
boolean |
equals(java.lang.Object obj)
Indicates whether some object is "equal to" this one. |
int |
getCharOctetLength()
|
org.datanucleus.store.schema.StoreSchemaData |
getChild(int position)
|
java.util.List |
getChildren()
|
java.lang.String |
getColumnDef()
|
java.lang.String |
getColumnName()
|
int |
getColumnSize()
|
short |
getDataType()
|
int |
getDecimalDigits()
|
java.lang.String |
getIsNullable()
|
int |
getNullable()
|
int |
getNumberOfChildren()
|
int |
getNumPrecRadix()
|
int |
getOrdinalPosition()
|
org.datanucleus.store.schema.StoreSchemaData |
getParent()
Accessor for the parent Table schema component. |
java.lang.Object |
getProperty(java.lang.String name)
Accessor for a property. |
java.lang.String |
getRemarks()
|
java.lang.String |
getTableCat()
|
java.lang.String |
getTableName()
|
java.lang.String |
getTableSchem()
|
java.lang.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. |
java.lang.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 java.lang.String tableCat
protected java.lang.String tableSchem
protected java.lang.String tableName
protected java.lang.String columnName
protected short dataType
Types.
protected java.lang.String typeName
protected int columnSize
protected int decimalDigits
protected int numPrecRadix
protected int nullable
protected java.lang.String remarks
protected java.lang.String columnDef
protected int charOctetLength
protected int ordinalPosition
protected java.lang.String isNullable
| Constructor Detail |
|---|
public RDBMSColumnInfo(java.sql.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 java.lang.String getIsNullable()
public int getNullable()
public int getColumnSize()
public short getDataType()
public int getNumPrecRadix()
public int getCharOctetLength()
public int getOrdinalPosition()
public java.lang.String getColumnDef()
public java.lang.String getRemarks()
public java.lang.String getTypeName()
public java.lang.String getTableName()
public java.lang.String getColumnName()
public java.lang.String getTableCat()
public java.lang.String getTableSchem()
public void addProperty(java.lang.String name,
java.lang.Object value)
addProperty in interface org.datanucleus.store.schema.StoreSchemaDataname - Name of propertyvalue - Its valuepublic java.lang.Object getProperty(java.lang.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 java.util.List getChildren()
getChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic int getNumberOfChildren()
getNumberOfChildren in interface org.datanucleus.store.schema.ListStoreSchemaDatapublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare
public final int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||