public abstract class AbstractQuery extends Object implements Query
Modifier and Type | Field and Description |
---|---|
protected DataMap |
dataMap |
protected String |
name |
protected Object |
root
The root object this query.
|
Constructor and Description |
---|
AbstractQuery() |
Modifier and Type | Method and Description |
---|---|
<T> T |
acceptVisitor(ConfigurationNodeVisitor<T> visitor) |
abstract SQLAction |
createSQLAction(SQLActionVisitor visitor)
A callback method invoked by Cayenne during the final execution phase of the query
run.
|
DataMap |
getDataMap() |
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 |
setDataMap(DataMap dataMap) |
void |
setName(String name)
Sets a symbolic name of the query.
|
void |
setRoot(Object value)
Sets the root of the query
|
String |
toString() |
protected Object root
protected String name
protected DataMap dataMap
public <T> T acceptVisitor(ConfigurationNodeVisitor<T> visitor)
acceptVisitor
in interface ConfigurationNode
public DataMap getDataMap()
getDataMap
in interface Query
public void setDataMap(DataMap dataMap)
public String getName()
public void setName(String name)
public QueryMetadata getMetaData(EntityResolver resolver)
getMetaData
in interface Query
public Object getRoot()
public void setRoot(Object value)
value
- The new rootIllegalArgumentException
- if value is not a String, ObjEntity, DbEntity,
Procedure, DataMap, Class or null.public abstract SQLAction createSQLAction(SQLActionVisitor visitor)
Query
createSQLAction
in interface Query
public void route(QueryRouter router, EntityResolver resolver, Query substitutedQuery)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.