|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.StringExpression
org.jpox.store.expression.StringLiteral
public class StringLiteral
Representation of a string literal.
| Nested Class Summary |
|---|
| Nested classes/interfaces 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 | |
|---|---|
StringLiteral(QueryExpression qs,
JavaTypeMapping mapping,
char value)
Constructor that takes a char. |
|
StringLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.String value)
Constructor |
|
| Method Summary | |
|---|---|
ScalarExpression |
add(ScalarExpression expr)
Additive Operator. |
BooleanExpression |
endsWithMethod(ScalarExpression str)
Returns whether this string ends with the specified string. |
BooleanExpression |
eq(ScalarExpression expr)
Equality operator (equals to) |
void |
generateStatementWithoutQuotes()
Convenience method to generate the statement without any quotes. |
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) |
NumericExpression |
indexOfMethod(ScalarExpression str)
Returns the index within this string of the first occurrence of the specified string. |
NumericExpression |
lengthMethod()
Method to handle the starts with operation. |
BooleanExpression |
lt(ScalarExpression expr)
Relational operator (lower than) |
BooleanExpression |
lteq(ScalarExpression expr)
Relational operator (lower than or equals) |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
BooleanExpression |
startsWithMethod(ScalarExpression str)
Method to handle the starts with operation. |
BooleanExpression |
startsWithMethod(ScalarExpression str,
ScalarExpression toffset)
Method to handle the starts with operation. |
StringExpression |
substringMethod(NumericExpression begin)
Method to handle the substring operation. |
StringExpression |
substringMethod(NumericExpression begin,
NumericExpression end)
Method to handle the substring operation. |
StringExpression |
toLowerCaseMethod()
Method to handle the lower case operation. |
StatementText |
toStatementText(int mode)
StatementText representation of this expression. |
StringExpression |
toUpperCaseMethod()
Method to handle the upper case operation. |
StringExpression |
trimMethod()
Method to handle trimming of a string. |
| Methods inherited from class org.jpox.store.expression.StringExpression |
|---|
charAtMethod, equalsMethod, in, indexOfMethod, matchesMethod, substringMethod, substringMethod |
| Methods inherited from class org.jpox.store.expression.ScalarExpression |
|---|
accessField, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, mod, mul, neg, not, sub, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringLiteral(QueryExpression qs,
JavaTypeMapping mapping,
char value)
qs - The QueryExpressionmapping - The mapping to the java typevalue - The value that is further converted to a String
public StringLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.String value)
qs - The QueryExpressionmapping - The mapping to the java type. null mapping is acceptedvalue - The value| Method Detail |
|---|
public void generateStatementWithoutQuotes()
public java.lang.Object getValue()
Literal
getValue in interface Literalpublic BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq in class StringExpressionexpr - the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq in class StringExpressionexpr - the right-hand operand
public BooleanExpression lt(ScalarExpression expr)
ScalarExpression
lt in class StringExpressionexpr - the right-hand operand
public BooleanExpression lteq(ScalarExpression expr)
ScalarExpression
lteq in class StringExpressionexpr - the right-hand operand
public BooleanExpression gt(ScalarExpression expr)
ScalarExpression
gt in class StringExpressionexpr - the right-hand operand
public BooleanExpression gteq(ScalarExpression expr)
ScalarExpression
gteq in class StringExpressionexpr - the right-hand operand
public ScalarExpression add(ScalarExpression expr)
ScalarExpression
add in class StringExpressionexpr - the right-hand operand
public BooleanExpression endsWithMethod(ScalarExpression str)
StringExpression
endsWithMethod in class StringExpressionstr - The string to compare against.
public NumericExpression indexOfMethod(ScalarExpression str)
StringExpression
indexOfMethod in class StringExpressionstr - The string to find the index of
public NumericExpression lengthMethod()
StringExpression
lengthMethod in class StringExpressionpublic BooleanExpression startsWithMethod(ScalarExpression str)
StringExpression
startsWithMethod in class StringExpressionstr - The string to compare against
public BooleanExpression startsWithMethod(ScalarExpression str,
ScalarExpression toffset)
StringExpression
startsWithMethod in class StringExpressionstr - The string to compare againsttoffset - The offset
public StringExpression substringMethod(NumericExpression begin)
begin - The start position
public StringExpression substringMethod(NumericExpression begin,
NumericExpression end)
begin - The start positionend - The end position
public StringExpression toLowerCaseMethod()
toLowerCaseMethod in class StringExpressionpublic StringExpression toUpperCaseMethod()
toUpperCaseMethod in class StringExpressionpublic StringExpression trimMethod()
trimMethod in class StringExpressionpublic StatementText toStatementText(int mode)
ScalarExpression
toStatementText in class ScalarExpressionmode - (0=PROJECTION;1=FILTER)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||