|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.expression.ScalarExpression
org.datanucleus.store.mapped.expression.NullLiteral
org.datanucleus.store.mapped.expression.UnknownLiteral
public class UnknownLiteral
Representation of a unknown literal in a Query. This is a special literal with the sole purpose of representing a parameter where we don't currently have the value and want to pre-compile the query to check for other errors. Simply provides wrappers for operations that we would perform on a parameter value, and returns a valid expression.
| 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 | |
|---|---|
UnknownLiteral(QueryExpression qs)
Creates an unknown literal. |
|
| Method Summary | |
|---|---|
ScalarExpression |
add(ScalarExpression expr)
Additive Operator. |
BooleanExpression |
and(ScalarExpression expr)
Conditional And. |
ScalarExpression |
div(ScalarExpression expr)
Division 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 |
in(ScalarExpression expr)
In expression. |
BooleanExpression |
lt(ScalarExpression expr)
Relational operator (lower than) |
BooleanExpression |
lteq(ScalarExpression expr)
Relational operator (lower than or equals) |
ScalarExpression |
mod(ScalarExpression expr)
Remainder Operator. |
ScalarExpression |
mul(ScalarExpression expr)
Multiplication Operator |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
ScalarExpression |
sub(ScalarExpression expr)
Additive Operator. |
| Methods inherited from class org.datanucleus.store.mapped.expression.NullLiteral |
|---|
getRawValue, setRawValue |
| Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression |
|---|
accessField, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, encloseWithInParentheses, eor, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, neg, not, setParameterName, toStatementText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnknownLiteral(QueryExpression qs)
qs - the QueryExpression| Method Detail |
|---|
public java.lang.Object getValue()
Literal
getValue in interface LiteralgetValue in class NullLiteralpublic ScalarExpression add(ScalarExpression expr)
ScalarExpression
add in class NullLiteralexpr - the right-hand operand
public BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq in class NullLiteralexpr - the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq in class NullLiteralexpr - the right-hand operand
public BooleanExpression and(ScalarExpression expr)
ScalarExpression
and in class ScalarExpressionexpr - the right-hand operand
public ScalarExpression div(ScalarExpression expr)
ScalarExpression
div in class ScalarExpressionexpr - the right-hand operator
public BooleanExpression gt(ScalarExpression expr)
ScalarExpression
gt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression gteq(ScalarExpression expr)
ScalarExpression
gteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression in(ScalarExpression expr)
ScalarExpressionexpr
in in class ScalarExpressionexpr - the right-hand expression
public BooleanExpression lt(ScalarExpression expr)
ScalarExpression
lt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression lteq(ScalarExpression expr)
ScalarExpression
lteq in class ScalarExpressionexpr - the right-hand operand
public ScalarExpression mod(ScalarExpression expr)
ScalarExpression
mod in class ScalarExpressionexpr - the right-hand operator
public ScalarExpression mul(ScalarExpression expr)
ScalarExpression
mul in class ScalarExpressionexpr - the right-hand operator
public ScalarExpression sub(ScalarExpression expr)
ScalarExpression
sub in class ScalarExpressionexpr - the right-hand operand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||