- All Superinterfaces:
- DataValueDescriptor, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, Orderable, java.io.Serializable, org.apache.derby.iapi.services.io.Storable, org.apache.derby.iapi.services.io.TypedFormat
- All Known Implementing Classes:
- SQLDate, SQLTime, SQLTimestamp
- public interface DateTimeDataValue
- extends DataValueDescriptor
| Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
checkHostVariable, coalesce, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getClone, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTypeName, greaterOrEquals, greaterThan, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, typePrecedence, typeToBigDecimal |
YEAR_FIELD
public static final int YEAR_FIELD
- See Also:
- Constant Field Values
MONTH_FIELD
public static final int MONTH_FIELD
- See Also:
- Constant Field Values
DAY_FIELD
public static final int DAY_FIELD
- See Also:
- Constant Field Values
HOUR_FIELD
public static final int HOUR_FIELD
- See Also:
- Constant Field Values
MINUTE_FIELD
public static final int MINUTE_FIELD
- See Also:
- Constant Field Values
SECOND_FIELD
public static final int SECOND_FIELD
- See Also:
- Constant Field Values
FRAC_SECOND_INTERVAL
public static final int FRAC_SECOND_INTERVAL
- See Also:
- Constant Field Values
SECOND_INTERVAL
public static final int SECOND_INTERVAL
- See Also:
- Constant Field Values
MINUTE_INTERVAL
public static final int MINUTE_INTERVAL
- See Also:
- Constant Field Values
HOUR_INTERVAL
public static final int HOUR_INTERVAL
- See Also:
- Constant Field Values
DAY_INTERVAL
public static final int DAY_INTERVAL
- See Also:
- Constant Field Values
WEEK_INTERVAL
public static final int WEEK_INTERVAL
- See Also:
- Constant Field Values
MONTH_INTERVAL
public static final int MONTH_INTERVAL
- See Also:
- Constant Field Values
QUARTER_INTERVAL
public static final int QUARTER_INTERVAL
- See Also:
- Constant Field Values
YEAR_INTERVAL
public static final int YEAR_INTERVAL
- See Also:
- Constant Field Values
getYear
public NumberDataValue getYear(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the year number out of a date.
getMonth
public NumberDataValue getMonth(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the month number out of a date.
getDate
public NumberDataValue getDate(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the day of the month.
getHours
public NumberDataValue getHours(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the hour of the day out of a time or timestamp.
getMinutes
public NumberDataValue getMinutes(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the minute of the hour out of a time or timestamp.
getSeconds
public NumberDataValue getSeconds(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- Get the second of the minute out of a time or timestamp.
timestampAdd
public DateTimeDataValue timestampAdd(int intervalType,
NumberDataValue intervalCount,
java.sql.Date currentDate,
DateTimeDataValue resultHolder)
throws org.apache.derby.iapi.error.StandardException
- Add a number of intervals to a datetime value. Implements the JDBC escape TIMESTAMPADD function.
timestampDiff
public NumberDataValue timestampDiff(int intervalType,
DateTimeDataValue time1,
java.sql.Date currentDate,
NumberDataValue resultHolder)
throws org.apache.derby.iapi.error.StandardException
- Finds the difference between two datetime values as a number of intervals. Implements the JDBC
TIMESTAMPDIFF escape function.