|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TypeDescriptor
TypeDescriptor represents a type in a system catalog, a persistent type. Examples are columns in tables and parameters for routines. A TypeDescriptor is immutable.
| Field Summary | |
|---|---|
static TypeDescriptor |
INTEGER
Catalog type for nullable INTEGER |
static TypeDescriptor |
INTEGER_NOT_NULL
Catalog type for not nullable INTEGER |
static int |
MAXIMUM_WIDTH_UNKNOWN
The return value from getMaximumWidth() for types where the maximum width is unknown. |
static TypeDescriptor |
SMALLINT
Catalog type for nullable SMALLINT |
static TypeDescriptor |
SMALLINT_NOT_NULL
Catalog type for not nullable INTEGER |
| Method Summary | |
|---|---|
int |
getCollationType()
Get the collation type for this type. |
int |
getJDBCTypeId()
Get the jdbc type id for this type. |
int |
getMaximumWidth()
Returns the maximum width of the type. |
int |
getMaximumWidthInBytes()
Returns the maximum width of the type IN BYTES. |
int |
getPrecision()
Returns the number of decimal digits for the type, if applicable. |
java.lang.String[] |
getRowColumnNames()
If this catalog type is a row multi-set type then return its array of column names. |
TypeDescriptor[] |
getRowTypes()
If this catalog type is a row multi-set type then return its array of catalog types. |
int |
getScale()
Returns the number of digits to the right of the decimal for the type, if applicable. |
java.lang.String |
getSQLstring()
Converts this type descriptor (including length/precision) to a string suitable for appearing in a SQL type specifier. |
java.lang.String |
getTypeName()
Gets the name of this type. |
boolean |
isNullable()
Gets the nullability that values of this type have. |
boolean |
isRowMultiSet()
Return true if this is a Row Multiset type |
boolean |
isUserDefinedType()
Return true if this is a user defined type |
| Field Detail |
|---|
static final int MAXIMUM_WIDTH_UNKNOWN
static final TypeDescriptor INTEGER
static final TypeDescriptor INTEGER_NOT_NULL
static final TypeDescriptor SMALLINT
static final TypeDescriptor SMALLINT_NOT_NULL
| Method Detail |
|---|
int getJDBCTypeId()
Typesint getMaximumWidth()
int getMaximumWidthInBytes()
int getPrecision()
int getScale()
boolean isNullable()
java.lang.String getTypeName()
java.lang.String getSQLstring()
int getCollationType()
StringDataValue.COLLATION_TYPE_UCS_BASIC,
StringDataValue.COLLATION_TYPE_TERRITORY_BASEDboolean isRowMultiSet()
boolean isUserDefinedType()
TypeDescriptor[] getRowTypes()
java.lang.String[] getRowColumnNames()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||