Class Types
- java.lang.Object
-
- org.hsqldb.types.Types
-
public class Types extends java.lang.ObjectDefines the constants that are used to identify SQL types for HSQLDB JDBC inteface type reporting. The actual type constant values are equivalent to those defined in the latest java.sql.Types, where available, or those defined by ansi/iso SQL 2003 otherwise. A type sub-identifer has been added to differentiate HSQLDB-specific type specializations.- Since:
- 1.7.2
-
-
Field Summary
Fields Modifier and Type Field and Description static int[][]ALL_TYPESEvery (type,type-sub) combination known in the HSQLDB context.static intARRAYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.static intBIGINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIGINT.static intBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBINARY.static intBITThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIT.static intBLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.static java.lang.StringBlobClassNamestatic intBOOLEANThe constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.static intCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCHAR.static intCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOBstatic java.lang.StringClobClassNamestatic intDATALINKThe constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeDATALINK.static intDATEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDATE.static java.lang.StringDateClassNamestatic intDECIMALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDECIMAL.static java.lang.StringDecimalClassNameNames of types returned by JDBC methods and accepted as library and user function argumentsstatic intDISTINCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.static intDOUBLEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDOUBLE.static intFLOATThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeFLOAT.static intINTEGERThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeINTEGER.static intJAVA_OBJECTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.static intLONGNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.static intLONGVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARBINARY.static intLONGVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARCHAR.static intMAX_CHAR_OR_VARCHAR_DISPLAY_SIZEA reasonable/customizable number to avoid the shortcomings/defects associated with doing a dynamic scan of results to determine the value.static intMULTISETThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeMULTISET.static intNCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHARstatic intNCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.static intNULLThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNULL.static intNUMERICThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNUMERIC.static intNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.static intOTHERThe constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.static intREALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREAL.static intREFThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.static intROWIDThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWIDstatic intSMALLINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSMALLINT.static intSQL_ALL_TYPESstatic intSQL_ARRAYstatic intSQL_ARRAY_LOCATORstatic intSQL_BIGINTstatic intSQL_BINARYstatic intSQL_BITstatic intSQL_BIT_VARYINGstatic intSQL_BLOBstatic intSQL_BLOB_LOCATORstatic intSQL_BOOLEANstatic intSQL_CHARstatic intSQL_CLOBstatic intSQL_CLOB_LOCATORstatic intSQL_DATALINKstatic intSQL_DATEstatic intSQL_DATETIMEstatic intSQL_DECIMALstatic intSQL_DOUBLEstatic intSQL_FLOATstatic intSQL_GUIDstatic intSQL_IMAGEstatic intSQL_INTEGERstatic intSQL_INTERVALstatic intSQL_INTERVAL_DAYstatic intSQL_INTERVAL_DAY_TO_HOURstatic intSQL_INTERVAL_DAY_TO_MINUTEstatic intSQL_INTERVAL_DAY_TO_SECONDstatic intSQL_INTERVAL_HOURstatic intSQL_INTERVAL_HOUR_TO_MINUTEstatic intSQL_INTERVAL_HOUR_TO_SECONDstatic intSQL_INTERVAL_MINUTEstatic intSQL_INTERVAL_MINUTE_TO_SECONDstatic intSQL_INTERVAL_MONTHstatic intSQL_INTERVAL_SECONDstatic intSQL_INTERVAL_YEARstatic intSQL_INTERVAL_YEAR_TO_MONTHstatic intSQL_LONGVARBINARYstatic intSQL_MULTISETstatic intSQL_MULTISET_LOCATORstatic intSQL_NCHARstatic intSQL_NTEXTstatic intSQL_NUMERICstatic intSQL_NVARCHARstatic intSQL_REALstatic intSQL_REFstatic intSQL_ROWstatic intSQL_SMALLINTstatic intSQL_SUB_DISTINCTstatic intSQL_SUB_STRUCTUREDstatic intSQL_TIMEstatic intSQL_TIME_WITH_TIME_ZONEstatic intSQL_TIMESTAMPstatic intSQL_TIMESTAMP_WITH_TIME_ZONEstatic intSQL_TYPE_NUMBER_LIMITstatic intSQL_UDTstatic intSQL_UDT_LOCATORstatic intSQL_USER_DEFINED_TYPEstatic intSQL_VARBINARYstatic intSQL_VARCHARstatic intSQL_VARIANTstatic intSQL_WCHARstatic intSQL_WLONGVARCHARstatic intSQL_WVARCHARstatic intSQL_XMLstatic intSQLXMLThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.static intSTRUCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.static intTIMEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME.static java.lang.StringTimeClassNamestatic intTIMESTAMPThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP.static java.lang.StringTimestampClassNamestatic intTINYINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTINYINT.static intTYPE_SUB_DEFAULTThe default HSQLODB type sub-identifier.static intVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARBINARY.static intVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARCHAR.static intVARCHAR_IGNORECASE
-
Constructor Summary
Constructors Constructor and Description Types()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanacceptsPrecision(int type)Types that accept precision params in column definition or casts.static booleanacceptsScaleCreateParam(int type)static booleanacceptsZeroPrecision(int type)static TypegetParameterSQLType(java.lang.Class c)Retieves the type object corresponding to the class of an IN, IN OUT or OUT parameter or a return type.static booleanisSearchable(int type)static booleanrequiresPrecision(int type)
-
-
-
Field Detail
-
DecimalClassName
public static final java.lang.String DecimalClassName
Names of types returned by JDBC methods and accepted as library and user function arguments- See Also:
- Constant Field Values
-
DateClassName
public static final java.lang.String DateClassName
- See Also:
- Constant Field Values
-
TimeClassName
public static final java.lang.String TimeClassName
- See Also:
- Constant Field Values
-
TimestampClassName
public static final java.lang.String TimestampClassName
- See Also:
- Constant Field Values
-
BlobClassName
public static final java.lang.String BlobClassName
- See Also:
- Constant Field Values
-
ClobClassName
public static final java.lang.String ClobClassName
- See Also:
- Constant Field Values
-
SQL_CHAR
public static final int SQL_CHAR
- See Also:
- Constant Field Values
-
SQL_NUMERIC
public static final int SQL_NUMERIC
- See Also:
- Constant Field Values
-
SQL_DECIMAL
public static final int SQL_DECIMAL
- See Also:
- Constant Field Values
-
SQL_INTEGER
public static final int SQL_INTEGER
- See Also:
- Constant Field Values
-
SQL_SMALLINT
public static final int SQL_SMALLINT
- See Also:
- Constant Field Values
-
SQL_FLOAT
public static final int SQL_FLOAT
- See Also:
- Constant Field Values
-
SQL_REAL
public static final int SQL_REAL
- See Also:
- Constant Field Values
-
SQL_DOUBLE
public static final int SQL_DOUBLE
- See Also:
- Constant Field Values
-
SQL_VARCHAR
public static final int SQL_VARCHAR
- See Also:
- Constant Field Values
-
SQL_BOOLEAN
public static final int SQL_BOOLEAN
- See Also:
- Constant Field Values
-
SQL_USER_DEFINED_TYPE
public static final int SQL_USER_DEFINED_TYPE
- See Also:
- Constant Field Values
-
SQL_ROW
public static final int SQL_ROW
- See Also:
- Constant Field Values
-
SQL_REF
public static final int SQL_REF
- See Also:
- Constant Field Values
-
SQL_BIGINT
public static final int SQL_BIGINT
- See Also:
- Constant Field Values
-
SQL_BLOB
public static final int SQL_BLOB
- See Also:
- Constant Field Values
-
SQL_CLOB
public static final int SQL_CLOB
- See Also:
- Constant Field Values
-
SQL_ARRAY
public static final int SQL_ARRAY
- See Also:
- Constant Field Values
-
SQL_MULTISET
public static final int SQL_MULTISET
- See Also:
- Constant Field Values
-
SQL_BINARY
public static final int SQL_BINARY
- See Also:
- Constant Field Values
-
SQL_VARBINARY
public static final int SQL_VARBINARY
- See Also:
- Constant Field Values
-
SQL_DATE
public static final int SQL_DATE
- See Also:
- Constant Field Values
-
SQL_TIME
public static final int SQL_TIME
- See Also:
- Constant Field Values
-
SQL_TIMESTAMP
public static final int SQL_TIMESTAMP
- See Also:
- Constant Field Values
-
SQL_TIME_WITH_TIME_ZONE
public static final int SQL_TIME_WITH_TIME_ZONE
- See Also:
- Constant Field Values
-
SQL_TIMESTAMP_WITH_TIME_ZONE
public static final int SQL_TIMESTAMP_WITH_TIME_ZONE
- See Also:
- Constant Field Values
-
SQL_INTERVAL_YEAR
public static final int SQL_INTERVAL_YEAR
- See Also:
- Constant Field Values
-
SQL_INTERVAL_MONTH
public static final int SQL_INTERVAL_MONTH
- See Also:
- Constant Field Values
-
SQL_INTERVAL_DAY
public static final int SQL_INTERVAL_DAY
- See Also:
- Constant Field Values
-
SQL_INTERVAL_HOUR
public static final int SQL_INTERVAL_HOUR
- See Also:
- Constant Field Values
-
SQL_INTERVAL_MINUTE
public static final int SQL_INTERVAL_MINUTE
- See Also:
- Constant Field Values
-
SQL_INTERVAL_SECOND
public static final int SQL_INTERVAL_SECOND
- See Also:
- Constant Field Values
-
SQL_INTERVAL_YEAR_TO_MONTH
public static final int SQL_INTERVAL_YEAR_TO_MONTH
- See Also:
- Constant Field Values
-
SQL_INTERVAL_DAY_TO_HOUR
public static final int SQL_INTERVAL_DAY_TO_HOUR
- See Also:
- Constant Field Values
-
SQL_INTERVAL_DAY_TO_MINUTE
public static final int SQL_INTERVAL_DAY_TO_MINUTE
- See Also:
- Constant Field Values
-
SQL_INTERVAL_DAY_TO_SECOND
public static final int SQL_INTERVAL_DAY_TO_SECOND
- See Also:
- Constant Field Values
-
SQL_INTERVAL_HOUR_TO_MINUTE
public static final int SQL_INTERVAL_HOUR_TO_MINUTE
- See Also:
- Constant Field Values
-
SQL_INTERVAL_HOUR_TO_SECOND
public static final int SQL_INTERVAL_HOUR_TO_SECOND
- See Also:
- Constant Field Values
-
SQL_INTERVAL_MINUTE_TO_SECOND
public static final int SQL_INTERVAL_MINUTE_TO_SECOND
- See Also:
- Constant Field Values
-
SQL_TYPE_NUMBER_LIMIT
public static final int SQL_TYPE_NUMBER_LIMIT
- See Also:
- Constant Field Values
-
SQL_BIT
public static final int SQL_BIT
- See Also:
- Constant Field Values
-
SQL_BIT_VARYING
public static final int SQL_BIT_VARYING
- See Also:
- Constant Field Values
-
SQL_DATALINK
public static final int SQL_DATALINK
- See Also:
- Constant Field Values
-
SQL_UDT
public static final int SQL_UDT
- See Also:
- Constant Field Values
-
SQL_UDT_LOCATOR
public static final int SQL_UDT_LOCATOR
- See Also:
- Constant Field Values
-
SQL_BLOB_LOCATOR
public static final int SQL_BLOB_LOCATOR
- See Also:
- Constant Field Values
-
SQL_CLOB_LOCATOR
public static final int SQL_CLOB_LOCATOR
- See Also:
- Constant Field Values
-
SQL_ARRAY_LOCATOR
public static final int SQL_ARRAY_LOCATOR
- See Also:
- Constant Field Values
-
SQL_MULTISET_LOCATOR
public static final int SQL_MULTISET_LOCATOR
- See Also:
- Constant Field Values
-
SQL_ALL_TYPES
public static final int SQL_ALL_TYPES
- See Also:
- Constant Field Values
-
SQL_DATETIME
public static final int SQL_DATETIME
- See Also:
- Constant Field Values
-
SQL_INTERVAL
public static final int SQL_INTERVAL
- See Also:
- Constant Field Values
-
SQL_XML
public static final int SQL_XML
- See Also:
- Constant Field Values
-
SQL_NCHAR
public static final int SQL_NCHAR
- See Also:
- Constant Field Values
-
SQL_WCHAR
public static final int SQL_WCHAR
- See Also:
- Constant Field Values
-
SQL_WVARCHAR
public static final int SQL_WVARCHAR
- See Also:
- Constant Field Values
-
SQL_NVARCHAR
public static final int SQL_NVARCHAR
- See Also:
- Constant Field Values
-
SQL_WLONGVARCHAR
public static final int SQL_WLONGVARCHAR
- See Also:
- Constant Field Values
-
SQL_NTEXT
public static final int SQL_NTEXT
- See Also:
- Constant Field Values
-
SQL_LONGVARBINARY
public static final int SQL_LONGVARBINARY
- See Also:
- Constant Field Values
-
SQL_IMAGE
public static final int SQL_IMAGE
- See Also:
- Constant Field Values
-
SQL_GUID
public static final int SQL_GUID
- See Also:
- Constant Field Values
-
SQL_VARIANT
public static final int SQL_VARIANT
- See Also:
- Constant Field Values
-
SQL_SUB_DISTINCT
public static final int SQL_SUB_DISTINCT
- See Also:
- Constant Field Values
-
SQL_SUB_STRUCTURED
public static final int SQL_SUB_STRUCTURED
- See Also:
- Constant Field Values
-
VARCHAR_IGNORECASE
public static final int VARCHAR_IGNORECASE
- See Also:
- Constant Field Values
-
ARRAY
public static final int ARRAY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
BIGINT
public static final int BIGINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BIGINT.- See Also:
- Constant Field Values
-
BINARY
public static final int BINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BINARY.- See Also:
- Constant Field Values
-
BIT
public static final int BIT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
BIT.- See Also:
- Constant Field Values
-
BLOB
public static final int BLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.- Since:
- JDK 1.4
- See Also:
- Constant Field Values
-
CHAR
public static final int CHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
CHAR.- See Also:
- Constant Field Values
-
CLOB
public static final int CLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOB- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
DATALINK
public static final int DATALINK
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL typeDATALINK.- Since:
- JDK 1.4
- See Also:
- Constant Field Values
-
DATE
public static final int DATE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DATE.- See Also:
- Constant Field Values
-
DECIMAL
public static final int DECIMAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DECIMAL.- See Also:
- Constant Field Values
-
DISTINCT
public static final int DISTINCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
DOUBLE.- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
FLOAT.- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
INTEGER.- See Also:
- Constant Field Values
-
JAVA_OBJECT
public static final int JAVA_OBJECT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
LONGVARBINARY
public static final int LONGVARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
LONGVARBINARY.- See Also:
- Constant Field Values
-
LONGVARCHAR
public static final int LONGVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
LONGVARCHAR.- See Also:
- Constant Field Values
-
MULTISET
public static final int MULTISET
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
MULTISET.- See Also:
- Constant Field Values
-
NULL
public static final int NULL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
NULL.- See Also:
- Constant Field Values
-
NUMERIC
public static final int NUMERIC
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
NUMERIC.- See Also:
- Constant Field Values
-
OTHER
public static final int OTHER
The constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.- See Also:
- Constant Field Values
-
REAL
public static final int REAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
REAL.- See Also:
- Constant Field Values
-
REF
public static final int REF
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
SMALLINT
public static final int SMALLINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
SMALLINT.- See Also:
- Constant Field Values
-
STRUCT
public static final int STRUCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.- Since:
- JDK 1.2
- See Also:
- Constant Field Values
-
TIME
public static final int TIME
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TIME.- See Also:
- Constant Field Values
-
TIMESTAMP
public static final int TIMESTAMP
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TIMESTAMP.- See Also:
- Constant Field Values
-
TINYINT
public static final int TINYINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
TINYINT.- See Also:
- Constant Field Values
-
VARBINARY
public static final int VARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
VARBINARY.- See Also:
- Constant Field Values
-
VARCHAR
public static final int VARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type
VARCHAR.- See Also:
- Constant Field Values
-
ROWID
public static final int ROWID
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWID- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
NCHAR
public static final int NCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHAR- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
NVARCHAR
public static final int NVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
LONGNVARCHAR
public static final int LONGNVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
NCLOB
public static final int NCLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
SQLXML
public static final int SQLXML
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.- Since:
- JDK 1.6, HSQLDB 1.8.x
- See Also:
- Constant Field Values
-
TYPE_SUB_DEFAULT
public static final int TYPE_SUB_DEFAULT
The default HSQLODB type sub-identifier. This indicates that an HSQLDB type with this sub-type, if supported, is the very closest thing HSQLDB offerers to the JDBC/SQL2003 type- See Also:
- Constant Field Values
-
ALL_TYPES
public static final int[][] ALL_TYPES
Every (type,type-sub) combination known in the HSQLDB context. Not every combination need be supported as a table or procedure column type -- such determinations are handled in DITypeInfo.
-
MAX_CHAR_OR_VARCHAR_DISPLAY_SIZE
public static final int MAX_CHAR_OR_VARCHAR_DISPLAY_SIZE
A reasonable/customizable number to avoid the shortcomings/defects associated with doing a dynamic scan of results to determine the value. In practice, it turns out that single query yielding widely varying values for display size of CHAR and VARCHAR columns on repeated execution results in patently poor usability, as some fairly high-profile, otherwise "enterprise-quality" RAD tools depend on on the first value returned to lay out forms and limit the size of single line edit controls, set corresponding local datastore storage sizes, etc. In practice, It also turns out that many tools (due to the original lack of PreparedStatement.getMetaData() in JDK 1.1) emulate a SQL_DESCRIBE by executing a query hopefully guaranteed to return no or very few rows for example: select ... from ... where 1=0. Using the dynamic scan of 1.7.2 RC5 and previous, therefore, the minimum display size value (1) was often being generated during a tool's describe phase. Upon subsequent "real" retrievals, some tools complain that CHAR and VARCHAR result values exceeded the originally reported display size and refused to fetch further values.
-
-
Method Detail
-
getParameterSQLType
public static Type getParameterSQLType(java.lang.Class c)
Retieves the type object corresponding to the class of an IN, IN OUT or OUT parameter or a return type.- Parameters:
c- a Class instance- Returns:
- java.sql.Types int value
- Throws:
HsqlException
-
acceptsZeroPrecision
public static boolean acceptsZeroPrecision(int type)
-
requiresPrecision
public static boolean requiresPrecision(int type)
-
acceptsPrecision
public static boolean acceptsPrecision(int type)
Types that accept precision params in column definition or casts.
-
acceptsScaleCreateParam
public static boolean acceptsScaleCreateParam(int type)
-
isSearchable
public static boolean isSearchable(int type)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG