|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 indexth 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. |
Discriminator |
getDiscriminator()
|
protected String |
getOperator()
Return the name of this operator. |
Path |
getPath()
|
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, 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 Valinitialize in class UnaryOp
public Object load(ExpContext ctx,
ExpState state,
Result res)
throws SQLException
Val
load in interface Valload in class UnaryOpSQLException
public void calculateValue(Select sel,
ExpContext ctx,
ExpState state,
Val other,
ExpState otherState)
Vallength or any append methods.
calculateValue in interface ValcalculateValue in class UnaryOpother - the value being compared to, or null if not a comparison
public void select(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Val
select in interface Valselect in class UnaryOp
public void appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql,
int index)
Valindexth SQL element to the given buffer.
appendTo in interface ValappendTo in class UnaryOpprotected Class getType(Class c)
UnaryOp
getType in class UnaryOpprotected String getOperator()
UnaryOp
getOperator in class UnaryOppublic Path getPath()
getPath in interface ValuegetPath in class AbstractValpublic Discriminator getDiscriminator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||