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

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

public class NumericExpression
extends AbstractSqlExpression


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
 
Fields inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
body, qs
 
Constructor Summary
NumericExpression(AbstractSqlExpression.Body body)
           
NumericExpression(QueryStatement.QueryColumn qsc)
           
 
Method Summary
 SqlExpression add(SqlExpression expr)
          Returns a new expression representing "this + expr".
 SqlExpression cast(java.lang.Class toType)
          Returns a new expression representing this expression cast to the given data type.
 SqlExpression div(SqlExpression expr)
          Returns a new expression representing "this / expr".
 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".
 
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, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericExpression

public NumericExpression(AbstractSqlExpression.Body body)

NumericExpression

public NumericExpression(QueryStatement.QueryColumn qsc)
Method Detail

eq

public BooleanExpression eq(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this == expr".

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

noteq

public BooleanExpression noteq(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this != expr".

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

lt

public BooleanExpression lt(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this < expr".

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

lteq

public BooleanExpression lteq(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this <= expr".

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

gt

public BooleanExpression gt(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this > expr".

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

gteq

public BooleanExpression gteq(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this >= expr".

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

add

public SqlExpression add(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this + expr".

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

sub

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

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

mul

public SqlExpression mul(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this * expr".

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

div

public SqlExpression div(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this / expr".

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

mod

public SqlExpression mod(SqlExpression expr)
Description copied from interface: SqlExpression
Returns a new expression representing "this % expr".

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

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 AbstractSqlExpression

cast

public SqlExpression cast(java.lang.Class toType)
Description copied from interface: SqlExpression
Returns a new expression representing this expression cast to the given data type.

Specified by:
cast in interface SqlExpression
Overrides:
cast in class AbstractSqlExpression


Copyright 2001-2007 The TJDO Project All Rights Reserved.