com.triactive.jdo.store
Class BooleanLiteral

java.lang.Object
  extended by com.triactive.jdo.store.SQLExpression
      extended by com.triactive.jdo.store.BooleanExpression
          extended by com.triactive.jdo.store.BooleanLiteral
Direct Known Subclasses:
BooleanBitColumnLiteral, BooleanCharColumnLiteral

 class BooleanLiteral
extends BooleanExpression


Nested Class Summary
 
Nested classes/interfaces inherited from class com.triactive.jdo.store.SQLExpression
SQLExpression.DyadicOperator, SQLExpression.IllegalArgumentTypeException, SQLExpression.IllegalOperationException, SQLExpression.MethodInvocationException, SQLExpression.MonadicOperator, SQLExpression.Operator
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.SQLExpression
lowestOperator, OP_ADD, OP_AND, OP_BETWEEN, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, qs, st
 
Constructor Summary
BooleanLiteral(QueryStatement qs, boolean value)
           
 
Method Summary
 BooleanExpression and(SQLExpression expr)
           
 BooleanExpression eor(SQLExpression expr)
           
 BooleanExpression eq(SQLExpression 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)
           
 BooleanExpression not()
           
 BooleanExpression noteq(SQLExpression expr)
           
 
Methods inherited from class com.triactive.jdo.store.BooleanExpression
in
 
Methods inherited from class com.triactive.jdo.store.SQLExpression
accessField, add, callMethod, cast, com, div, getQueryStatement, gt, gteq, lt, lteq, mod, mul, neg, sub, toStatementText, toString, typeList
 
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

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)
Overrides:
and in class BooleanExpression

eor

public BooleanExpression eor(SQLExpression expr)
Overrides:
eor in class BooleanExpression

ior

public BooleanExpression ior(SQLExpression expr)
Overrides:
ior in class BooleanExpression

not

public BooleanExpression not()
Overrides:
not in class BooleanExpression

eq

public BooleanExpression eq(SQLExpression expr)
Overrides:
eq in class BooleanExpression

noteq

public BooleanExpression noteq(SQLExpression expr)
Overrides:
noteq in class BooleanExpression


Copyright ? 2001 TriActive, Inc. All Rights Reserved.