|
SolarMetric Kodo JDO 3.1.6 generated on August 25 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 |
addVariableAction(kodo.jdbc.query.Variable var)
Set the path as a binding of the given variable. |
void |
appendIsEmpty(SQLBuffer sql,
KodoPersistenceManager pm)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotNull(SQLBuffer sql,
KodoPersistenceManager pm)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(SQLBuffer sql,
KodoPersistenceManager pm)
Append the SQL testing whether this value is null to the given buffer. |
void |
appendTo(SQLBuffer sql,
int index,
KodoPersistenceManager pm)
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 |
clearParameters()
Clear parameter values held by this value or its subcomponents. |
void |
get(FieldMetaData field)
Traverse into the given field of the current object, and update the current object to that field value. |
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()
Return any associated persistent type. |
String |
getPath()
Return the string of fields this path traverses. |
boolean |
hasVariable(kodo.jdbc.query.Variable var)
Return true if this value uses the given variable. |
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()
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,
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)
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 SQLPath(ClassMapping type)
public SQLPath(ClassMapping candidate,
kodo.jdbc.query.Variable var)
| Method Detail |
public void addVariableAction(kodo.jdbc.query.Variable var)
public ClassMetaData getMetaData()
ValuegetMetaData in interface Valuepublic void setMetaData(ClassMetaData meta)
ValuesetMetaData in interface Valuepublic boolean isVariable()
ValueisVariable in interface Valuepublic ClassMapping getClassMapping()
public FieldMapping getFieldMapping()
public String getPath()
public boolean isUnaccessedVariable()
public void setContainsId(String id)
public void get(FieldMetaData field)
Pathget 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,
KodoPersistenceManager pm)
JDBCValueappendTo in interface JDBCValue
public void appendIsEmpty(SQLBuffer sql,
KodoPersistenceManager pm)
JDBCValueappendIsEmpty in interface JDBCValue
public void appendIsNull(SQLBuffer sql,
KodoPersistenceManager pm)
JDBCValueappendIsNull in interface JDBCValue
public void appendIsNotNull(SQLBuffer sql,
KodoPersistenceManager pm)
JDBCValueappendIsNotNull in interface JDBCValuepublic void clearParameters()
JDBCValueclearParameters 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 JDBCValuepublic boolean hasVariable(kodo.jdbc.query.Variable var)
JDBCValuehasVariable in interface JDBCValue
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||