|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.query.exp.Constant
A literal or parameter in the JDOQL filter.
| Constructor Summary | |
Constant()
|
|
| Method Summary | |
void |
appendIsEmpty(QuerySQLBuffer sql)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotNull(QuerySQLBuffer sql)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(QuerySQLBuffer sql)
Append the SQL testing whether this value is null to the given buffer. |
void |
castTo(Class cls)
Cast this value to the given class. |
Object |
getDataStoreValue(Object val)
Transform the given value into its datastore equivalent. |
Joins |
getJoins()
Return the joins for this value. |
Object |
getSQLValue()
Return the SQL value of this constant; delegates to getValue()
by default. |
abstract Object |
getValue()
Return the value of this constant. |
void |
initialize(PersistenceManagerImpl pm,
QuerySelect select,
boolean nullTest)
Initialize the value. |
boolean |
isVariable()
|
int |
length()
Return the number of SQL elements in this value. |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.query.exp.JDBCValue |
appendTo, calculateValue |
| Constructor Detail |
public Constant()
| Method Detail |
public boolean isVariable()
isVariable in interface com.solarmetric.kodo.query.Valuepublic abstract Object getValue()
public Object getSQLValue()
getValue()
by default.
public void initialize(PersistenceManagerImpl pm,
QuerySelect select,
boolean nullTest)
JDBCValueJoins instance
containing the joins for this value.initialize in interface JDBCValuecom.solarmetric.kodo.impl.jdbc.query.exp.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 void castTo(Class cls)
JDBCValuecastTo in interface JDBCValuepublic int length()
JDBCValuelength in interface JDBCValuepublic void appendIsEmpty(QuerySQLBuffer sql)
JDBCValueappendIsEmpty in interface JDBCValuepublic void appendIsNull(QuerySQLBuffer sql)
JDBCValueappendIsNull in interface JDBCValuepublic void appendIsNotNull(QuerySQLBuffer sql)
JDBCValueappendIsNotNull in interface JDBCValuepublic Joins getJoins()
JDBCValueJDBCValue.initialize(com.solarmetric.kodo.runtime.PersistenceManagerImpl, com.solarmetric.kodo.impl.jdbc.query.QuerySelect, 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 JDBCValuepublic Object getDataStoreValue(Object val)
JDBCValuegetDataStoreValue in interface JDBCValue
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||