java.lang.Object
io.ebeaninternal.server.querydefn.OrmQueryProperties
- All Implemented Interfaces:
Serializable
Represents the Properties of an Object Relational query.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct for root so path (and parentPath) are null.OrmQueryProperties(String path) Construct with a given path.OrmQueryProperties(String path, String rawProperties) OrmQueryProperties(String path, String rawProperties, FetchConfig fetchConfig) OrmQueryProperties(String path, Set<String> included) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OrmQueryProperties child) For secondary queries add a child element.booleanReturn true if this includes all properties on the path.voidasStringDebug(String prefix, StringBuilder sb) voidconfigureBeanQuery(SpiQuery<?> query) Define the select and joins for this query.copy()Creates a copy of the OrmQueryProperties.copy(FetchConfig fetchConfig) Create a copy with the given fetch config.<T> SpiExpressionList<T> filterMany(Query<T> rootQuery) Return the expressions used to filter on this path.voidAdjust filterMany expressions for inclusion in main query.intReturn the filterMany expression list (can be null).Return the property set.getPath()Return the path relative to the root of the graph.booleanbooleanisCache()Return true if this path should hit the L2 cache.booleanisIncludedBeanJoin(String propertyName) Return true if this property is included as a bean join.booleanReturn true if this path is a 'query join'.voidprepareExpressions(BeanQueryRequest<?> request) Prepare filterMany expressions for query plan key.voidqueryPlanHash(StringBuilder builder) Calculate the query plan hash.voidsetFilterMany(SpiExpressionList<?> filterMany) Set the filterMany expression list.
-
Constructor Details
-
OrmQueryProperties
public OrmQueryProperties()Construct for root so path (and parentPath) are null. -
OrmQueryProperties
Construct with a given path. -
OrmQueryProperties
-
OrmQueryProperties
-
OrmQueryProperties
-
-
Method Details
-
copy
Creates a copy of the OrmQueryProperties. -
copy
Create a copy with the given fetch config. -
getFetchConfig
-
filterMany
Return the expressions used to filter on this path. This should be a many path to use this method. -
filterManyInline
public void filterManyInline()Adjust filterMany expressions for inclusion in main query. -
prepareExpressions
Prepare filterMany expressions for query plan key. -
getFilterMany
Return the filterMany expression list (can be null). -
setFilterMany
Set the filterMany expression list. -
configureBeanQuery
Define the select and joins for this query. -
hasSelectClause
public boolean hasSelectClause() -
asStringDebug
-
add
For secondary queries add a child element. -
allProperties
public boolean allProperties()Return true if this includes all properties on the path. -
isIncludedBeanJoin
Return true if this property is included as a bean join.If a property is included as a bean join then it should not be included as a reference/proxy to avoid duplication.
-
getSelectQueryJoin
-
getIncluded
Return the property set. -
isQueryFetch
public boolean isQueryFetch()Return true if this path is a 'query join'. -
getBatchSize
public int getBatchSize() -
isCache
public boolean isCache()Return true if this path should hit the L2 cache. -
getPath
Return the path relative to the root of the graph. -
queryPlanHash
Calculate the query plan hash.
-