com.triactive.jdo.store.sql.expr
Class FloatingPointLiteral

java.lang.Object
  extended bycom.triactive.jdo.store.sql.expr.AbstractSqlExpression
      extended bycom.triactive.jdo.store.sql.expr.NumericExpression
          extended bycom.triactive.jdo.store.sql.expr.NumericLiteral
              extended bycom.triactive.jdo.store.sql.expr.FloatingPointLiteral
All Implemented Interfaces:
SqlExpression, StatementTextGenerator

public class FloatingPointLiteral
extends com.triactive.jdo.store.sql.expr.NumericLiteral


Nested Class Summary
 
Nested classes 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
FloatingPointLiteral(QueryStatement qs, double value)
           
FloatingPointLiteral(QueryStatement qs, java.lang.Number value)
           
 
Method Summary
 SqlExpression add(SqlExpression expr)
          
 java.math.BigDecimal decimalValue()
          Returns the value of the literal as a BigDecimal.
 SqlExpression div(SqlExpression expr)
          
 double doubleValue()
          Returns the value of the literal as a Java double.
 BooleanExpression eq(SqlExpression expr)
          
 BooleanExpression gt(SqlExpression expr)
          
 BooleanExpression gteq(SqlExpression expr)
          
 BooleanExpression lt(SqlExpression expr)
          
 BooleanExpression lteq(SqlExpression expr)
          
 SqlExpression mod(SqlExpression expr)
          
 SqlExpression mul(SqlExpression expr)
          
 SqlExpression neg()
          Returns a new expression representing "-this".
 BooleanExpression noteq(SqlExpression expr)
          
 SqlExpression sub(SqlExpression 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

value

protected final java.lang.Number value
Constructor Detail

FloatingPointLiteral

public FloatingPointLiteral(QueryStatement qs,
                            double value)

FloatingPointLiteral

public FloatingPointLiteral(QueryStatement qs,
                            java.lang.Number value)
Method Detail

decimalValue

public java.math.BigDecimal decimalValue()
Description copied from class: com.triactive.jdo.store.sql.expr.NumericLiteral
Returns the value of the literal as a BigDecimal.


neg

public SqlExpression neg()
Description copied from interface: SqlExpression
Returns a new expression representing "-this".

Specified by:
neg in interface SqlExpression
Overrides:
neg in class NumericExpression

doubleValue

public double doubleValue()
Returns the value of the literal as a Java double.


eq

public BooleanExpression eq(SqlExpression expr)

Specified by:
eq in interface SqlExpression
Overrides:
eq in class NumericExpression

noteq

public BooleanExpression noteq(SqlExpression expr)

Specified by:
noteq in interface SqlExpression
Overrides:
noteq in class NumericExpression

lt

public BooleanExpression lt(SqlExpression expr)

Specified by:
lt in interface SqlExpression
Overrides:
lt in class NumericExpression

lteq

public BooleanExpression lteq(SqlExpression expr)

Specified by:
lteq in interface SqlExpression
Overrides:
lteq in class NumericExpression

gt

public BooleanExpression gt(SqlExpression expr)

Specified by:
gt in interface SqlExpression
Overrides:
gt in class NumericExpression

gteq

public BooleanExpression gteq(SqlExpression expr)

Specified by:
gteq in interface SqlExpression
Overrides:
gteq in class NumericExpression

add

public SqlExpression add(SqlExpression expr)

Specified by:
add in interface SqlExpression
Overrides:
add in class NumericExpression

sub

public SqlExpression sub(SqlExpression expr)

Specified by:
sub in interface SqlExpression
Overrides:
sub in class NumericExpression

mul

public SqlExpression mul(SqlExpression expr)

Specified by:
mul in interface SqlExpression
Overrides:
mul in class NumericExpression

div

public SqlExpression div(SqlExpression expr)

Specified by:
div in interface SqlExpression
Overrides:
div in class NumericExpression

mod

public SqlExpression mod(SqlExpression expr)

Specified by:
mod in interface SqlExpression
Overrides:
mod in class NumericExpression

toStatementText

public StatementText toStatementText()
Description copied from interface: StatementTextGenerator
Returns the SQL statement text which this object generates.

Specified by:
toStatementText in interface StatementTextGenerator
Overrides:
toStatementText in class AbstractSqlExpression


Copyright © 2001-2007 The TJDO Project All Rights Reserved.