|
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.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,
kodo.jdbc.query.Variable var)
Return a path starting from the given variable. |
|
| 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 |
appendTo(SQLBuffer sql,
int index)
Append the SQL for this value to the given buffer. |
void |
calculateValue(KodoPersistenceManager pm,
Map params,
JDBCValue other)
Calculate and cache the SQL for this value. |
void |
castTo(Class type)
Cast this value to the given type. |
void |
get(FieldMetaData field)
|
ClassMapping |
getClassMapping()
Return the class mapping for this path. |
Object |
getDataStoreValue(Object val,
KodoPersistenceManager pm)
Transform the given value into its datastore equivalent. |
FieldMapping |
getFieldMapping()
Return the field mapping for this path. |
Joins |
getJoins()
Return the joins for this value. |
void |
getKey()
|
ClassMetaData |
getMetaData()
|
String |
getPath()
Return the string of fields this path traverses. |
void |
initialize(KodoPersistenceManager pm,
Select 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()
|
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 |
setContainsId(String id)
If this path is part of a contains clause, then alias it to the proper contains id before initialization. |
void |
setMetaData(ClassMetaData meta)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLPath(ClassMapping type)
public SQLPath(ClassMapping candidate,
kodo.jdbc.query.Variable var)
| Method Detail |
public ClassMetaData getMetaData()
getMetaData in interface Valuepublic void setMetaData(ClassMetaData meta)
setMetaData in interface Valuepublic boolean isVariable()
isVariable in interface Valuepublic ClassMapping getClassMapping()
public FieldMapping getFieldMapping()
public String getPath()
public boolean isUnaccessedVariable()
public void setContainsId(String id)
public void get(FieldMetaData field)
get in interface Pathpublic void getKey()
getKey in interface kodo.jdbc.query.JDBCPathpublic void castTo(Class type)
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 emptiness
public void calculateValue(KodoPersistenceManager pm,
Map params,
JDBCValue other)
JDBCValuecalculateValue in interface JDBCValuepublic int length()
JDBCValuelength in interface JDBCValue
public void appendTo(SQLBuffer sql,
int index)
JDBCValueappendTo 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 | ||||||||