|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.kernel.exps.AbstractVal org.apache.openjpa.jdbc.kernel.exps.UnaryOp org.apache.openjpa.jdbc.kernel.exps.Type
class Type
Entity Type expression.
Field Summary | |
---|---|
(package private) Discriminator |
_disc
|
Fields inherited from class org.apache.openjpa.jdbc.kernel.exps.AbstractVal |
---|
FALSE, TRUE |
Fields inherited from interface org.apache.openjpa.jdbc.kernel.exps.Val |
---|
ABS_VAL, ARGS_VAL, CMP_EQUAL, COALESCE_VAL, CONCAT_VAL, FORCE_OUTER, GENERALCASE_VAL, INDEXOF_VAL, JOIN_REL, LENGTH_VAL, LOCATE_VAL, LOWER_VAL, MATH_VAL, NULL_CMP, NULLIF_VAL, SIMPLECASE_VAL, SQRT_VAL, SUBSTRING_VAL, TRIM_VAL, UPPER_VAL, VAL, WHENCONDITION_VAL, WHENSCALAR_VAL |
Constructor Summary | |
---|---|
Type(Val val)
|
Method Summary | |
---|---|
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql,
int index)
Append the index th SQL element to the given buffer. |
void |
calculateValue(Select sel,
ExpContext ctx,
ExpState state,
Val other,
ExpState otherState)
Calculate and cache the SQL for this value. |
protected String |
getOperator()
Return the name of this operator. |
protected Class |
getType(Class c)
Return the type of this value based on the argument type. |
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value. |
Object |
load(ExpContext ctx,
ExpState state,
Result res)
Load the data for this value. |
void |
select(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select the data for this value. |
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.UnaryOp |
---|
acceptVisit, getMetaData, getNoParen, getType, getValue, groupBy, initializeValue, length, orderBy, selectColumns, setImplicitType, setMetaData |
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.AbstractVal |
---|
appendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, getAlias, getId, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Discriminator _disc
Constructor Detail |
---|
public Type(Val val)
Method Detail |
---|
public ExpState initialize(Select sel, ExpContext ctx, int flags)
Val
initialize
in interface Val
initialize
in class UnaryOp
public Object load(ExpContext ctx, ExpState state, Result res) throws SQLException
Val
load
in interface Val
load
in class UnaryOp
SQLException
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState)
Val
length
or any append
methods.
calculateValue
in interface Val
calculateValue
in class UnaryOp
other
- the value being compared to, or null if not a comparisonpublic void select(Select sel, ExpContext ctx, ExpState state, boolean pks)
Val
select
in interface Val
select
in class UnaryOp
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
Val
index
th SQL element to the given buffer.
appendTo
in interface Val
appendTo
in class UnaryOp
protected Class getType(Class c)
UnaryOp
getType
in class UnaryOp
protected String getOperator()
UnaryOp
getOperator
in class UnaryOp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |