H - home objectR - remote objectT - target type of expressionpublic class DerefSQLExpression<H extends DataObject,R extends DataObject,T> extends java.lang.Object implements SQLExpression<T>
| Modifier and Type | Field and Description |
|---|---|
protected IndexedSQLValue<H,R> |
a |
protected SQLExpression<T> |
remote_expression |
protected SQLFilter |
required_filter |
| Modifier | Constructor and Description |
|---|---|
|
DerefSQLExpression(IndexedSQLValue<H,R> a,
SQLExpression<T> expr) |
protected |
DerefSQLExpression(IndexedSQLValue<H,R> a,
SQLExpression<T> expr,
SQLFilter fil) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(java.lang.StringBuilder sb,
boolean qualify)
Add the expression to a StringBuilder
|
static <H extends DataObject,R extends DataObject> |
convertToMillis(SQLContext sql,
DerefSQLExpression<H,R,java.util.Date> expr)
helper method to allow a
SQLContext to convert DerefSQLExpressions |
static <H extends DataObject,R extends DataObject> |
convertToSeconds(SQLContext sql,
DerefSQLExpression<H,R,java.util.Date> expr)
helper method to allow a
SQLContext to convert DerefSQLExpressions |
boolean |
equals(java.lang.Object obj) |
java.util.List<PatternArgument> |
getParameters(java.util.List<PatternArgument> list)
Add parameters for this value to a list.
|
SQLFilter |
getRequiredFilter()
Get an SQLFilter required to be added to the filter set.
|
java.lang.Class<T> |
getTarget()
Get the type of the returned object as far as it is known.
|
int |
hashCode() |
T |
makeObject(java.sql.ResultSet rs,
int pos)
Extract a result of the expression from a ResultSet into an object of the specified type.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgroupingIsomorphicaddGroup, checkContentsCanGroup, getGroupParametersprotected final IndexedSQLValue<H extends DataObject,R extends DataObject> a
protected final SQLExpression<T> remote_expression
protected final SQLFilter required_filter
public DerefSQLExpression(IndexedSQLValue<H,R> a, SQLExpression<T> expr) throws java.lang.Exception
java.lang.Exceptionprotected DerefSQLExpression(IndexedSQLValue<H,R> a, SQLExpression<T> expr, SQLFilter fil)
public int add(java.lang.StringBuilder sb,
boolean qualify)
SQLValuepublic java.util.List<PatternArgument> getParameters(java.util.List<PatternArgument> list)
SQLValuegetParameters in interface SQLValue<T>list - to modifypublic T makeObject(java.sql.ResultSet rs, int pos) throws DataException, java.sql.SQLException
SQLValuemakeObject in interface SQLValue<T>rs - ResultSetDataExceptionjava.sql.SQLExceptionpublic SQLFilter getRequiredFilter()
SQLValuegetRequiredFilter in interface SQLValue<T>public java.lang.Class<T> getTarget()
Targettedpublic int hashCode()
hashCode in interface SQLExpression<T>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface SQLExpression<T>equals in class java.lang.Objectpublic static <H extends DataObject,R extends DataObject> DerefSQLExpression<H,R,? extends java.lang.Number> convertToMillis(SQLContext sql, DerefSQLExpression<H,R,java.util.Date> expr)
SQLContext to convert DerefSQLExpressionssql - SQLContextexpr - public static <H extends DataObject,R extends DataObject> DerefSQLExpression<H,R,? extends java.lang.Number> convertToSeconds(SQLContext sql, DerefSQLExpression<H,R,java.util.Date> expr)
SQLContext to convert DerefSQLExpressionssql - SQLContextexpr -