|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.store.sql.expr.AbstractSqlExpression
com.triactive.jdo.store.sql.expr.NumericExpression
com.triactive.jdo.store.sql.expr.DecimalLiteral
public class DecimalLiteral
A decimal literal value. Used to represent numeric literals with exact decimal accuracy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression |
---|
AbstractSqlExpression.Body, AbstractSqlExpression.CompoundExpression, AbstractSqlExpression.SimpleColumnReference, AbstractSqlExpression.SubqueryExpression |
Field Summary | |
---|---|
protected java.lang.Number |
value
|
Fields inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression |
---|
body, qs |
Constructor Summary | |
---|---|
DecimalLiteral(QueryStatement qs,
java.math.BigDecimal value)
|
Method Summary | |
---|---|
SqlExpression |
add(SqlExpression expr)
Returns a new expression representing "this + expr". |
java.math.BigDecimal |
decimalValue()
Returns the value of the literal as a BigDecimal. |
SqlExpression |
div(SqlExpression expr)
Returns a new expression representing "this / expr". |
double |
doubleValue()
Returns the value of the literal as a Java double. |
BooleanExpression |
eq(SqlExpression expr)
Returns a new expression representing "this == expr". |
BooleanExpression |
gt(SqlExpression expr)
Returns a new expression representing "this > expr". |
BooleanExpression |
gteq(SqlExpression expr)
Returns a new expression representing "this >= expr". |
BooleanExpression |
lt(SqlExpression expr)
Returns a new expression representing "this < expr". |
BooleanExpression |
lteq(SqlExpression expr)
Returns a new expression representing "this <= expr". |
SqlExpression |
mod(SqlExpression expr)
Returns a new expression representing "this % expr". |
SqlExpression |
mul(SqlExpression expr)
Returns a new expression representing "this * expr". |
SqlExpression |
neg()
Returns a new expression representing "-this". |
BooleanExpression |
noteq(SqlExpression expr)
Returns a new expression representing "this != expr". |
SqlExpression |
sub(SqlExpression expr)
Returns a new expression representing "this - expr". |
StatementText |
toStatementText()
Returns the SQL statement text which this object generates. |
Methods inherited from class com.triactive.jdo.store.sql.expr.NumericExpression |
---|
cast |
Methods inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression |
---|
accessField, and, callMethod, com, eor, getColumnMapping, getJavaType, getMapping, getQueryStatement, getReferencedColumns, innermostQuery, innermostQuery, ior, newBody, newBody, newBody, newBody, newBody, newBody, newResultExpression, newSubqueryBody, not, select, setMapping, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.Number value
Constructor Detail |
---|
public DecimalLiteral(QueryStatement qs, java.math.BigDecimal value)
Method Detail |
---|
public java.math.BigDecimal decimalValue()
public SqlExpression add(SqlExpression expr)
add
in interface SqlExpression
expr
- The right-hand side of the operator.public SqlExpression sub(SqlExpression expr)
sub
in interface SqlExpression
expr
- The right-hand side of the operator.public SqlExpression mul(SqlExpression expr)
mul
in interface SqlExpression
expr
- The right-hand side of the operator.public SqlExpression neg()
SqlExpression
neg
in interface SqlExpression
neg
in class NumericExpression
public double doubleValue()
public BooleanExpression eq(SqlExpression expr)
eq
in interface SqlExpression
eq
in class NumericExpression
expr
- The right-hand side of the operator.public BooleanExpression noteq(SqlExpression expr)
noteq
in interface SqlExpression
noteq
in class NumericExpression
expr
- The right-hand side of the operator.public BooleanExpression lt(SqlExpression expr)
lt
in interface SqlExpression
lt
in class NumericExpression
expr
- The right-hand side of the operator.public BooleanExpression lteq(SqlExpression expr)
lteq
in interface SqlExpression
lteq
in class NumericExpression
expr
- The right-hand side of the operator.public BooleanExpression gt(SqlExpression expr)
gt
in interface SqlExpression
gt
in class NumericExpression
expr
- The right-hand side of the operator.public BooleanExpression gteq(SqlExpression expr)
gteq
in interface SqlExpression
gteq
in class NumericExpression
expr
- The right-hand side of the operator.public SqlExpression div(SqlExpression expr)
div
in interface SqlExpression
div
in class NumericExpression
expr
- The right-hand side of the operator.public SqlExpression mod(SqlExpression expr)
mod
in interface SqlExpression
mod
in class NumericExpression
expr
- The right-hand side of the operator.public StatementText toStatementText()
StatementTextGenerator
toStatementText
in interface StatementTextGenerator
toStatementText
in class AbstractSqlExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |