Top Description Fields Constructors Methods
org.hsqldb.types

public Class Types

extends Object
Class Inheritance
Imports
org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.HashSet, .IntValueHashMap, org.hsqldb.persist.HsqlDatabaseProperties

Defines the constants that are used to identify SQL types for HSQLDB JDBC interface 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-identifier has been added to differentiate HSQLDB-specific type specializations.
Author
Campbell Burnet (campbell-burnet@users dot sourceforge.net)
Since
1.7.2
Version
2.7.3

Field Summary

Modifier and TypeField and Description
public static final int[][]
ALL_TYPES

Every (type,type-sub) combination known in the HSQLDB context.

public static final int
ARRAY

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY.

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.

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.

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.

public static final int
BLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB.

public static final String
public static final int
BOOLEAN

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BOOLEAN.

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.

public static final int
CLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB

public static final String
public static final int
DATALINK

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATALINK.

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.

public static final String
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.

public static final String
DecimalClassName

Names of types returned by JDBC methods and accepted as library and user function arguments

public static final int
DISTINCT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.

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.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
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.

private static final HashSet<Class<T>>
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.

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 type JAVA_OBJECT.

pack-priv static final IntValueHashMap<String>
public static final int
LONGNVARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGNVARCHAR.

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.

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.

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.

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.

public static final int
NCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCHAR

public static final int
NCLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCLOB.

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.

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.

public static final int
NVARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NVARCHAR.

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 methods getObject and setObject.

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.

public static final int
REF

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF.

public static final int
REF_CURSOR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF_CURSOR.

public static final int
ROWID

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ROWID

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.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
SQLXML

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type XML.

public static final int
STRUCT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT.

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.

public static final int
TIME_WITH_TIMEZONE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME_WITH_TIMEZONE .

public static final String
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.

public static final int
TIMESTAMP_WITH_TIMEZONE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP_WITH_TIMEZONE .

public static final String
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.

public static final int
TYPE_SUB_DEFAULT

The default HSQLODB type sub-identifier.

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.

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.

public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
acceptsPrecision(int type)

Types that accept precision params in column definition or casts.

public static boolean
public static boolean
public static Type

Returns:

java.sql.Types int value
getParameterSQLType
(Class<T>
a Class instance
c
)

Retrieves the type object corresponding to the class of an IN, IN OUT or OUT parameter or a return type.

public static boolean
isSearchable(int type)

private static int
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALL_TYPESback to summary
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.

ARRAYback to summary
public static final int ARRAY

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY.

Since
JDK 1.2
BIGINTback to summary
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.

BINARYback to summary
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.

BITback to summary
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.

BLOBback to summary
public static final int BLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB.

Since
JDK 1.2
BlobClassNameback to summary
public static final String BlobClassName
BOOLEANback to summary
public static final int BOOLEAN

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BOOLEAN.

Since
JDK 1.4
CHARback to summary
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.

CLOBback to summary
public static final int CLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB

Since
JDK 1.2
ClobClassNameback to summary
public static final String ClobClassName
DATEback to summary
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.

DateClassNameback to summary
public static final String DateClassName
DECIMALback to summary
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.

DecimalClassNameback to summary
public static final String DecimalClassName

Names of types returned by JDBC methods and accepted as library and user function arguments

DISTINCTback to summary
public static final int DISTINCT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.

Since
JDK 1.2
DOUBLEback to summary
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.

DTI_DAY_NAMEback to summary
public static final int DTI_DAY_NAME
DTI_DAY_OF_MONTHback to summary
public static final int DTI_DAY_OF_MONTH
DTI_DAY_OF_WEEKback to summary
public static final int DTI_DAY_OF_WEEK
DTI_DAY_OF_YEARback to summary
public static final int DTI_DAY_OF_YEAR
DTI_ISO_WEEK_OF_YEARback to summary
public static final int DTI_ISO_WEEK_OF_YEAR
DTI_ISO_YEARback to summary
public static final int DTI_ISO_YEAR
DTI_MICROSECONDback to summary
public static final int DTI_MICROSECOND
DTI_MILLISECONDback to summary
public static final int DTI_MILLISECOND
DTI_MONTH_NAMEback to summary
public static final int DTI_MONTH_NAME
DTI_NANOSECONDback to summary
public static final int DTI_NANOSECOND
DTI_QUARTERback to summary
public static final int DTI_QUARTER
DTI_SECONDS_MIDNIGHTback to summary
public static final int DTI_SECONDS_MIDNIGHT
DTI_TIMEZONEback to summary
public static final int DTI_TIMEZONE
DTI_TIMEZONE_HOURback to summary
public static final int DTI_TIMEZONE_HOUR
DTI_TIMEZONE_MINUTEback to summary
public static final int DTI_TIMEZONE_MINUTE
DTI_WEEK_OF_YEARback to summary
public static final int DTI_WEEK_OF_YEAR
FLOATback to summary
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.

illegalParameterClassesback to summary
private static final HashSet<Class<T>> illegalParameterClasses
INTEGERback to summary
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.

JAVA_OBJECTback to summary
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 type JAVA_OBJECT.

Since
JDK 1.2
javaTypeNumbersback to summary
pack-priv static final IntValueHashMap<String> javaTypeNumbers
LONGNVARCHARback to summary
public static final int LONGNVARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGNVARCHAR.

Since
JDK 1.6, HSQLDB 1.8.x
LONGVARBINARYback to summary
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.

LONGVARCHARback to summary
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.

MAX_CHAR_OR_VARCHAR_DISPLAY_SIZEback to summary
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 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.

MULTISETback to summary
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.

NCHARback to summary
public static final int NCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCHAR

Since
JDK 1.6, HSQLDB 1.8.x
NCLOBback to summary
public static final int NCLOB

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCLOB.

Since
JDK 1.6, HSQLDB 1.8.x
NULLback to summary
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.

NUMERICback to summary
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.

NVARCHARback to summary
public static final int NVARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NVARCHAR.

Since
JDK 1.6, HSQLDB 1.8.x
OTHERback to summary
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 methods getObject and setObject.

REALback to summary
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.

REFback to summary
public static final int REF

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF.

Since
JDK 1.2
REF_CURSORback to summary
public static final int REF_CURSOR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF_CURSOR.

Since
JDK 1.8
ROWIDback to summary
public static final int ROWID

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ROWID

Since
JDK 1.6, HSQLDB 1.8.x
SMALLINTback to summary
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.

SQL_ALL_TYPESback to summary
public static final int SQL_ALL_TYPES
SQL_ARRAYback to summary
public static final int SQL_ARRAY
SQL_ARRAY_LOCATORback to summary
public static final int SQL_ARRAY_LOCATOR
SQL_BIGINTback to summary
public static final int SQL_BIGINT
SQL_BINARYback to summary
public static final int SQL_BINARY
SQL_BITback to summary
public static final int SQL_BIT
SQL_BIT_VARYINGback to summary
public static final int SQL_BIT_VARYING
SQL_BLOBback to summary
public static final int SQL_BLOB
SQL_BLOB_LOCATORback to summary
public static final int SQL_BLOB_LOCATOR
SQL_BOOLEANback to summary
public static final int SQL_BOOLEAN
SQL_CHARback to summary
public static final int SQL_CHAR
SQL_CLOBback to summary
public static final int SQL_CLOB
SQL_CLOB_LOCATORback to summary
public static final int SQL_CLOB_LOCATOR
SQL_DATEback to summary
public static final int SQL_DATE
SQL_DATETIMEback to summary
public static final int SQL_DATETIME
SQL_DECIMALback to summary
public static final int SQL_DECIMAL
SQL_DOUBLEback to summary
public static final int SQL_DOUBLE
SQL_FLOATback to summary
public static final int SQL_FLOAT
SQL_GUIDback to summary
public static final int SQL_GUID
SQL_IMAGEback to summary
public static final int SQL_IMAGE
SQL_INTEGERback to summary
public static final int SQL_INTEGER
SQL_INTERVALback to summary
public static final int SQL_INTERVAL
SQL_INTERVAL_DAYback to summary
public static final int SQL_INTERVAL_DAY
SQL_INTERVAL_DAY_TO_HOURback to summary
public static final int SQL_INTERVAL_DAY_TO_HOUR
SQL_INTERVAL_DAY_TO_MINUTEback to summary
public static final int SQL_INTERVAL_DAY_TO_MINUTE
SQL_INTERVAL_DAY_TO_SECONDback to summary
public static final int SQL_INTERVAL_DAY_TO_SECOND
SQL_INTERVAL_HOURback to summary
public static final int SQL_INTERVAL_HOUR
SQL_INTERVAL_HOUR_TO_MINUTEback to summary
public static final int SQL_INTERVAL_HOUR_TO_MINUTE
SQL_INTERVAL_HOUR_TO_SECONDback to summary
public static final int SQL_INTERVAL_HOUR_TO_SECOND
SQL_INTERVAL_MINUTEback to summary
public static final int SQL_INTERVAL_MINUTE
SQL_INTERVAL_MINUTE_TO_SECONDback to summary
public static final int SQL_INTERVAL_MINUTE_TO_SECOND
SQL_INTERVAL_MONTHback to summary
public static final int SQL_INTERVAL_MONTH
SQL_INTERVAL_SECONDback to summary
public static final int SQL_INTERVAL_SECOND
SQL_INTERVAL_YEARback to summary
public static final int SQL_INTERVAL_YEAR
SQL_INTERVAL_YEAR_TO_MONTHback to summary
public static final int SQL_INTERVAL_YEAR_TO_MONTH
SQL_LONGVARBINARYback to summary
public static final int SQL_LONGVARBINARY
SQL_MULTISETback to summary
public static final int SQL_MULTISET
SQL_MULTISET_LOCATORback to summary
public static final int SQL_MULTISET_LOCATOR
SQL_NCHARback to summary
public static final int SQL_NCHAR
SQL_NTEXTback to summary
public static final int SQL_NTEXT
SQL_NUMERICback to summary
public static final int SQL_NUMERIC
SQL_NVARCHARback to summary
public static final int SQL_NVARCHAR
SQL_REALback to summary
public static final int SQL_REAL
SQL_REFback to summary
public static final int SQL_REF
SQL_ROWback to summary
public static final int SQL_ROW
SQL_SMALLINTback to summary
public static final int SQL_SMALLINT
SQL_SUB_DISTINCTback to summary
public static final int SQL_SUB_DISTINCT
SQL_SUB_STRUCTUREDback to summary
public static final int SQL_SUB_STRUCTURED
SQL_TIMEback to summary
public static final int SQL_TIME
SQL_TIME_WITH_TIME_ZONEback to summary
public static final int SQL_TIME_WITH_TIME_ZONE
SQL_TIMESTAMPback to summary
public static final int SQL_TIMESTAMP
SQL_TIMESTAMP_WITH_TIME_ZONEback to summary
public static final int SQL_TIMESTAMP_WITH_TIME_ZONE
SQL_TYPE_NUMBER_LIMITback to summary
public static final int SQL_TYPE_NUMBER_LIMIT
SQL_UDTback to summary
public static final int SQL_UDT
SQL_UDT_LOCATORback to summary
public static final int SQL_UDT_LOCATOR
SQL_USER_DEFINED_TYPEback to summary
public static final int SQL_USER_DEFINED_TYPE
SQL_VARBINARYback to summary
public static final int SQL_VARBINARY
SQL_VARCHARback to summary
public static final int SQL_VARCHAR
SQL_VARIANTback to summary
public static final int SQL_VARIANT
SQL_WCHARback to summary
public static final int SQL_WCHAR
SQL_WLONGVARCHARback to summary
public static final int SQL_WLONGVARCHAR
SQL_WVARCHARback to summary
public static final int SQL_WVARCHAR
SQL_XMLback to summary
public static final int SQL_XML
SQLXMLback to summary
public static final int SQLXML

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type XML.

Since
JDK 1.6, HSQLDB 1.8.x
STRUCTback to summary
public static final int STRUCT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT.

Since
JDK 1.2
TIMEback to summary
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.

TIME_WITH_TIMEZONEback to summary
public static final int TIME_WITH_TIMEZONE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME_WITH_TIMEZONE .

Since
JDK 1.8
TimeClassNameback to summary
public static final String TimeClassName
TIMESTAMPback to summary
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.

TIMESTAMP_WITH_TIMEZONEback to summary
public static final int TIMESTAMP_WITH_TIMEZONE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP_WITH_TIMEZONE .

Since
JDK 1.8
TimestampClassNameback to summary
public static final String TimestampClassName
TINYINTback to summary
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.

TYPE_SUB_DEFAULTback to summary
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 offers to the JDBC/SQL2003 type

VARBINARYback to summary
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.

VARCHARback to summary
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.

VARCHAR_IGNORECASEback to summary
public static final int VARCHAR_IGNORECASE

Constructor Detail

Typesback to summary
public Types()

Method Detail

acceptsPrecisionback to summary
public static boolean acceptsPrecision(int type)

Types that accept precision params in column definition or casts.

acceptsScaleCreateParamback to summary
public static boolean acceptsScaleCreateParam(int type)
acceptsZeroPrecisionback to summary
public static boolean acceptsZeroPrecision(int type)
getParameterSQLTypeback to summary
public static Type getParameterSQLType(Class<T> c)

Retrieves the type object corresponding to the class of an IN, IN OUT or OUT parameter or a return type.

Parameters
c:Class<T>

a Class instance

Returns:Type

java.sql.Types int value

isSearchableback to summary
public static boolean isSearchable(int type)
MAX_CHAR_OR_VARCHAR_DISPLAY_SIZEback to summary
private static int MAX_CHAR_OR_VARCHAR_DISPLAY_SIZE()
requiresPrecisionback to summary
public static boolean requiresPrecision(int type)