public interface TypeDescriptor
Modifier and Type | Field and Description |
---|---|
static TypeDescriptor |
DOUBLE
Catalog type for nullable DOUBLE
|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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
static final TypeDescriptor DOUBLE
int getJDBCTypeId()
Types
int 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_BASED
boolean isRowMultiSet()
boolean isUserDefinedType()
TypeDescriptor[] getRowTypes()
java.lang.String[] getRowColumnNames()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.