|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.map.QueryBuilder
public abstract class QueryBuilder
A builder that constructs Cayenne queries from abstract configuration information defined in cayenne-data-map*.dtd. This abstract builder supports values declared in the DTD, allowing subclasses to define their own Query creation logic.
Field Summary | |
---|---|
protected Map<String,String> |
adapterSql
Deprecated. |
static String |
DATA_MAP_ROOT
Deprecated. |
protected DataMap |
dataMap
Deprecated. |
static String |
DB_ENTITY_ROOT
Deprecated. |
static String |
JAVA_CLASS_ROOT
Deprecated. |
protected String |
name
Deprecated. |
static String |
OBJ_ENTITY_ROOT
Deprecated. |
protected List<Ordering> |
orderings
Deprecated. |
protected List<String> |
prefetches
Deprecated. |
static String |
PROCEDURE_ROOT
Deprecated. |
protected Map<String,String> |
properties
Deprecated. |
protected Expression |
qualifier
Deprecated. |
protected String |
resultEntity
Deprecated. |
protected String |
rootName
Deprecated. |
protected String |
rootType
Deprecated. |
protected String |
sql
Deprecated. |
Constructor Summary | |
---|---|
QueryBuilder()
Deprecated. |
Method Summary | |
---|---|
void |
addOrdering(String path,
String descending,
String ignoreCase)
Deprecated. |
void |
addPrefetch(String path)
Deprecated. |
void |
addProperty(String name,
String value)
Deprecated. |
void |
addSql(String sql,
String adapterClass)
Deprecated. Adds raw sql. |
abstract Query |
getQuery()
Deprecated. Builds a Query object based on internal configuration information. |
protected Object |
getRoot()
Deprecated. Determines query root based on configuration info, falls back to a DataMap root if the data is invalid. |
void |
setName(String name)
Deprecated. |
void |
setQualifier(String qualifier)
Deprecated. |
void |
setResultEntity(String resultEntity)
Deprecated. |
void |
setRoot(DataMap dataMap,
String rootType,
String rootName)
Deprecated. Sets the information pertaining to the root of the query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OBJ_ENTITY_ROOT
public static final String DB_ENTITY_ROOT
public static final String PROCEDURE_ROOT
public static final String DATA_MAP_ROOT
public static final String JAVA_CLASS_ROOT
protected String name
protected Map<String,String> properties
protected String sql
protected Map<String,String> adapterSql
protected Expression qualifier
protected List<Ordering> orderings
protected List<String> prefetches
protected DataMap dataMap
protected String rootType
protected String rootName
protected String resultEntity
Constructor Detail |
---|
public QueryBuilder()
Method Detail |
---|
public abstract Query getQuery()
public void setName(String name)
protected Object getRoot()
CayenneRuntimeException
- if a valid root can't be established.public void setResultEntity(String resultEntity)
public void setRoot(DataMap dataMap, String rootType, String rootName)
public void addSql(String sql, String adapterClass)
public void setQualifier(String qualifier)
public void addProperty(String name, String value)
public void addOrdering(String path, String descending, String ignoreCase)
public void addPrefetch(String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |