public class CastDoubleSQLExpression<N extends java.lang.Number> extends java.lang.Object implements SQLExpression<java.lang.Double>
SQLExpression
that interprets a numeric SQLExpression
to
as a double. This does not alter the SQL expression just the type it is interpretted as.Constructor and Description |
---|
CastDoubleSQLExpression(SQLExpression<N> expr) |
Modifier and Type | Method and Description |
---|---|
int |
add(java.lang.StringBuilder sb,
boolean qualify)
Add the expression to a StringBuilder
|
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<java.lang.Double> |
getTarget()
Get the type of the returned object as far as it is known.
|
int |
hashCode() |
java.lang.Double |
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
public CastDoubleSQLExpression(SQLExpression<N> expr)
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<java.lang.Double>
list
- to modifypublic java.lang.Double makeObject(java.sql.ResultSet rs, int pos) throws DataException, java.sql.SQLException
SQLValue
makeObject
in interface SQLValue<java.lang.Double>
rs
- ResultSetDataException
java.sql.SQLException
public SQLFilter getRequiredFilter()
SQLValue
getRequiredFilter
in interface SQLValue<java.lang.Double>
public java.lang.Class<java.lang.Double> getTarget()
Targetted
public int hashCode()
hashCode
in interface SQLExpression<java.lang.Double>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface SQLExpression<java.lang.Double>
equals
in class java.lang.Object