public class RDBMSColumnInfo extends Object implements org.datanucleus.store.schema.ListStoreSchemaData
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
RDBMSColumnInfo(ResultSet rs)
Constructor to create a column info definition for the current row of the passed ResultSet.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public RDBMSColumnInfo(ResultSet rs)
rs
- ResultSet (from DatabaseMetaData.getColumns() for example).org.datanucleus.exceptions.NucleusDataStoreException
- Thrown if an error occurs getting the informationpublic void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent
in interface org.datanucleus.store.schema.ListStoreSchemaData
parent
- Parent componentpublic org.datanucleus.store.schema.StoreSchemaData getParent()
getParent
in interface org.datanucleus.store.schema.ListStoreSchemaData
public 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.StoreSchemaData
name
- Name of propertyvalue
- Its valuepublic Object getProperty(String name)
getProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of the propertypublic void addChild(org.datanucleus.store.schema.StoreSchemaData child)
addChild
in interface org.datanucleus.store.schema.ListStoreSchemaData
public 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
public List getChildren()
getChildren
in interface org.datanucleus.store.schema.ListStoreSchemaData
public int getNumberOfChildren()
getNumberOfChildren
in interface org.datanucleus.store.schema.ListStoreSchemaData
public final boolean equals(Object obj)
public final int hashCode()
Copyright © 2015. All rights reserved.