org.datanucleus.store.mapped.expression
Class BooleanCharColumnLiteral

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.BooleanCharColumnLiteral
All Implemented Interfaces:
Literal

public class BooleanCharColumnLiteral
extends BooleanLiteral

Representation of a BooleanChar Column literal in a Query.

Version:
$Revision: 1.5 $

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
BooleanCharColumnLiteral(QueryExpression qs, JavaTypeMapping mapping, boolean value)
          Creates a boolean literal
 
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

BooleanCharColumnLiteral

public BooleanCharColumnLiteral(QueryExpression qs,
                                JavaTypeMapping mapping,
                                boolean value)
Creates a boolean literal

Parameters:
qs - the QueryExpression
mapping - the mapping
value - the 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.

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.