|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.kernel.exps.Args
public class Args
A list of arguments to a multi-argument function.
Constructor Summary | |
---|---|
Args(Val val1,
Val val2)
Constructor. |
Method Summary | |
---|---|
void |
appendIsEmpty(SQLBuffer sql,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotEmpty(SQLBuffer sql,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is not empty to the given buffer. |
void |
appendIsNotNull(SQLBuffer sql,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(SQLBuffer sql,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is null to the given buffer. |
void |
appendSize(SQLBuffer sql,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL checking the size of this value. |
void |
appendTo(SQLBuffer sql,
int index,
Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Append the index th SQL element to the given buffer. |
void |
calculateValue(Select sel,
JDBCStore store,
java.lang.Object[] params,
Val other,
JDBCFetchConfiguration fetch)
Calculate and cache the SQL for this value. |
void |
clearParameters()
Clear parameter values held by this value or its subcomponents. |
Joins |
getJoins()
Return the joins for this value. |
org.apache.openjpa.meta.ClassMetaData |
getMetaData()
|
java.lang.Class |
getType()
|
java.lang.Class[] |
getTypes()
|
Val[] |
getVals()
|
org.apache.openjpa.kernel.exps.Value[] |
getValues()
|
void |
groupBy(Select sel,
JDBCStore store,
java.lang.Object[] params,
JDBCFetchConfiguration fetch)
Group by this value. |
boolean |
hasVariable(org.apache.openjpa.jdbc.kernel.exps.Variable var)
Return true if this value uses the given variable. |
void |
initialize(Select sel,
JDBCStore store,
boolean nullTest)
Initialize the value. |
boolean |
isVariable()
|
int |
length()
Return the number of SQL elements in this value. |
java.lang.Object |
load(Result res,
JDBCStore store,
JDBCFetchConfiguration fetch)
Load the data for this value. |
void |
orderBy(Select sel,
JDBCStore store,
java.lang.Object[] params,
boolean asc,
JDBCFetchConfiguration fetch)
Order by this value. |
void |
select(Select sel,
JDBCStore store,
java.lang.Object[] params,
boolean pks,
JDBCFetchConfiguration fetch)
Select the data for this value. |
void |
selectColumns(Select sel,
JDBCStore store,
java.lang.Object[] params,
boolean pks,
JDBCFetchConfiguration fetch)
Select just the columns for this value. |
void |
setImplicitType(java.lang.Class type)
|
void |
setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
|
java.lang.Object |
toDataStoreValue(java.lang.Object val,
JDBCStore store)
Return the datastore value of the given object in the context of this value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Args(Val val1, Val val2)
Method Detail |
---|
public org.apache.openjpa.kernel.exps.Value[] getValues()
getValues
in interface org.apache.openjpa.kernel.exps.Arguments
public Val[] getVals()
public org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData
in interface org.apache.openjpa.kernel.exps.Value
public void setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
setMetaData
in interface org.apache.openjpa.kernel.exps.Value
public boolean isVariable()
isVariable
in interface org.apache.openjpa.kernel.exps.Value
public java.lang.Class getType()
getType
in interface org.apache.openjpa.kernel.exps.Value
public java.lang.Class[] getTypes()
public void setImplicitType(java.lang.Class type)
setImplicitType
in interface org.apache.openjpa.kernel.exps.Value
public void initialize(Select sel, JDBCStore store, boolean nullTest)
Val
Joins
instance
containing the joins for this value. No additional joins should be
made after this call. The parent expression might modify these joins
during its own initialization so that common joins are moved up the
expression tree. These joins should not be included in the SQL
appended through any of the append
methods.
initialize
in interface Val
sel
- used to create Joins
instancesstore
- the store manager for the querynullTest
- if true, then this value will be compared
to null or tested for emptinesspublic Joins getJoins()
Val
Val.initialize(org.apache.openjpa.jdbc.sql.Select, org.apache.openjpa.jdbc.kernel.JDBCStore, boolean)
method. The parent
expression might modify these joins during its own initialization so
that common joins are moved up the expression tree.
getJoins
in interface Val
public java.lang.Object toDataStoreValue(java.lang.Object val, JDBCStore store)
Val
toDataStoreValue
in interface Val
public void select(Select sel, JDBCStore store, java.lang.Object[] params, boolean pks, JDBCFetchConfiguration fetch)
Val
select
in interface Val
public void selectColumns(Select sel, JDBCStore store, java.lang.Object[] params, boolean pks, JDBCFetchConfiguration fetch)
Val
selectColumns
in interface Val
public void groupBy(Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
groupBy
in interface Val
public void orderBy(Select sel, JDBCStore store, java.lang.Object[] params, boolean asc, JDBCFetchConfiguration fetch)
Val
orderBy
in interface Val
public java.lang.Object load(Result res, JDBCStore store, JDBCFetchConfiguration fetch)
Val
load
in interface Val
public boolean hasVariable(org.apache.openjpa.jdbc.kernel.exps.Variable var)
Val
hasVariable
in interface Val
public void calculateValue(Select sel, JDBCStore store, java.lang.Object[] params, Val other, JDBCFetchConfiguration fetch)
Val
length
or any append
methods.
calculateValue
in interface Val
other
- the value being compared to, or null if not a comparisonpublic void clearParameters()
Val
calculateValue
.
clearParameters
in interface Val
public int length()
Val
length
in interface Val
public void appendTo(SQLBuffer sql, int index, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
index
th SQL element to the given buffer.
appendTo
in interface Val
public void appendIsEmpty(SQLBuffer sql, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
appendIsEmpty
in interface Val
public void appendIsNotEmpty(SQLBuffer sql, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
appendIsNotEmpty
in interface Val
public void appendSize(SQLBuffer sql, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
appendSize
in interface Val
public void appendIsNull(SQLBuffer sql, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
appendIsNull
in interface Val
public void appendIsNotNull(SQLBuffer sql, Select sel, JDBCStore store, java.lang.Object[] params, JDBCFetchConfiguration fetch)
Val
appendIsNotNull
in interface Val
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |