|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.impl.jdbc.query.exp.SQLPath
A path represents a traversal into fields of a candidate object.
| Constructor Summary | |
SQLPath(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping type)
Return a path starting with the 'this' ptr. |
|
SQLPath(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping candidate,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.Variable var)
Return a path starting from the given variable. |
|
| Method Summary | |
void |
appendIsEmpty(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
Append the SQL testing whether this value is empty to the given buffer. |
void |
appendIsNotNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
Append the SQL testing whether this value is not null to the given buffer. |
void |
appendIsNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
Append the SQL testing whether this value is null to the given buffer. |
void |
appendTo(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
int index)
Append the SQL for this value to the given buffer. |
void |
calculateValue(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.util.Map params,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue other)
Calculate and cache the SQL for this value. |
void |
castTo(java.lang.Class type)
Cast this value to the given class. |
void |
get(java.lang.String field)
Traverse into the given field of the current object, and update the current object to that field value. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
getClassMapping()
Return the class mapping for this path. |
java.lang.Object |
getDataStoreValue(java.lang.Object val)
Transform the given value into its datastore equivalent. |
com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
getFieldMapping()
Return the field mapping for this path. |
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins |
getJoins()
Return the joins for this value. |
void |
getKey()
|
java.lang.String |
getPath()
Return the string of fields this path traverses. |
void |
initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.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. |
void |
setContainsId(java.lang.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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLPath(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping type)
public SQLPath(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping candidate,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.Variable var)
| Method Detail |
public boolean isVariable()
Value
isVariable in interface Valuepublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping getClassMapping()
public com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping getFieldMapping()
public java.lang.String getPath()
public boolean isUnaccessedVariable()
public void setContainsId(java.lang.String id)
public void get(java.lang.String field)
Path
get in interface Pathpublic void getKey()
getKey in interface JDBCPathpublic void castTo(java.lang.Class type)
JDBCValue
castTo in interface JDBCValue
public void initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Select select,
boolean nullTest)
JDBCValueJoins instance
containing the joins for this value.
initialize in interface 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(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.util.Map params,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue other)
JDBCValue
calculateValue in interface JDBCValuepublic int length()
JDBCValue
length in interface JDBCValue
public void appendTo(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
int index)
JDBCValue
appendTo in interface JDBCValuepublic void appendIsEmpty(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
JDBCValue
appendIsEmpty in interface JDBCValuepublic void appendIsNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
JDBCValue
appendIsNull in interface JDBCValuepublic void appendIsNotNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql)
JDBCValue
appendIsNotNull in interface JDBCValuepublic com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins getJoins()
JDBCValueJDBCValue.initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.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 JDBCValuepublic java.lang.Object getDataStoreValue(java.lang.Object val)
JDBCValue
getDataStoreValue in interface JDBCValue
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||