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 DerefSQLExpressions |
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, makeObjectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, groupingIsomorphic, hashCodeaddGroup, checkContentsCanGroup, getGroupParametersadd, getParameters, getRequiredFilter, makeObjectpublic DateDerefSQLExpression(IndexedSQLValue a, DateSQLExpression expr) throws java.lang.Exception
a - expr - java.lang.Exceptionpublic 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 DerefSQLExpressionssql - SQLContextexpr - res - long resolution in milliseconds of numeric expressionpublic SQLExpression<? extends java.lang.Number> getMillis()
DateSQLExpressionSQLExpression for the millisecond value of the dategetMillis in interface DateSQLExpressionSQLExpression giving milliseconds since epochpublic SQLExpression<? extends java.lang.Number> getSeconds()
DateSQLExpressionSQLExpression for the second value of the dategetSeconds in interface DateSQLExpressionSQLExpression giving seconds since epochpublic boolean preferSeconds()
DateSQLExpressionpreferSeconds in interface DateSQLExpression