org.datanucleus.store.mapped.expression
Class BooleanBitColumnLiteral

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.BooleanExpression
          extended by org.datanucleus.store.mapped.expression.BooleanLiteral
              extended by org.datanucleus.store.mapped.expression.BooleanBitColumnLiteral
All Implemented Interfaces:
Literal

public class BooleanBitColumnLiteral
extends BooleanLiteral

Representation of a BooleanBit column literal in a Query.

Version:
$Revision: 1.6 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
aliasIdentifier, checkForTypeAssignability, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_NOTLIKE, OP_OR, OP_SUB, parameterName, PROJECTION, qs, st, te
 
Constructor Summary
BooleanBitColumnLiteral(QueryExpression qs, JavaTypeMapping mapping, boolean value)
          Constructor.
 
Method Summary
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.
 
Methods inherited from class org.datanucleus.store.mapped.expression.BooleanLiteral
and, eor, eq, getRawValue, getValue, ior, not, noteq, setRawValue
 
Methods inherited from class org.datanucleus.store.mapped.expression.BooleanExpression
in, neg
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, add, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, instanceOf, lt, lteq, mod, mul, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanBitColumnLiteral

public BooleanBitColumnLiteral(QueryExpression qs,
                               JavaTypeMapping mapping,
                               boolean value)
Constructor.

Parameters:
qs - the QueryExpression
mapping - the mapping associated to this expression
value - the literal 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.

Overrides:
getBooleanTrueValue in class BooleanLiteral
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.

Overrides:
getBooleanFalseValue in class BooleanLiteral
Returns:
The String value for FALSE in the database.


Copyright © 2010. All Rights Reserved.