|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.jdbc.query.Constant
A literal or parameter in the JDOQL filter.
| Constructor Summary | |
Constant()
|
|
| Method Summary | |
void |
appendIsEmpty(SQLBuffer sql)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotNull(SQLBuffer sql)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(SQLBuffer sql)
Append the SQL testing whether this value is null to the given buffer. |
void |
castTo(Class cls)
Cast this value to the given type. |
Object |
getDataStoreValue(Object val,
KodoPersistenceManager pm)
Transform the given value into its datastore equivalent. |
Joins |
getJoins()
Return the joins for this value. |
ClassMetaData |
getMetaData()
|
Object |
getSQLValue()
Return the SQL value of this constant. |
abstract Object |
getValue()
Return the value of this constant. |
void |
initialize(KodoPersistenceManager pm,
Select select,
boolean nullTest)
Initialize the value. |
boolean |
isVariable()
|
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,
JDBCFetchConfiguration fetch)
Select the data for this value. |
void |
setMetaData(ClassMetaData meta)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface kodo.jdbc.query.JDBCValue |
appendTo, calculateValue |
| Constructor Detail |
public Constant()
| Method Detail |
public ClassMetaData getMetaData()
getMetaData in interface Valuepublic void setMetaData(ClassMetaData meta)
setMetaData in interface Valuepublic boolean isVariable()
isVariable in interface Valuepublic abstract Object getValue()
public Object getSQLValue()
getValue()
by default.public void castTo(Class cls)
JDBCValuecastTo in interface JDBCValue
public void initialize(KodoPersistenceManager pm,
Select select,
boolean nullTest)
JDBCValueJoins instance
containing the joins for this value.initialize in interface JDBCValuekodo.jdbc.query.JDBCValuepm - the persistence manager for the queryselect - used to create Joins instancesnullTest - if true, then this value will be compared
to null or tested for emptinesspublic int length()
JDBCValuelength in interface JDBCValuepublic void appendIsEmpty(SQLBuffer sql)
JDBCValueappendIsEmpty in interface JDBCValuepublic void appendIsNull(SQLBuffer sql)
JDBCValueappendIsNull in interface JDBCValuepublic void appendIsNotNull(SQLBuffer sql)
JDBCValueappendIsNotNull in interface JDBCValuepublic Joins getJoins()
JDBCValueJDBCValue.initialize(kodo.runtime.KodoPersistenceManager, kodo.jdbc.sql.Select, boolean) method. 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.getJoins in interface JDBCValue
public Object getDataStoreValue(Object val,
KodoPersistenceManager pm)
JDBCValuegetDataStoreValue in interface JDBCValue
public void select(Select sel,
JDBCStoreManager store,
JDBCFetchConfiguration fetch)
JDBCValueselect in interface JDBCValue
public Object load(Result res,
JDBCStoreManager store,
JDBCFetchConfiguration fetch)
throws SQLException
JDBCValueload in interface JDBCValue
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||