public class QueryDescriptorLoader extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
adapterSql |
protected DataMap |
dataMap |
protected String |
ejbql |
protected String |
name |
protected List<Ordering> |
orderings |
protected HashMap<String,Integer> |
prefetchesMap |
protected Map<String,String> |
properties |
protected Expression |
qualifier |
protected String |
queryType |
protected String |
resultEntity |
protected String |
rootName |
protected String |
rootType |
protected String |
sql |
Constructor and Description |
---|
QueryDescriptorLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addOrdering(String path,
String descending,
String ignoreCase) |
void |
addPrefetch(String path,
int semantics) |
void |
addProperty(String name,
String value) |
void |
addSql(String sql,
String adapterClass)
Adds raw sql.
|
QueryDescriptor |
buildQueryDescriptor()
Builds a Query object based on internal configuration information.
|
protected Object |
getRoot()
Determines query root based on configuration info, falls back to a DataMap root if
the data is invalid.
|
void |
setEjbql(String ejbql) |
void |
setLegacyFactory(String factory)
It's better be handled by project upgrade handler and actually it is.
|
void |
setName(String name) |
void |
setQualifier(String qualifier) |
void |
setQueryType(String queryType) |
void |
setResultEntity(String resultEntity) |
void |
setRoot(DataMap dataMap,
String rootType,
String rootName)
Sets the information pertaining to the root of the query.
|
protected String name
protected String queryType
protected String sql
protected String ejbql
protected Expression qualifier
protected DataMap dataMap
protected String rootType
protected String rootName
protected String resultEntity
public QueryDescriptor buildQueryDescriptor()
public void setName(String name)
public void setLegacyFactory(String factory)
factory
- old style query factory classpublic void setQueryType(String queryType)
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 setEjbql(String ejbql)
public void addSql(String sql, String adapterClass)
public void setQualifier(String qualifier)
public void addPrefetch(String path, int semantics)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.