|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.query.AbstractQuery
public abstract class AbstractQuery
A common superclass of Cayenne queries.
| Field Summary | |
|---|---|
protected String |
name
|
protected Object |
root
The root object this query. |
| Constructor Summary | |
|---|---|
AbstractQuery()
|
|
| Method Summary | |
|---|---|
abstract SQLAction |
createSQLAction(SQLActionVisitor visitor)
A callback method invoked by Cayenne during the final execution phase of the query run. |
QueryMetadata |
getMetaData(EntityResolver resolver)
Returns default select parameters. |
String |
getName()
Returns a symbolic name of the query. |
Object |
getRoot()
Returns the root of this query. |
void |
route(QueryRouter router,
EntityResolver resolver,
Query substitutedQuery)
Implements default routing mechanism relying on the EntityResolver to find DataMap based on the query root. |
void |
setName(String name)
Sets a symbolic name of the query. |
void |
setRoot(Object value)
Sets the root of the query |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object root
protected String name
| Constructor Detail |
|---|
public AbstractQuery()
| Method Detail |
|---|
public String getName()
getName in interface Querypublic void setName(String name)
public QueryMetadata getMetaData(EntityResolver resolver)
getMetaData in interface Querypublic Object getRoot()
public void setRoot(Object value)
value - The new root
IllegalArgumentException - if value is not a String, ObjEntity, DbEntity,
Procedure, DataMap, Class or null.public String toString()
toString in class Objectpublic abstract SQLAction createSQLAction(SQLActionVisitor visitor)
Query
createSQLAction in interface Query
public void route(QueryRouter router,
EntityResolver resolver,
Query substitutedQuery)
route in interface Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||