Quadcap Embeddable Database

com.quadcap.sql.meta.MetaTypes Class Reference

Inheritance diagram for com.quadcap.sql.meta.MetaTypes:

com.quadcap.sql.meta.MetaCursor com.quadcap.sql.StaticCursor com.quadcap.sql.CursorImpl Externalizable com.quadcap.sql.TupleImpl com.quadcap.sql.Cursor com.quadcap.sql.Tuple Externalizable com.quadcap.sql.Tuple List of all members.

Detailed Description

A Cursor supporting the getTypes function.

Author:
Stan Bailes

Definition at line 65 of file MetaTypes.java.

Public Member Functions

 MetaTypes (Session session) throws SQLException
 Cursor constructor.

int[] getSortColumns ()
 Sort by type.


Package Functions

void addType (Type type) throws SQLException
 Helper to build a row for the resultset.


Static Package Attributes

Column[] cols
Type[] types
int[] sortColumns = { 2 }


Constructor & Destructor Documentation

com.quadcap.sql.meta.MetaTypes.MetaTypes Session  session  )  throws SQLException
 

Cursor constructor.

We're just a static repository of types

Definition at line 114 of file MetaTypes.java.

References com.quadcap.sql.meta.MetaTypes.addType(), com.quadcap.sql.meta.MetaTypes.cols, com.quadcap.sql.StaticCursor.sort(), and com.quadcap.sql.meta.MetaTypes.types.


Member Function Documentation

void com.quadcap.sql.meta.MetaTypes.addType Type  type  )  throws SQLException [package]
 

Helper to build a row for the resultset.

Definition at line 141 of file MetaTypes.java.

References com.quadcap.sql.meta.MetaTypes.addType(), and com.quadcap.sql.Row.set().

Referenced by com.quadcap.sql.meta.MetaTypes.addType(), and com.quadcap.sql.meta.MetaTypes.MetaTypes().

int [] com.quadcap.sql.meta.MetaTypes.getSortColumns  ) 
 

Sort by type.

Reimplemented from com.quadcap.sql.StaticCursor.

Definition at line 134 of file MetaTypes.java.

References com.quadcap.sql.meta.MetaTypes.sortColumns.


Member Data Documentation

Column [] com.quadcap.sql.meta.MetaTypes.cols [static, package]
 

Initial value:

{ new Column("TYPE_NAME", typeString), new Column("DATA_TYPE", typeShort), new Column("PRECISION", typeInt), new Column("LITERAL_PREFIX", typeString), new Column("LITERAL_SUFFIX", typeString), new Column("CREATE_PARAMS", typeString), new Column("NULLABLE", typeShort), new Column("CASE_SENSITIVE", typeBinary), new Column("SEARCHABLE", typeShort), new Column("UNSIGNED_ATTRIBUTE", typeBinary), new Column("FIXED_PREC_SCALE", typeBinary), new Column("AUTO_INCREMENT", typeBinary), new Column("LOCAL_TYPE_NAME", typeString), new Column("MINIMUM_SCALE", typeShort), new Column("MAXIMUM_SCALE", typeShort), new Column("SQL_DATA_TYPE", typeInt), new Column("SQL_DATETIME_SUB", typeInt), new Column("NUM_PREC_RADIX", typeInt), }

Definition at line 66 of file MetaTypes.java.

Referenced by com.quadcap.sql.meta.MetaTypes.MetaTypes().

int [] com.quadcap.sql.meta.MetaTypes.sortColumns = { 2 } [static, package]
 

Definition at line 109 of file MetaTypes.java.

Referenced by com.quadcap.sql.meta.MetaTypes.getSortColumns().

Type [] com.quadcap.sql.meta.MetaTypes.types [static, package]
 

Initial value:

{ TypeBigInt.typeBigInt, TypeBinary.typeBinary, TypeBoolean.typeBoolean, TypeBlob.typeBlob, TypeChar.typeChar, TypeClob.typeClob, TypeDate.typeDate, TypeDecimal.typeDecimal, TypeInt.typeInt, TypeInterval.typeInterval, TypeReal.typeDouble, TypeReal.typeFloat, TypeReal.typeReal, TypeSmallInt.typeSmallInt, TypeTime.typeTime, TypeTimestamp.typeTimestamp, TypeTinyInt.typeTinyInt, TypeVarBinary.typeVarBinary, TypeVarChar.typeVarChar, }

Definition at line 87 of file MetaTypes.java.

Referenced by com.quadcap.sql.meta.MetaTypes.MetaTypes().