![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.types.TypeInterval:

Definition at line 60 of file TypeInterval.java.
Public Member Functions | |
| TypeInterval () | |
| TypeInterval (int start, int startPrecision, int end, int secPrecision) throws antlr.RecognitionException | |
| TypeInterval (int start, int startPrecision, int secPrecision) | |
| String | fieldName (int type) |
| String | getTypeName () |
| int | getJDBCType () |
| String | getJDBCClassName () |
| int | getPrecision () |
| int | getScale () |
| int | getMaxPrecision () |
| int | getMinScale () |
| int | getMaxScale () |
| boolean | isCharType () |
| boolean | isCaseSensitive () |
| boolean | isCurrency () |
| boolean | isSigned () |
| String | toString () |
| int | getDisplayWidth () |
| void | readExternal (ObjectInput in) throws IOException |
| void | writeExternal (ObjectOutput out) throws IOException |
| Value | convert (Value v) throws ValueException |
| String | getCreateParams () |
Static Public Member Functions | |
| int | convertCalendarField (int field) throws ValueException |
Static Public Attributes | |
| final TypeInterval | typeInterval = new TypeInterval() |
| final int | YEAR = 0 |
| final int | MONTH = 1 |
| final int | DAY = 2 |
| final int | HOUR = 3 |
| final int | MINUTE = 4 |
| final int | SECOND = 5 |
| final int | NANO = 6 |
Package Functions | |
| int | getStart () |
| int | getEnd () |
| int | getSecPrecision () |
| final long | getMult () |
| Return the number by which the interval value must be multiplied to convert it to a value in nanoseconds. | |
| long | units (int type, boolean ym) |
| Return the number by which elements of field 'type' must be multiplied in order to convert them to the unit type used in this interval. | |
Static Package Functions | |
| final long | getNanos (int type) |
| final long | getMon (int type) |
Package Attributes | |
| int | start = -1 |
| int | end = -1 |
| int | startPrecision = 2 |
| int | secPrecision = 6 |
Static Package Attributes | |
| final String[] | fieldNames |
| final long[] | fieldNanos |
| final long[] | fieldMon |
| final long[] | pow10 |
|
|
Definition at line 119 of file TypeInterval.java. |
|
||||||||||||||||||||
|
||||||||||||||||
|
Definition at line 136 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 257 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.convert(). Referenced by com.quadcap.sql.types.TypeInterval.convert(). |
|
|
|
Definition at line 149 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.fieldName(), and com.quadcap.sql.types.TypeInterval.fieldNames. Referenced by com.quadcap.sql.types.TypeInterval.fieldName(). |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 261 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 241 of file TypeInterval.java. |
|
|
Definition at line 145 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.end. Referenced by com.quadcap.sql.types.ValueInterval.getTimeComponent(), and com.quadcap.sql.types.ValueInterval.toString(). |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 188 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 186 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 194 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 198 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 196 of file TypeInterval.java. |
|
|
Definition at line 152 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.fieldMon, and com.quadcap.sql.types.TypeInterval.getMon(). Referenced by com.quadcap.sql.types.TypeInterval.getMon(). |
|
|
Return the number by which the interval value must be multiplied to convert it to a value in nanoseconds.
Definition at line 158 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.end, com.quadcap.sql.types.TypeInterval.NANO, com.quadcap.sql.types.TypeInterval.pow10, and com.quadcap.sql.types.TypeInterval.secPrecision. Referenced by com.quadcap.sql.types.ValueInterval.convert(), com.quadcap.sql.types.ValueInterval.getCalendar(), and com.quadcap.sql.types.TypeInterval.units(). |
|
|
Definition at line 151 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.fieldNanos, and com.quadcap.sql.types.TypeInterval.getNanos(). Referenced by com.quadcap.sql.types.TypeInterval.getNanos(). |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 190 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 192 of file TypeInterval.java. |
|
|
Definition at line 147 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.secPrecision. Referenced by com.quadcap.sql.types.ValueInterval.ValueInterval(). |
|
|
|
Implements com.quadcap.sql.types.Type. Definition at line 182 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.toString(). |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 202 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 200 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 204 of file TypeInterval.java. |
|
|
Implements com.quadcap.sql.types.Type. Definition at line 206 of file TypeInterval.java. |
|
|
|
||||||||||||
|
Return the number by which elements of field 'type' must be multiplied in order to convert them to the unit type used in this interval. units(type) * getMult() => nanoseconds per unit Definition at line 172 of file TypeInterval.java. References com.quadcap.sql.types.TypeInterval.end, com.quadcap.sql.types.TypeInterval.getMult(), com.quadcap.sql.types.TypeInterval.NANO, and com.quadcap.sql.types.TypeInterval.units(). Referenced by com.quadcap.sql.types.ValueInterval.convert(), com.quadcap.sql.types.ValueInterval.getTimeComponent(), com.quadcap.sql.types.ValueInterval.toString(), com.quadcap.sql.types.TypeInterval.units(), and com.quadcap.sql.types.ValueInterval.ValueInterval(). |
|
|
|
Definition at line 65 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(). |
|
|
|
Initial value:
Definition at line 85 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.getMon(). |
|
|
Initial value:
Definition at line 71 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.fieldName(), and com.quadcap.sql.types.TypeInterval.toString(). |
|
|
Initial value:
Definition at line 75 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.getNanos(). |
|
|
Definition at line 66 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(). |
|
|
Definition at line 67 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(). |
|
|
Definition at line 64 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(), and com.quadcap.sql.types.TypeInterval.TypeInterval(). |
|
|
Definition at line 69 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.getMult(), com.quadcap.sql.types.TypeInterval.toString(), and com.quadcap.sql.types.TypeInterval.units(). |
|
|
Initial value:
Definition at line 89 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.getMult(). |
|
|
Definition at line 68 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(), and com.quadcap.sql.types.TypeInterval.toString(). |
|
|
|
|
Definition at line 98 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.readExternal(), com.quadcap.sql.types.TypeInterval.toString(), com.quadcap.sql.types.TypeInterval.TypeInterval(), and com.quadcap.sql.types.TypeInterval.writeExternal(). |
|
|
Definition at line 61 of file TypeInterval.java. |
|
|
Definition at line 63 of file TypeInterval.java. Referenced by com.quadcap.sql.types.TypeInterval.convertCalendarField(). |