public class DateDerefSQLExpression<H extends DataObject,R extends DataObject> extends DerefSQLExpression<H,R,java.util.Date> implements DateSQLExpression
a, remote_expression, required_filter
Constructor and Description |
---|
DateDerefSQLExpression(IndexedSQLValue<H,R> a,
DateSQLExpression expr,
SQLFilter fil) |
DateDerefSQLExpression(IndexedSQLValue a,
DateSQLExpression expr) |
Modifier and Type | Method and Description |
---|---|
static <H extends DataObject,R extends DataObject> |
convertToDate(SQLContext sql,
DerefSQLExpression<H,R,? extends java.lang.Number> expr,
long res)
helper method to allow a
SQLContext to convert DerefSQLExpression s |
SQLExpression<? extends java.lang.Number> |
getMillis()
get an
SQLExpression for the millisecond value of the date |
SQLExpression<? extends java.lang.Number> |
getSeconds()
get an
SQLExpression for the second value of the date |
boolean |
preferSeconds()
Would this expression preferentially use seconds
|
add, convertToMillis, convertToSeconds, equals, getParameters, getRequiredFilter, getTarget, hashCode, makeObject
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equals, groupingIsomorphic, hashCode
addGroup, checkContentsCanGroup, getGroupParameters
add, getParameters, getRequiredFilter, makeObject
public DateDerefSQLExpression(IndexedSQLValue a, DateSQLExpression expr) throws java.lang.Exception
a
- expr
- java.lang.Exception
public DateDerefSQLExpression(IndexedSQLValue<H,R> a, DateSQLExpression expr, SQLFilter fil)
public static <H extends DataObject,R extends DataObject> DateDerefSQLExpression<H,R> convertToDate(SQLContext sql, DerefSQLExpression<H,R,? extends java.lang.Number> expr, long res)
SQLContext
to convert DerefSQLExpression
ssql
- SQLContext
expr
- res
- long resolution in milliseconds of numeric expressionpublic SQLExpression<? extends java.lang.Number> getMillis()
DateSQLExpression
SQLExpression
for the millisecond value of the dategetMillis
in interface DateSQLExpression
SQLExpression
giving milliseconds since epochpublic SQLExpression<? extends java.lang.Number> getSeconds()
DateSQLExpression
SQLExpression
for the second value of the dategetSeconds
in interface DateSQLExpression
SQLExpression
giving seconds since epochpublic boolean preferSeconds()
DateSQLExpression
preferSeconds
in interface DateSQLExpression