|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.mapped.expression.ScalarExpression
org.jpox.store.mapped.expression.ObjectExpression
org.jpox.store.mapped.expression.ObjectLiteral
public class ObjectLiteral
Representation of an Object literal in a query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.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.jpox.store.mapped.expression.ObjectExpression |
|---|
conditionExpr |
| Fields inherited from class org.jpox.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 | |
|---|---|
ObjectLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.Object value)
Creates an Object literal |
|
ObjectLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.Object value,
java.lang.String mappingClass)
Creates an Object literal |
|
| Method Summary | |
|---|---|
ScalarExpression |
accessField(java.lang.String subfieldName,
boolean innerJoin)
Reads a field of an object passed by parameter to the query |
BooleanExpression |
eq(ScalarExpression expr)
Method called when the query contains "object == value". |
java.lang.Object |
getRawValue()
Accessor for the "raw" value that this literal represents. |
java.lang.Object |
getValue()
Accessor to the literal value |
BooleanExpression |
noteq(ScalarExpression expr)
Method called when the query contains "object NOTEQUALS value". |
void |
setRawValue(java.lang.Object val)
Method to save a "raw" value that this literal represents. |
java.lang.String |
toString()
|
| Methods inherited from class org.jpox.store.mapped.expression.ObjectExpression |
|---|
addOuterJoinSuffix, cast, in, instanceOf, setFieldDefinition, useIdentityFormOfPCMapping |
| Methods inherited from class org.jpox.store.mapped.expression.ScalarExpression |
|---|
add, and, as, assertValidTypeForParameterComparison, callMethod, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getParameterName, getQueryExpression, gt, gteq, ior, isParameter, lt, lteq, mod, mul, neg, not, setParameterName, sub, toStatementText |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.Object value)
qs - the QueryExpressionmapping - the mappingvalue - the Object value
public ObjectLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.lang.Object value,
java.lang.String mappingClass)
qs - the QueryExpressionmapping - the mappingvalue - the Object valuemappingClass - the declared mapped class| Method Detail |
|---|
public java.lang.Object getValue()
Literal
getValue in interface Literalpublic BooleanExpression eq(ScalarExpression expr)
eq in class ObjectExpressionexpr - The expression
public BooleanExpression noteq(ScalarExpression expr)
noteq in class ObjectExpressionexpr - The expression
public ScalarExpression accessField(java.lang.String subfieldName,
boolean innerJoin)
accessField in class ObjectExpressionsubfieldName - Name of the subfieldinnerJoin - whether to inner join
public java.lang.String toString()
toString in class ScalarExpressionpublic void setRawValue(java.lang.Object val)
setRawValue in interface Literalval - The raw valuepublic java.lang.Object getRawValue()
getRawValue in interface Literal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||