| Modifier and Type | Field and Description |
|---|---|
| public final boolean | |
| public static final NumberType | |
| public final boolean |
| Access | Constructor and Description |
|---|---|
| private | IntervalType(int typeGroup, int type, long precision, int scale, int startIntervalType, int endIntervalType, boolean defaultPrecision)
|
| 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 int | |
| public int | |
| public Object | |
| pack-priv Object | |
| public Object | convertJavaToSQL(SessionInterface session, Object a)
Overrides org.
|
| public Object | convertSQLToJava(SessionInterface session, Object a)
Overrides org.
|
| public Object | convertToDefaultType(SessionInterface session, Object a)
Implements abstract org. Converts the object to the given type without limit checks. |
| public static double | |
| public double | |
| public void | |
| public 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 | convertToTypeLimits(SessionInterface session, Object a)
Implements abstract org.
|
| public int | |
| public Object | |
| public Type | getAggregateType(Type other)
Implements abstract org. Common type used in comparison operations. |
| public CharacterType | |
| public static Type | |
| public static int | |
| public Type | getCombinedType(Session session, Type other, int operation)
Implements abstract org. Result type of combining values of two types in different operations. |
| public String | getDefinition()
Implements abstract org. Returns the full definition of the type, including parameters |
| public static int | |
| public static IntervalType | |
| public static IntervalType | |
| public static IntervalType | |
| public static IntervalType | getIntervalType(int type, int startType, int endType, long precision, int fractionPrecision, boolean defaultPrecision)
|
| public static int | |
| pack-priv long | |
| 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 String | getNameString()
Implements abstract org. Returns the name of the type |
| public int | getPart(Session session, Object interval, int part)
Implements abstract org.
|
| public static String | |
| public BigDecimal | getSecondPart(Session session, Object interval)
Implements abstract org.
|
| public long | |
| public int | getSQLGenericTypeCode()
Overrides org. Returns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type. |
| public static int | |
| public Object | |
| pack-priv String | |
| pack-priv String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Object | |
| private Object | |
| public Object | |
| public static IntervalType | |
| public int | |
| public Object | |
| private IntervalSecondData |
| defaultPrecision | back to summary |
|---|---|
| public final boolean defaultPrecision | |
| factorType | back to summary |
|---|---|
| public static final NumberType factorType | |
| isYearMonth | back to summary |
|---|---|
| public final boolean isYearMonth | |
| IntervalType | back to summary |
|---|---|
| private IntervalType(int typeGroup, int type, long precision, int scale, int startIntervalType, int endIntervalType, boolean defaultPrecision) | |
| 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 | |
| acceptsFractionalPrecision | back to summary |
|---|---|
| public boolean acceptsFractionalPrecision() | |
| acceptsPrecision | back to summary |
|---|---|
| public boolean acceptsPrecision() 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 | |
| compare | back to summary |
|---|---|
| public int compare(Session session, Object a, Object b) Implements abstract org. | |
| compareToTypeRange | back to summary |
|---|---|
| public int compareToTypeRange(Object o) Overrides org. | |
| convertFromDouble | back to summary |
|---|---|
| public Object convertFromDouble(double value) | |
| convertJavaTimeObject | back to summary |
|---|---|
| pack-priv Object convertJavaTimeObject(SessionInterface session, Object a) | |
| convertJavaToSQL | back to summary |
|---|---|
| public Object convertJavaToSQL(SessionInterface session, Object a) Overrides org. | |
| convertSQLToJava | back to summary |
|---|---|
| public Object convertSQLToJava(SessionInterface session, Object a) Overrides org. | |
| convertToDefaultType | back to summary |
|---|---|
| public Object convertToDefaultType(SessionInterface session, Object a) Implements abstract org. Doc from org. Converts the object to the given type without limit checks. Used for JDBC writes. | |
| convertToDouble | back to summary |
|---|---|
| public static double convertToDouble(Object interval) | |
| convertToDoubleStartUnits | back to summary |
|---|---|
| public double convertToDoubleStartUnits(Object interval) | |
| convertToJSON | back to summary |
|---|---|
| public void convertToJSON(Object a, StringBuilder sb) Overrides org. | |
| convertToLongEndUnits | back to summary |
|---|---|
| public long convertToLongEndUnits(Object interval) | |
| 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. | |
| 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. | |
| 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. | |
| getCharacterType | back to summary |
|---|---|
| public CharacterType getCharacterType() | |
| getCombinedIntervalType | back to summary |
|---|---|
| public static Type getCombinedIntervalType(IntervalType type1, IntervalType type2) | |
| getCombinedIntervalType | back to summary |
|---|---|
| public static int getCombinedIntervalType(int startType, int endType) | |
| getCombinedType | back to summary |
|---|---|
| public Type getCombinedType(Session session, Type other, int operation) Implements abstract org. Doc from org. Result type of combining values of two types in different operations. The other type is not always comparable with this, but an operation should be valid without any explicit CAST | |
| getDefinition | back to summary |
|---|---|
| public String getDefinition() Implements abstract org. Doc from org. Returns the full definition of the type, including parameters | |
| getEndIntervalType | back to summary |
|---|---|
| public static int getEndIntervalType(int type) | |
| getIntervalType | back to summary |
|---|---|
| public static IntervalType getIntervalType(IntervalType type, long precision, int fractionalPrecision) | |
| getIntervalType | back to summary |
|---|---|
| public static IntervalType getIntervalType(int type, long precision, int fractionPrecision) | |
| getIntervalType | back to summary |
|---|---|
| public static IntervalType getIntervalType(int startIndex, int endIndex, long precision, int fractionPrecision) | |
| getIntervalType | back to summary |
|---|---|
| public static IntervalType getIntervalType(int type, int startType, int endType, long precision, int fractionPrecision, boolean defaultPrecision) | |
| getIntervalType | back to summary |
|---|---|
| public static int getIntervalType(String part) | |
| getIntervalValueLimit | back to summary |
|---|---|
| pack-priv long getIntervalValueLimit() | |
| 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. | |
| getNameString | back to summary |
|---|---|
| public String getNameString() Implements abstract org. Doc from org. Returns the name of the type | |
| getPart | back to summary |
|---|---|
| public int getPart(Session session, Object interval, int part) Implements abstract org. | |
| getQualifier | back to summary |
|---|---|
| public static String getQualifier(int type) | |
| getSecondPart | back to summary |
|---|---|
| public BigDecimal getSecondPart(Session session, Object interval) Implements abstract org. | |
| getSeconds | back to summary |
|---|---|
| public long getSeconds(Object interval) | |
| getSQLGenericTypeCode | back to summary |
|---|---|
| public int getSQLGenericTypeCode() Overrides org. Doc from org. Returns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type. The generic type is returned for DATETIME and INTERVAL types. | |
| getStartIntervalType | back to summary |
|---|---|
| public static int getStartIntervalType(int type) | |
| getValue | back to summary |
|---|---|
| public Object getValue(long units, int nanos) | |
| intervalMonthToString | back to summary |
|---|---|
| pack-priv String intervalMonthToString(Object a) | |
| intervalSecondToString | back to summary |
|---|---|
| pack-priv String intervalSecondToString(Object a) | |
| isIntervalDaySecondType | back to summary |
|---|---|
| public boolean isIntervalDaySecondType() | |
| isIntervalType | back to summary |
|---|---|
| public boolean isIntervalType() Overrides org. | |
| isIntervalYearMonthType | back to summary |
|---|---|
| public boolean isIntervalYearMonthType() | |
| isNegative | back to summary |
|---|---|
| public boolean isNegative(Object a) Overrides org. | |
| multiply | back to summary |
|---|---|
| public Object multiply(Object a, Object b) Overrides org. | |
| multiplyOrDivide | back to summary |
|---|---|
| private Object multiplyOrDivide(Object a, Object b, boolean divide) | |
| negate | back to summary |
|---|---|
| public Object negate(Object a) Overrides org. | |
| newIntervalType | back to summary |
|---|---|
| public static IntervalType newIntervalType(int type, long precision, int fractionPrecision) | |
| precedenceDegree | back to summary |
|---|---|
| public int precedenceDegree(Type other) Overrides org. | |
| subtract | back to summary |
|---|---|
| public Object subtract(Session session, Object a, Object b, Type otherType) Overrides org. | |
| subtract | back to summary |
|---|---|
| private IntervalSecondData subtract(Session session, long aSeconds, long bSeconds, long nanos) | |