|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.query.Args
A list of arguments to a multi-argument function.
Constructor Summary | |
Args(kodo.jdbc.query.Val val1,
kodo.jdbc.query.Val val2)
Constructor. |
Method Summary | |
void |
appendIsEmpty(SQLBuffer sql,
Select sel,
JDBCStoreManager store,
Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotNull(SQLBuffer sql,
Select sel,
JDBCStoreManager store,
Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(SQLBuffer sql,
Select sel,
JDBCStoreManager store,
Object[] params,
JDBCFetchConfiguration fetch)
Append the SQL testing whether this value is null to the given buffer. |
void |
appendTo(SQLBuffer sql,
int index,
Select sel,
JDBCStoreManager store,
Object[] params,
JDBCFetchConfiguration fetch)
Append the index th SQL element to the given buffer. |
void |
calculateValue(Select sel,
JDBCStoreManager store,
Object[] params,
kodo.jdbc.query.Val other,
JDBCFetchConfiguration fetch)
Calculate and cache the SQL for this value. |
void |
clearParameters()
Clear parameter values held by this value or its subcomponents. |
Object |
getDataStoreValue(Object val,
JDBCStoreManager store)
Return the datastore value of the given object in the context of this value. |
Joins |
getJoins()
Return the joins for this value. |
ClassMetaData |
getMetaData()
Return any associated persistent type. |
Class |
getType()
Return the expected type for this value, or Object if
the type is unknown. |
Class[] |
getTypes()
|
kodo.jdbc.query.Val[] |
getVals()
|
boolean |
hasVariable(kodo.jdbc.query.Variable var)
Return true if this value uses the given variable. |
void |
initialize(Select sel,
JDBCStoreManager store,
boolean nullTest)
Initialize the value. |
boolean |
isVariable()
Return true if this value is a variable. |
int |
length()
Return the number of SQL elements in this value. |
Object |
load(Result res,
JDBCStoreManager store,
JDBCFetchConfiguration fetch)
Load the data for this value. |
void |
select(Select sel,
JDBCStoreManager store,
Object[] params,
boolean pks,
JDBCFetchConfiguration fetch)
Select the data for this value. |
void |
selectColumns(Select sel,
JDBCStoreManager store,
Object[] params,
boolean pks,
JDBCFetchConfiguration fetch)
Select just the columns for this value. |
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the filter. |
void |
setMetaData(ClassMetaData meta)
Associate a persistent type with this value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Args(kodo.jdbc.query.Val val1, kodo.jdbc.query.Val val2)
Method Detail |
public kodo.jdbc.query.Val[] getVals()
public ClassMetaData getMetaData()
Value
getMetaData
in interface Value
public void setMetaData(ClassMetaData meta)
Value
setMetaData
in interface Value
public boolean isVariable()
Value
isVariable
in interface Value
public Class getType()
Value
Object
if
the type is unknown.getType
in interface Value
public Class[] getTypes()
public void setImplicitType(Class type)
Value
Object
from Value.getType()
.setImplicitType
in interface Value
public void initialize(Select sel, JDBCStoreManager store, boolean nullTest)
kodo.jdbc.query.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 kodo.jdbc.query.Val
kodo.jdbc.query.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()
kodo.jdbc.query.Val
Val.initialize(kodo.jdbc.sql.Select, kodo.jdbc.runtime.JDBCStoreManager, 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 kodo.jdbc.query.Val
public Object getDataStoreValue(Object val, JDBCStoreManager store)
kodo.jdbc.query.Val
getDataStoreValue
in interface kodo.jdbc.query.Val
public void select(Select sel, JDBCStoreManager store, Object[] params, boolean pks, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
select
in interface kodo.jdbc.query.Val
public void selectColumns(Select sel, JDBCStoreManager store, Object[] params, boolean pks, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
selectColumns
in interface kodo.jdbc.query.Val
public Object load(Result res, JDBCStoreManager store, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
load
in interface kodo.jdbc.query.Val
public boolean hasVariable(kodo.jdbc.query.Variable var)
kodo.jdbc.query.Val
hasVariable
in interface kodo.jdbc.query.Val
public void calculateValue(Select sel, JDBCStoreManager store, Object[] params, kodo.jdbc.query.Val other, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
length
or any append
methods.calculateValue
in interface kodo.jdbc.query.Val
kodo.jdbc.query.Val
other
- the value being compared to, or null if not a comparisonpublic void clearParameters()
kodo.jdbc.query.Val
calculateValue
.clearParameters
in interface kodo.jdbc.query.Val
public int length()
kodo.jdbc.query.Val
length
in interface kodo.jdbc.query.Val
public void appendTo(SQLBuffer sql, int index, Select sel, JDBCStoreManager store, Object[] params, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
index
th SQL element to the given buffer.appendTo
in interface kodo.jdbc.query.Val
public void appendIsEmpty(SQLBuffer sql, Select sel, JDBCStoreManager store, Object[] params, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
appendIsEmpty
in interface kodo.jdbc.query.Val
public void appendIsNull(SQLBuffer sql, Select sel, JDBCStoreManager store, Object[] params, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
appendIsNull
in interface kodo.jdbc.query.Val
public void appendIsNotNull(SQLBuffer sql, Select sel, JDBCStoreManager store, Object[] params, JDBCFetchConfiguration fetch)
kodo.jdbc.query.Val
appendIsNotNull
in interface kodo.jdbc.query.Val
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |