public class CastLongSQLExpression<N extends java.lang.Number> extends java.lang.Object implements SQLExpression<java.lang.Long>
SQLExpression that interprets a numeric SQLExpression to
as a long. This does not alter the SQL expression just the type it is interpretted as.| Constructor and Description |
|---|
CastLongSQLExpression(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.Long> |
getTarget()
Get the type of the returned object as far as it is known.
|
int |
hashCode() |
java.lang.Long |
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, getGroupParameterspublic CastLongSQLExpression(SQLExpression<N> expr)
public int add(java.lang.StringBuilder sb,
boolean qualify)
SQLValuepublic java.util.List<PatternArgument> getParameters(java.util.List<PatternArgument> list)
SQLValuegetParameters in interface SQLValue<java.lang.Long>list - to modifypublic java.lang.Long makeObject(java.sql.ResultSet rs,
int pos)
throws DataException,
java.sql.SQLException
SQLValuemakeObject in interface SQLValue<java.lang.Long>rs - ResultSetDataExceptionjava.sql.SQLExceptionpublic SQLFilter getRequiredFilter()
SQLValuegetRequiredFilter in interface SQLValue<java.lang.Long>public java.lang.Class<java.lang.Long> getTarget()
Targettedpublic int hashCode()
hashCode in interface SQLExpression<java.lang.Long>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface SQLExpression<java.lang.Long>equals in class java.lang.Object