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

java.lang.Object
  extended bycom.triactive.jdo.store.sql.expr.AbstractSqlExpression
      extended bycom.triactive.jdo.store.sql.expr.BooleanExpression
          extended bycom.triactive.jdo.store.sql.expr.BooleanLiteral
All Implemented Interfaces:
SqlExpression, StatementTextGenerator
Direct Known Subclasses:
BooleanBitColumnLiteral, BooleanCharColumnLiteral

public class BooleanLiteral
extends BooleanExpression


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
BooleanLiteral(QueryStatement qs, boolean value)
           
 
Method Summary
 BooleanExpression and(SqlExpression expr)
          Returns a new expression representing "this && expr".
 boolean booleanValue()
           
 BooleanExpression eor(SqlExpression expr)
          Returns a new expression representing "this ^ expr".
 BooleanExpression eq(SqlExpression expr)
          Returns a new expression representing "this == expr".
protected  java.lang.String getBooleanFalseValue()
          Return the String value for FALSE in the database.
protected  java.lang.String getBooleanTrueValue()
          Return the String value for TRUE in the database.
 BooleanExpression ior(SqlExpression expr)
          Returns a new expression representing "this || expr".
 BooleanExpression not()
          Returns a new expression representing "!this".
 BooleanExpression noteq(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.BooleanExpression
protectOuterJoins, unprotectedOuterJoins, unprotectedOuterJoins
 
Methods inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
accessField, add, callMethod, cast, com, div, getColumnMapping, getJavaType, getMapping, getQueryStatement, getReferencedColumns, gt, gteq, innermostQuery, innermostQuery, lt, lteq, mod, mul, neg, newBody, newBody, newBody, newBody, newBody, newBody, newResultExpression, newSubqueryBody, select, setMapping, sub, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanLiteral

public BooleanLiteral(QueryStatement qs,
                      boolean value)
Method Detail

booleanValue

public boolean booleanValue()

getBooleanTrueValue

protected java.lang.String getBooleanTrueValue()
Return the String value for TRUE in the database. This should be overriden by subclasses for special cases of booleans.

Returns:
The String value for TRUE in the database.

getBooleanFalseValue

protected java.lang.String getBooleanFalseValue()
Return the String value for FALSE in the database. This should be overriden by subclasses for special cases of booleans.

Returns:
The String value for FALSE in the database.

and

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

Specified by:
and in interface SqlExpression
Overrides:
and in class BooleanExpression

eor

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

Specified by:
eor in interface SqlExpression
Overrides:
eor in class BooleanExpression

ior

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

Specified by:
ior in interface SqlExpression
Overrides:
ior in class BooleanExpression

not

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

Specified by:
not in interface SqlExpression
Overrides:
not in class BooleanExpression

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 BooleanExpression

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 BooleanExpression

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.