|
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.SQLPath
A path represents a traversal into fields of a candidate object.
| Constructor Summary | |
SQLPath(ClassMapping type)
Return a path starting with the 'this' ptr. |
|
SQLPath(ClassMapping candidate,
com.solarmetric.kodo.impl.jdbc.query.exp.Variable var)
Return a path starting from the given variable. |
|
| 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 |
appendTo(QuerySQLBuffer sql,
int index)
Append the SQL for this value to the given buffer. |
void |
calculateValue(PersistenceManagerImpl pm,
Map params,
JDBCValue other)
Calculate and cache the SQL for this value. |
void |
castTo(Class type)
Cast this value to the given class. |
void |
get(String field)
|
ClassMapping |
getClassMapping()
Return the class mapping for this path. |
Object |
getDataStoreValue(Object val)
Transform the given value into its datastore equivalent. |
FieldMapping |
getFieldMapping()
Return the field mapping for this path. |
FieldMetaData[] |
getFields()
|
Joins |
getJoins()
Return the joins for this value. |
void |
getKey()
|
ClassMetaData |
getMetaData()
|
String |
getPath()
Return the string of fields this path traverses. |
void |
initialize(PersistenceManagerImpl pm,
QuerySelect select,
boolean nullTest)
Initialize the value. |
boolean |
isUnaccessedVariable()
Return true if this is a bound variable that has not been accessed after binding. |
boolean |
isVariable()
|
(package private) void |
joinRelation()
Join into the relation represented by the current field, if any. |
int |
length()
Return the number of SQL elements in this value. |
void |
setContainsId(String id)
If this path is part of a contains clause, then alias it to the proper contains id before initialization. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SQLPath(ClassMapping type)
public SQLPath(ClassMapping candidate,
com.solarmetric.kodo.impl.jdbc.query.exp.Variable var)
| Method Detail |
public ClassMetaData getMetaData()
public boolean isVariable()
isVariable in interface com.solarmetric.kodo.query.Valuepublic ClassMapping getClassMapping()
public FieldMapping getFieldMapping()
public String getPath()
public boolean isUnaccessedVariable()
public void setContainsId(String id)
public void get(String field)
get in interface com.solarmetric.kodo.query.Pathpublic void getKey()
getKey in interface com.solarmetric.kodo.impl.jdbc.query.exp.JDBCPathpublic void castTo(Class type)
JDBCValuecastTo in interface JDBCValuepublic FieldMetaData[] getFields()
getFields in interface com.solarmetric.kodo.query.Path
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 emptinessvoid joinRelation()
public void calculateValue(PersistenceManagerImpl pm,
Map params,
JDBCValue other)
JDBCValuecalculateValue in interface JDBCValuepublic int length()
JDBCValuelength in interface JDBCValue
public void appendTo(QuerySQLBuffer sql,
int index)
JDBCValueappendTo 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 | ||||||||