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 DerefSQLExpression s |
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 DerefSQLExpression s |
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, wait
groupingIsomorphic
addGroup, checkContentsCanGroup, getGroupParameters
protected 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.Exception
protected DerefSQLExpression(IndexedSQLValue<H,R> a, SQLExpression<T> expr, SQLFilter fil)
public int add(java.lang.StringBuilder sb, boolean qualify)
SQLValue
public java.util.List<PatternArgument> getParameters(java.util.List<PatternArgument> list)
SQLValue
getParameters
in interface SQLValue<T>
list
- to modifypublic T makeObject(java.sql.ResultSet rs, int pos) throws DataException, java.sql.SQLException
SQLValue
makeObject
in interface SQLValue<T>
rs
- ResultSetDataException
java.sql.SQLException
public SQLFilter getRequiredFilter()
SQLValue
getRequiredFilter
in interface SQLValue<T>
public java.lang.Class<T> getTarget()
Targetted
public int hashCode()
hashCode
in interface SQLExpression<T>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface SQLExpression<T>
equals
in class java.lang.Object
public 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 DerefSQLExpression
ssql
- SQLContext
expr
- 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 DerefSQLExpression
ssql
- SQLContext
expr
-