org.jpox.store.expression
Class CharacterLiteral

java.lang.Object
  extended byorg.jpox.store.expression.ScalarExpression
      extended byorg.jpox.store.expression.CharacterExpression
          extended byorg.jpox.store.expression.CharacterLiteral
All Implemented Interfaces:
Literal

public class CharacterLiteral
extends CharacterExpression
implements Literal

Representation of a Character literal in a Query.

Version:
$Revision: 1.10 $

Nested Class Summary
 
Nested classes inherited from class org.jpox.store.expression.ScalarExpression
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.jpox.store.expression.ScalarExpression
aliasIdentifier, 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_OR, OP_SUB, PROJECTION, qs, st, te
 
Constructor Summary
CharacterLiteral(QueryExpression qs, JavaTypeMapping mapping, char value)
          Creates a char literal
CharacterLiteral(QueryExpression qs, JavaTypeMapping mapping, java.lang.String value)
          Creates a char literal
 
Method Summary
 ScalarExpression add(ScalarExpression expr)
          Additive Operator.
 ScalarExpression com()
          Bitwise Complement Operator
 BooleanExpression eq(ScalarExpression expr)
          Equality operator (equals to)
 java.lang.Object getValue()
          Accessor to the literal value
 BooleanExpression gt(ScalarExpression expr)
          Relational operator (greater than)
 BooleanExpression gteq(ScalarExpression expr)
          Relational operator (greater than or equals)
 BooleanExpression lt(ScalarExpression expr)
          Relational operator (lower than)
 BooleanExpression lteq(ScalarExpression expr)
          Relational operator (lower than or equals)
 ScalarExpression mod(ScalarExpression expr)
          Method to return a modulus expression.
 ScalarExpression neg()
          Unary Minus Operator
 BooleanExpression noteq(ScalarExpression expr)
          Equality operator (not equals to)
 ScalarExpression sub(ScalarExpression expr)
          Additive Operator.
 CharacterExpression toLowerCaseMethod()
          Converts the Character Literal to lower case
 CharacterExpression toUpperCaseMethod()
          Converts the Character Literal to upper case
 
Methods inherited from class org.jpox.store.expression.CharacterExpression
div, in, mul
 
Methods inherited from class org.jpox.store.expression.ScalarExpression
accessField, and, as, callMethod, cast, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, not, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharacterLiteral

public CharacterLiteral(QueryExpression qs,
                        JavaTypeMapping mapping,
                        char value)
Creates a char literal

Parameters:
qs - the QueryExpression
mapping - the mapping
value - the char value

CharacterLiteral

public CharacterLiteral(QueryExpression qs,
                        JavaTypeMapping mapping,
                        java.lang.String value)
Creates a char literal

Parameters:
qs - the QueryExpression
mapping - the mapping
value - the char value
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: Literal
Accessor to the literal value

Specified by:
getValue in interface Literal
Returns:
the value of the literal

eq

public BooleanExpression eq(ScalarExpression expr)
Description copied from class: ScalarExpression
Equality operator (equals to)

Overrides:
eq in class CharacterExpression

noteq

public BooleanExpression noteq(ScalarExpression expr)
Description copied from class: ScalarExpression
Equality operator (not equals to)

Overrides:
noteq in class CharacterExpression

lt

public BooleanExpression lt(ScalarExpression expr)
Description copied from class: ScalarExpression
Relational operator (lower than)

Overrides:
lt in class CharacterExpression

lteq

public BooleanExpression lteq(ScalarExpression expr)
Description copied from class: ScalarExpression
Relational operator (lower than or equals)

Overrides:
lteq in class CharacterExpression

gt

public BooleanExpression gt(ScalarExpression expr)
Description copied from class: ScalarExpression
Relational operator (greater than)

Overrides:
gt in class CharacterExpression

gteq

public BooleanExpression gteq(ScalarExpression expr)
Description copied from class: ScalarExpression
Relational operator (greater than or equals)

Overrides:
gteq in class CharacterExpression

add

public ScalarExpression add(ScalarExpression expr)
Description copied from class: ScalarExpression
Additive Operator. The binary + operator performs addition when applied to two operands of numeric type, producing the sum of the operands. If the type of either operand of a + operator is String, then the operation is string concatenation.

Overrides:
add in class CharacterExpression

sub

public ScalarExpression sub(ScalarExpression expr)
Description copied from class: ScalarExpression
Additive Operator. The binary - operator subtracts right-hand operand from left-hand operand.

Overrides:
sub in class CharacterExpression

mod

public ScalarExpression mod(ScalarExpression expr)
Description copied from class: CharacterExpression
Method to return a modulus expression.

Overrides:
mod in class CharacterExpression
Parameters:
expr - The expression to modulus against
Returns:
The modulus expression

toLowerCaseMethod

public CharacterExpression toLowerCaseMethod()
Converts the Character Literal to lower case

Overrides:
toLowerCaseMethod in class CharacterExpression
Returns:
the lowercased Character Literal

toUpperCaseMethod

public CharacterExpression toUpperCaseMethod()
Converts the Character Literal to upper case

Overrides:
toUpperCaseMethod in class CharacterExpression
Returns:
the uppercased Character Literal

neg

public ScalarExpression neg()
Description copied from class: ScalarExpression
Unary Minus Operator

Overrides:
neg in class CharacterExpression

com

public ScalarExpression com()
Description copied from class: ScalarExpression
Bitwise Complement Operator

Overrides:
com in class CharacterExpression


Copyright © -2007 . All Rights Reserved.