| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final BigDecimal | |
| public static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final BigDecimal | |
| public static final BigDecimal | |
| public static final BigDecimal | |
| public static final BigInteger | |
| public static final int | |
| pack-priv static final BigDecimal | |
| public static final BigDecimal | |
| public static final BigDecimal | |
| public static final BigInteger | |
| public static final int | |
| pack-priv static final int | |
| public static final Type | |
| public static final int | |
| pack-priv static final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | absolute(Object a)
Overrides org. All arithmetic ops are called on the pre-determined Type object of the result |
| public boolean | |
| public boolean | |
| public Object | |
| public boolean | |
| public int | canMoveFrom(Type otherType)
Overrides org. When canConvertFrom() is true, can convert without changing the object |
| public Object | |
| public int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public int | |
| public int | |
| public Object | convertJavaToSQL(SessionInterface session, Object a)
Overrides org.
|
| private static BigDecimal | |
| public Object | convertToDefaultType(SessionInterface session, Object a)
Implements abstract org. Relaxes SQL parameter type enforcement for DECIMAL, allowing long values. |
| private static Double | |
| pack-priv static Integer | convertToInt(SessionInterface session, Object a, int type)
Converter from a numeric object to Integer. |
| pack-priv static Long | |
| public String | |
| public String | |
| public Object | convertToType(SessionInterface session, Object a, Type otherType)
Implements abstract org. Same as castToType except for CHARACTER values. |
| public Object | convertToTypeJDBC(SessionInterface session, Object a, Type otherType)
Overrides org. Convert type for JDBC reads. |
| public Object | convertToTypeLimits(SessionInterface session, Object a)
Implements abstract org.
|
| public int | |
| public Object | |
| public Object | |
| public Type | getAggregateType(Type other)
Implements abstract org. Common type used in comparison operations. |
| public Type | getCombinedType(Session session, Type other, int operation)
Implements abstract org. Returns a SQL type "wide" enough to represent the result of the expression. |
| public int | |
| public String | getDefinition()
Implements abstract org. Returns the full definition of the type, including parameters |
| public String | |
| public Type | |
| public Class | |
| public String | getJDBCClassName()
Implements abstract org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. |
| public int | |
| public int | getJDBCTypeCode()
Implements abstract org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. |
| public long | |
| public int | |
| public String | getNameString()
Implements abstract org. Returns the name of the type |
| public int | |
| public static NumberType | |
| public static NumberType | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static boolean | |
| public Object | |
| public Object | |
| public Object | |
| public int | |
| public static int | |
| public Object | |
| public static long | |
| public Object | |
| public static double | |
| public Object |
| BD_1 | back to summary |
|---|---|
| pack-priv static final BigDecimal BD_1 | |
| BIGINT_WIDTH | back to summary |
|---|---|
| public static final int BIGINT_WIDTH | |
| bigintPrecision | back to summary |
|---|---|
| public static final int bigintPrecision | |
| bigintSquareNumericPrecision | back to summary |
|---|---|
| pack-priv static final int bigintSquareNumericPrecision | |
| BIT_WIDTH | back to summary |
|---|---|
| public static final int BIT_WIDTH | |
| DECIMAL_WIDTH | back to summary |
|---|---|
| public static final int DECIMAL_WIDTH | |
| decimalLiteralPrecision | back to summary |
|---|---|
| pack-priv static final int decimalLiteralPrecision | |
| defaultNumericPrecision | back to summary |
|---|---|
| public static final int defaultNumericPrecision | |
| defaultNumericScale | back to summary |
|---|---|
| public static final int defaultNumericScale | |
| DOUBLE_WIDTH | back to summary |
|---|---|
| public static final int DOUBLE_WIDTH | |
| doublePrecision | back to summary |
|---|---|
| pack-priv static final int doublePrecision | |
| INTEGER_WIDTH | back to summary |
|---|---|
| public static final int INTEGER_WIDTH | |
| integerPrecision | back to summary |
|---|---|
| pack-priv static final int integerPrecision | |
| MAX_DOUBLE | back to summary |
|---|---|
| public static final BigDecimal MAX_DOUBLE | |
| MAX_INT | back to summary |
|---|---|
| public static final BigDecimal MAX_INT | |
| MAX_LONG | back to summary |
|---|---|
| public static final BigDecimal MAX_LONG | |
| MAX_LONG_BI | back to summary |
|---|---|
| public static final BigInteger MAX_LONG_BI | |
| maxNumericPrecision | back to summary |
|---|---|
| public static final int maxNumericPrecision | |
| MBD_1 | back to summary |
|---|---|
| pack-priv static final BigDecimal MBD_1 | |
| MIN_INT | back to summary |
|---|---|
| public static final BigDecimal MIN_INT | |
| MIN_LONG | back to summary |
|---|---|
| public static final BigDecimal MIN_LONG | |
| MIN_LONG_BI | back to summary |
|---|---|
| public static final BigInteger MIN_LONG_BI | |
| SMALLINT_WIDTH | back to summary |
|---|---|
| public static final int SMALLINT_WIDTH | |
| smallintPrecision | back to summary |
|---|---|
| pack-priv static final int smallintPrecision | |
| SQL_NUMERIC_DEFAULT_INT | back to summary |
|---|---|
| public static final Type SQL_NUMERIC_DEFAULT_INT | |
| TINYINT_WIDTH | back to summary |
|---|---|
| public static final int TINYINT_WIDTH | |
| tinyintPrecision | back to summary |
|---|---|
| pack-priv static final int tinyintPrecision | |
| typeWidth | back to summary |
|---|---|
| pack-priv final int typeWidth | |
| NumberType | back to summary |
|---|---|
| public NumberType(int type, long precision, int scale) | |
| absolute | back to summary |
|---|---|
| public Object absolute(Object a) Overrides org. Doc from org. All arithmetic ops are called on the pre-determined Type object of the result | |
| acceptsPrecision | back to summary |
|---|---|
| public boolean acceptsPrecision() Overrides org. | |
| acceptsScale | back to summary |
|---|---|
| public boolean acceptsScale() Overrides org. | |
| add | back to summary |
|---|---|
| public Object add(Session session, Object a, Object b, Type otherType) Overrides org. | |
| canConvertFrom | back to summary |
|---|---|
| public boolean canConvertFrom(Type otherType) Implements abstract org. | |
| canMoveFrom | back to summary |
|---|---|
| public int canMoveFrom(Type otherType) Overrides org. Doc from org. When canConvertFrom() is true, can convert without changing the object | |
| ceiling | back to summary |
|---|---|
| public Object ceiling(Object a) | |
| compare | back to summary |
|---|---|
| public int compare(Session session, Object a, Object b) Implements abstract org. | |
| compareBigDecimalToLongLimits | back to summary |
|---|---|
| public static int compareBigDecimalToLongLimits(Object value) | |
| compareDouble | back to summary |
|---|---|
| public static int compareDouble(double value1, double value2) | |
| compareToLongLimits | back to summary |
|---|---|
| public static int compareToLongLimits(BigDecimal value) | |
| compareToLongLimits | back to summary |
|---|---|
| public static int compareToLongLimits(BigInteger value) | |
| compareToTypeRange | back to summary |
|---|---|
| public int compareToTypeRange(Object o) Overrides org. | |
| compareToZero | back to summary |
|---|---|
| public int compareToZero(Object a) | |
| convertJavaToSQL | back to summary |
|---|---|
| public Object convertJavaToSQL(SessionInterface session, Object a) Overrides org. | |
| convertToDecimal | back to summary |
|---|---|
| private static BigDecimal convertToDecimal(Object a) | |
| convertToDefaultType | back to summary |
|---|---|
| public Object convertToDefaultType(SessionInterface session, Object a) Implements abstract org. Relaxes SQL parameter type enforcement for DECIMAL, allowing long values. | |
| convertToDouble | back to summary |
|---|---|
| private static Double convertToDouble(Object a) Converter from a numeric object to Double. Input is checked to be within range represented by Double | |
| convertToInt | back to summary |
|---|---|
| pack-priv static Integer convertToInt(SessionInterface session, Object a, int type) Converter from a numeric object to Integer. Input is checked to be within range represented by the given number type. | |
| convertToLong | back to summary |
|---|---|
| pack-priv static Long convertToLong(SessionInterface session, Object a) Converter from a numeric object to Long. Input is checked to be within range represented by Long. | |
| convertToSQLString | back to summary |
|---|---|
| public String convertToSQLString(Object a) Implements abstract org. | |
| convertToString | back to summary |
|---|---|
| public String convertToString(Object a) Implements abstract org. | |
| convertToType | back to summary |
|---|---|
| public Object convertToType(SessionInterface session, Object a, Type otherType) Implements abstract org. Doc from org. Same as castToType except for CHARACTER values. Perform string truncation of trailing spaces only. For other long strings, it raises an exception. | |
| convertToTypeJDBC | back to summary |
|---|---|
| public Object convertToTypeJDBC(SessionInterface session, Object a, Type otherType) Overrides org. Doc from org. Convert type for JDBC reads. Same as convertToType, but supports non-standard SQL conversions supported by JDBC | |
| convertToTypeLimits | back to summary |
|---|---|
| public Object convertToTypeLimits(SessionInterface session, Object a) Implements abstract org. | |
| displaySize | back to summary |
|---|---|
| public int displaySize() Implements abstract org. | |
| divide | back to summary |
|---|---|
| public Object divide(Session session, Object a, Object b) Overrides org. | |
| floor | back to summary |
|---|---|
| public Object floor(Object a) | |
| getAggregateType | back to summary |
|---|---|
| public Type getAggregateType(Type other) Implements abstract org. Doc from org. Common type used in comparison operations. other must be comparable with this. | |
| getCombinedType | back to summary |
|---|---|
| public Type getCombinedType(Session session, Type other, int operation) Implements abstract org. Returns a SQL type "wide" enough to represent the result of the
expression. FLOAT/REAL/DOUBLE used in an operation results in the same type, regardless of the type of the other operand. When the result or the expression is converted to the type of the target column for storage, an exception is thrown if the resulting value cannot be stored in the column Types narrower than INTEGER (int) are promoted to INTEGER. The order of promotion is as follows INTEGER, BIGINT, NUMERIC/DECIMAL
TINYINT and SMALLINT in any combination return INTEGER | |
| getDecimalPrecision | back to summary |
|---|---|
| public int getDecimalPrecision() Returns decimal precision. | |
| getDefinition | back to summary |
|---|---|
| public String getDefinition() Implements abstract org. Doc from org. Returns the full definition of the type, including parameters | |
| getFullNameString | back to summary |
|---|---|
| public String getFullNameString() Overrides org. Doc from org. Returns the name of the type | |
| getIntegralType | back to summary |
|---|---|
| public Type getIntegralType() | |
| getJDBCClass | back to summary |
|---|---|
| public Class Implements abstract org. | |
| getJDBCClassName | back to summary |
|---|---|
| public String getJDBCClassName() Implements abstract org. Doc from org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. | |
| getJDBCPrecision | back to summary |
|---|---|
| public int getJDBCPrecision() Overrides org. | |
| getJDBCTypeCode | back to summary |
|---|---|
| public int getJDBCTypeCode() Implements abstract org. Doc from org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. | |
| getMaxPrecision | back to summary |
|---|---|
| public long getMaxPrecision() Overrides org. | |
| getMaxScale | back to summary |
|---|---|
| public int getMaxScale() Overrides org. | |
| getNameString | back to summary |
|---|---|
| public String getNameString() Implements abstract org. Doc from org. Returns the name of the type | |
| getNominalWidth | back to summary |
|---|---|
| public int getNominalWidth() | |
| getNumberType | back to summary |
|---|---|
| public static NumberType getNumberType(int type, long precision, int scale) | |
| getNumberTypeForLiteral | back to summary |
|---|---|
| public static NumberType getNumberTypeForLiteral(BigDecimal value) | |
| getNumericPrecisionInRadix | back to summary |
|---|---|
| public int getNumericPrecisionInRadix() | |
| getPrecision | back to summary |
|---|---|
| public int getPrecision() Returns decimal precision for NUMERIC/DECIMAL. Returns binary precision for other parts. | |
| getPrecisionRadix | back to summary |
|---|---|
| public int getPrecisionRadix() Overrides org. | |
| isDecimalType | back to summary |
|---|---|
| public boolean isDecimalType() Overrides org. | |
| isExactNumberType | back to summary |
|---|---|
| public boolean isExactNumberType() Overrides org. | |
| isIntegralType | back to summary |
|---|---|
| public boolean isIntegralType() Overrides org. | |
| isNegative | back to summary |
|---|---|
| public boolean isNegative(Object a) Overrides org. | |
| isNumberType | back to summary |
|---|---|
| public boolean isNumberType() Overrides org. | |
| isZero | back to summary |
|---|---|
| public static boolean isZero(Object a) | |
| modulo | back to summary |
|---|---|
| public Object modulo(Session session, Object a, Object b, Type otherType) | |
| multiply | back to summary |
|---|---|
| public Object multiply(Object a, Object b) Overrides org. | |
| negate | back to summary |
|---|---|
| public Object negate(Object a) Overrides org. | |
| precedenceDegree | back to summary |
|---|---|
| public int precedenceDegree(Type other) Overrides org. | |
| precision | back to summary |
|---|---|
| public static int precision(BigDecimal o) | |
| round | back to summary |
|---|---|
| public Object round(Object a, int s) | |
| scaledDecimal | back to summary |
|---|---|
| public static long scaledDecimal(Object a, int scale) | |
| subtract | back to summary |
|---|---|
| public Object subtract(Session session, Object a, Object b, Type otherType) Overrides org. | |
| toDouble | back to summary |
|---|---|
| public static double toDouble(Object a) | |
| truncate | back to summary |
|---|---|
| public Object truncate(Object a, int s) | |