|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Val
A Value represents any non-operator in a query filter, including constants, variables, and object fields.
Field Summary | |
---|---|
static int |
FORCE_OUTER
Initialization flag indicating to force an outer join into any relation path. |
static int |
JOIN_REL
Initialization flag indicating to join into any relation path. |
static int |
NULL_CMP
Initialization flag indicating that this value will be compared to null. |
Method Summary | |
---|---|
void |
appendIsEmpty(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotEmpty(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql)
Append the SQL testing whether this value is not empty to the given buffer. |
void |
appendIsNotNull(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql)
Append the SQL testing whether this value is null to the given buffer. |
void |
appendSize(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql)
Append the SQL checking the size of this value. |
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. |
void |
groupBy(Select sel,
ExpContext ctx,
ExpState state)
Group by this value. |
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value. |
int |
length(Select sel,
ExpContext ctx,
ExpState state)
Return the number of SQL elements in this value. |
Object |
load(ExpContext ctx,
ExpState state,
Result res)
Load the data for this value. |
void |
orderBy(Select sel,
ExpContext ctx,
ExpState state,
boolean asc)
Order by this value. |
void |
select(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select the data for this value. |
void |
selectColumns(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select just the columns for this value. |
Object |
toDataStoreValue(Select sel,
ExpContext ctx,
ExpState state,
Object val)
Return the datastore value of the given object in the context of this value. |
Methods inherited from interface org.apache.openjpa.kernel.exps.Value |
---|
acceptVisit, getMetaData, getType, isAggregate, isVariable, isXPath, setImplicitType, setMetaData |
Field Detail |
---|
static final int NULL_CMP
static final int JOIN_REL
static final int FORCE_OUTER
Method Detail |
---|
ExpState initialize(Select sel, ExpContext ctx, int flags)
Object toDataStoreValue(Select sel, ExpContext ctx, ExpState state, Object val)
void select(Select sel, ExpContext ctx, ExpState state, boolean pks)
void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
void groupBy(Select sel, ExpContext ctx, ExpState state)
void orderBy(Select sel, ExpContext ctx, ExpState state, boolean asc)
Object load(ExpContext ctx, ExpState state, Result res) throws SQLException
SQLException
void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState)
length
or any append
methods.
other
- the value being compared to, or null if not a comparisonint length(Select sel, ExpContext ctx, ExpState state)
void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
index
th SQL element to the given buffer.
void appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)
void appendIsNotEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)
void appendSize(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)
void appendIsNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)
void appendIsNotNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |