|
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()
Value
getMetaData
in interface Value
public void setMetaData(ClassMetaData meta)
Value
setMetaData
in interface Value
public boolean isVariable()
Value
isVariable
in interface Value
public ClassMapping getClassMapping()
public FieldMapping getFieldMapping()
public String getPath()
public boolean isUnaccessedVariable()
public void setContainsId(String id)
public void get(FieldMetaData field)
Path
get
in interface Path
public void getKey()
getKey
in interface kodo.jdbc.query.JDBCPath
public void castTo(Class type)
JDBCValue
castTo
in interface JDBCValue
public void initialize(KodoPersistenceManager pm, Select select, boolean nullTest)
JDBCValue
Joins
instance
containing the joins for this value.initialize
in interface JDBCValue
kodo.jdbc.query.JDBCValue
pm
- 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 calculateValue(KodoPersistenceManager pm, Map params, JDBCValue other)
JDBCValue
calculateValue
in interface JDBCValue
public int length()
JDBCValue
length
in interface JDBCValue
public void appendTo(SQLBuffer sql, int index, KodoPersistenceManager pm)
JDBCValue
appendTo
in interface JDBCValue
public void appendIsEmpty(SQLBuffer sql, KodoPersistenceManager pm)
JDBCValue
appendIsEmpty
in interface JDBCValue
public void appendIsNull(SQLBuffer sql, KodoPersistenceManager pm)
JDBCValue
appendIsNull
in interface JDBCValue
public void appendIsNotNull(SQLBuffer sql, KodoPersistenceManager pm)
JDBCValue
appendIsNotNull
in interface JDBCValue
public void clearParameters()
JDBCValue
clearParameters
in interface JDBCValue
public Joins getJoins()
JDBCValue
JDBCValue.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)
JDBCValue
getDataStoreValue
in interface JDBCValue
public void select(Select sel, JDBCStoreManager store, JDBCFetchConfiguration fetch)
JDBCValue
select
in interface JDBCValue
public Object load(Result res, JDBCStoreManager store, JDBCFetchConfiguration fetch) throws SQLException
JDBCValue
load
in interface JDBCValue
public boolean hasVariable(kodo.jdbc.query.Variable var)
JDBCValue
hasVariable
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 |