public class OrmQueryProperties extends Object implements Serializable
| Constructor and Description |
|---|
OrmQueryProperties() |
OrmQueryProperties(String path)
Construct with a given path (null == root path).
|
OrmQueryProperties(String path,
String properties)
Used by query language parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(OrmQueryProperties child)
For secondary queries add a child element.
|
void |
addSecJoinOrderProperty(OrderBy.Property orderProp)
Move a OrderBy.Property from the main query to this query join.
|
void |
addSecondaryQueryJoin(String property) |
boolean |
allProperties() |
int |
autofetchPlanHash() |
void |
configureBeanQuery(SpiQuery<?> query)
Define the select and joins for this query.
|
OrmQueryProperties |
copy()
Creates a copy of the OrmQueryProperties.
|
<T> SpiExpressionList<T> |
filterMany(Query<T> rootQuery)
Return the expressions used to filter on this path.
|
Set<String> |
getAllIncludedProperties()
Return all the properties including the bean joins.
|
FetchConfig |
getFetchConfig() |
SpiExpressionList<?> |
getFilterMany()
Return the filterMany expression list (can be null).
|
SpiExpressionList<?> |
getFilterManyTrimPath(int trimPath)
Return the filterMany expression list (can be null).
|
int |
getLazyFetchBatch() |
String |
getParentPath() |
String |
getPath() |
String |
getProperties() |
int |
getQueryFetchBatch() |
Iterator<String> |
getSelectProperties()
This excludes the bean joined properties.
|
boolean |
hasProperties()
Return true if this has properties.
|
boolean |
hasSelectClause() |
void |
includeBeanJoin(String propertyName)
Add a bean join property.
|
boolean |
isCache() |
boolean |
isChild(OrmQueryProperties possibleChild) |
boolean |
isFetchJoin() |
boolean |
isIncluded(String propName) |
boolean |
isIncludedBeanJoin(String propertyName)
Return true if this property is included as a bean join.
|
boolean |
isLazyFetch() |
boolean |
isQueryFetch() |
boolean |
isQueryFetchAll() |
boolean |
isReadOnly() |
void |
queryPlanHash(BeanQueryRequest<?> request,
HashQueryPlanBuilder builder)
Calculate the query plan hash.
|
void |
setDefaultProperties(String properties,
Set<String> included)
Set the properties from deployment default FetchTypes.
|
void |
setFetchConfig(FetchConfig fetchConfig)
Set the Fetch configuration options for this path.
|
void |
setFilterMany(SpiExpressionList<?> filterMany)
Set the filterMany expression list.
|
OrmQueryProperties |
setLazyFetchBatch(int lazyFetchBatch)
Set the lazy loading batch size.
|
void |
setProperties(String properties)
Set the comma delimited properties to fetch for this path.
|
OrmQueryProperties |
setQueryFetch(int batch,
boolean queryFetchAll) |
OrmQueryProperties |
setQueryFetchAll(boolean queryFetchAll) |
OrmQueryProperties |
setQueryFetchBatch(int queryFetchBatch)
Used to convert this join to a query join.
|
void |
setTunedProperties(OrmQueryProperties tunedProperties)
Set the properties from a matching autofetch tuned properties.
|
String |
toString() |
public OrmQueryProperties(String path)
public OrmQueryProperties()
public void addSecJoinOrderProperty(OrderBy.Property orderProp)
public void setFetchConfig(FetchConfig fetchConfig)
public FetchConfig getFetchConfig()
public void setProperties(String properties)
This can include the +query and +lazy type hints.
public <T> SpiExpressionList<T> filterMany(Query<T> rootQuery)
public SpiExpressionList<?> getFilterManyTrimPath(int trimPath)
public SpiExpressionList<?> getFilterMany()
public void setFilterMany(SpiExpressionList<?> filterMany)
public void setDefaultProperties(String properties, Set<String> included)
public void setTunedProperties(OrmQueryProperties tunedProperties)
public void configureBeanQuery(SpiQuery<?> query)
public OrmQueryProperties copy()
public boolean hasSelectClause()
public boolean isChild(OrmQueryProperties possibleChild)
public void add(OrmQueryProperties child)
public int autofetchPlanHash()
public void queryPlanHash(BeanQueryRequest<?> request, HashQueryPlanBuilder builder)
public String getProperties()
public boolean hasProperties()
public boolean isIncludedBeanJoin(String propertyName)
If a property is included as a bean join then it should not be included as a reference/proxy to avoid duplication.
public void includeBeanJoin(String propertyName)
public boolean allProperties()
public Iterator<String> getSelectProperties()
This is because bean joins will have there own node in the SqlTree.
public void addSecondaryQueryJoin(String property)
public Set<String> getAllIncludedProperties()
public boolean isIncluded(String propName)
public OrmQueryProperties setQueryFetchBatch(int queryFetchBatch)
queryJoinBatch - where -1 means not a query join and 0 means use the default
batch size.public OrmQueryProperties setQueryFetchAll(boolean queryFetchAll)
public OrmQueryProperties setQueryFetch(int batch, boolean queryFetchAll)
public OrmQueryProperties setLazyFetchBatch(int lazyFetchBatch)
public boolean isFetchJoin()
public boolean isQueryFetch()
public int getQueryFetchBatch()
public boolean isQueryFetchAll()
public boolean isLazyFetch()
public int getLazyFetchBatch()
public boolean isReadOnly()
public boolean isCache()
public String getParentPath()
public String getPath()
Copyright © 2014. All Rights Reserved.