|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hsqldb.DITypeInfo
Provides information intrinsic to each standard data type known to HSQLDB. This includes all types for which standard type codes are known at the time of writing and thus includes types that may not yet be supported as table or procedure columns.
Constructor Summary | |
DITypeInfo()
Creates a new DITypeInfo object having the default Locale. |
Method Summary | |
Integer |
getCharOctLen()
Retrieves the maximum Integer.MAX_VALUE bounded length, in bytes, for character types. |
Long |
getCharOctLenAct()
Retrieves the maximum Long.MAX_VALUE bounded length, in bytes, for character types. |
String |
getColStClsName()
Retrieves the fully-qualified name of the Java class whose instances are manufactured by HSQLDB to store table column values in memory. |
String |
getCreateParams()
Retrieves a character sequence representing a CSV list, in DDL declaraion order, of the create parameters for the type. |
String |
getCstMapClsName()
Retrieves the fully-qualified name of the HSQLDB-provided java.sql interface implementation class whose instances would be manufactured by HSQLDB to retrieve column values of this type, if the the type does not have a standard Java mapping. |
Integer |
getDataType()
Retrieves the data type, as an Integer. |
Integer |
getDefaultScale()
Retrieves the implied or single permitted scale for exact numeric types, when no scale is declared or no scale declaration is permitted. |
Integer |
getIntervalPrecision()
Retrieves null (not implemented). |
String |
getLiteralPrefix()
Retrieves the character(s) prefixing a literal of this type. |
String |
getLiteralSuffix()
Retrieves the character(s) terminating a literal of this type. |
String |
getLocalName()
Retrieves a localized representation of the type's name, for human consumption only. |
int |
getMaxDisplaySize()
Retrieves the maximum length that a String representation of the type may have. |
Integer |
getMaxScale()
Retrieves the maximum Short.MAX_VALUE bounded scale supported for the type. |
Integer |
getMaxScaleAct()
Retrieves the maximum Integer.MAX_VALUE bounded scale supported for the type. |
Integer |
getMinScale()
Retrieves the minumum Short.MIN_VALUE bounded scale supported for the type. |
Integer |
getMinScaleAct()
Retrieves the minumum Integer.MIN_VALUE bounded scale supported for the type. |
Integer |
getNullability()
Retrieves the DatabaseMetaData default nullability code for the type. |
Integer |
getNumPrecRadix()
Retrieves the number base which is to be used to interpret the value reported by getPrecision(). |
Integer |
getPrecision()
Retrieves the maximum Integer.MAX_VALUE bounded length or precision for the type. |
Long |
getPrecisionAct()
Retrieves the maximum Long.MAX_VALUE bounded length or precision for the type. |
String |
getRemarks()
Retrieves the localized remarks (if any) on the type. |
Integer |
getSearchability()
Retrieves the DatabaseMetaData searchability code for the type. |
Integer |
getSqlDataType()
Retrieves the SQL CLI data type code for the type. |
Integer |
getSqlDateTimeSub()
Retrieves the SQL CLI datetime subcode for the type. |
String |
getStdMapClsName()
Retrieve the fully qualified name of the recommended standard Java primitive, class or java.sql interface mapping for the type. |
int |
getTypeCode()
Retrieves the data type as an int. |
String |
getTypeName()
Retrieves the canonical data type name HSQLDB associates with the type. |
int |
getTypeSub()
Retrieves the HSQLDB data subtype as an int. |
Boolean |
isAutoIncrement()
Retrieves whether the type is an IDENTITY type. |
Boolean |
isCaseSensitive()
Retrieves whether the type is case-sensitive in collations and comparisons. |
Boolean |
isColStClsSupported()
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports storing this type in table columns. |
Boolean |
isFixedPrecisionScale()
Retrieves whether values of this type have a fixed precision and scale. |
Boolean |
isStdMapClsSupported()
Retrieve whether the fully qualified name reported by getStdMapClsName() is supported as a jdbcResultSet.getXXX return type under the current HSQLDB release, class path and hosting JVM. |
Boolean |
isSupportedAsPCol()
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports passing or receiving this type as the value of a procedure column. |
Boolean |
isSupportedAsTCol()
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports this as the type of a table column. |
Boolean |
isUnsignedAttribute()
Retrieves whether values of this type are unsigned. |
void |
setLocale(Locale l)
Assigns the Locale object used to retrieve this object's resource bundle dependent values. |
void |
setTypeCode(int type)
Assigns the SQL data type code on which this object is to report. |
void |
setTypeSub(int typeSub)
Assigns the HSQLDB data subtype code on which this object is to report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DITypeInfo()
Method Detail |
public Integer getCharOctLen()
public Long getCharOctLenAct()
public String getColStClsName()
This is also typically the fully-qualified name of the Java class whose instances are manufactured by HSQLDB in response to jdbcResultSet.getObject(int).
public String getCreateParams()
public String getCstMapClsName()
This value is simply the expected class name, regardless of whether HSQLDB, the specific HSQLDB distribution instance or the hosting JVM actually provide or support such implementations. That is, as of a specific release, HSQLDB may not yet provide such an implementation or may not automatically map to it or may not support it as a table column type, the version of java.sql may not define the interface to implement and the HSQLDB jar may not contain the implementation classes, even if they are defined in the corresponding release and build options and are supported under the hosting JVM's java.sql version.
public int getMaxDisplaySize()
public Integer getDataType()
public Integer getDefaultScale()
public Integer getIntervalPrecision()
public String getLiteralPrefix()
public String getLiteralSuffix()
public String getLocalName()
public Integer getMaxScale()
public Integer getMaxScaleAct()
public Integer getMinScale()
public Integer getMinScaleAct()
public Integer getNullability()
public Integer getNumPrecRadix()
public Integer getPrecision()
public Long getPrecisionAct()
public String getRemarks()
public Integer getSearchability()
public Integer getSqlDataType()
public Integer getSqlDateTimeSub()
public String getStdMapClsName()
public int getTypeCode()
public String getTypeName()
This typically matches the designated JDBC name, with one or two exceptions.
public int getTypeSub()
public Boolean isAutoIncrement()
public Boolean isCaseSensitive()
public Boolean isColStClsSupported()
This value also typically represents whether HSQLDB supports retrieving values of this type in the columns of ResultSets.
public Boolean isFixedPrecisionScale()
public Boolean isStdMapClsSupported()
public Boolean isSupportedAsPCol()
public Boolean isSupportedAsTCol()
public Boolean isUnsignedAttribute()
public void setLocale(Locale l)
l
- the Locale object used to retrieve this object's resource
bundle dependent valuespublic void setTypeCode(int type)
type
- the SQL data type code on which this object is to reportpublic void setTypeSub(int typeSub)
typeSub
- the HSQLDB data subtype code on which this object
is to report
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |