Interface JpaCteCriteria<T>
- All Superinterfaces:
JpaCriteriaNode, Serializable
- All Known Implementing Classes:
SqmCteStatement
A CTE (common table expression) criteria.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcycle(String cycleMarkAttributeName, List<JpaCteCriteriaAttribute> cycleColumns) default voidcycle(String cycleMarkAttributeName, JpaCteCriteriaAttribute... cycleColumns) default <X> voidcycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns) default <X> voidcycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns) default voidcycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, List<JpaCteCriteriaAttribute> cycleColumns) default voidcycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, JpaCteCriteriaAttribute... cycleColumns) <X> voidcycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns) default <X> voidcycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns) The container within this CTE is registered.The definition of the CTE.The attributes to use for cycle detection.@Nullable StringThe attribute name which is used to mark when a cycle has been detected.@Nullable StringThe attribute name that represents the computation path, which is used for cycle detection.@Nullable ObjectThe value which is set for the cycle mark attribute when a cycle is detected.The materialization hint for the CTE.@Nullable StringgetName()The name under which this CTE is registered.@Nullable ObjectThe default value for the cycle mark attribute when no cycle is detected.@Nullable StringThe attribute name by which one can order the final CTE result, to achieve the search order.The order by which should be searched.@Nullable CteSearchClauseKindThe kind of search (breadth-first or depth-first) that should be done for a recursive query.getType()The type of the CTE.voidsearch(CteSearchClauseKind kind, String searchAttributeName, List<JpaSearchOrder> searchOrders) default voidsearch(CteSearchClauseKind kind, String searchAttributeName, JpaSearchOrder... searchOrders) voidsetMaterialization(CteMaterialization materialization)
-
Method Details
-
getName
@Nullable String getName()The name under which this CTE is registered. -
getType
JpaCteCriteriaType<T> getType()The type of the CTE. -
getCteDefinition
JpaSelectCriteria<?> getCteDefinition()The definition of the CTE. -
getCteContainer
JpaCteContainer getCteContainer()The container within this CTE is registered. -
getMaterialization
CteMaterialization getMaterialization()The materialization hint for the CTE. -
setMaterialization
-
getSearchClauseKind
@Nullable CteSearchClauseKind getSearchClauseKind()The kind of search (breadth-first or depth-first) that should be done for a recursive query. May be null if unspecified or if this is not a recursive query. -
getSearchBySpecifications
List<JpaSearchOrder> getSearchBySpecifications()The order by which should be searched. -
getSearchAttributeName
@Nullable String getSearchAttributeName()The attribute name by which one can order the final CTE result, to achieve the search order. Note that an implicitJpaCteCriteriaAttributewill be made available for this. -
search
default void search(CteSearchClauseKind kind, String searchAttributeName, JpaSearchOrder... searchOrders) -
search
void search(CteSearchClauseKind kind, String searchAttributeName, List<JpaSearchOrder> searchOrders) -
getCycleAttributes
List<JpaCteCriteriaAttribute> getCycleAttributes()The attributes to use for cycle detection. -
getCycleMarkAttributeName
@Nullable String getCycleMarkAttributeName()The attribute name which is used to mark when a cycle has been detected. Note that an implicitJpaCteCriteriaAttributewill be made available for this. -
getCyclePathAttributeName
@Nullable String getCyclePathAttributeName()The attribute name that represents the computation path, which is used for cycle detection. Note that an implicitJpaCteCriteriaAttributewill be made available for this. -
getCycleValue
@Nullable Object getCycleValue()The value which is set for the cycle mark attribute when a cycle is detected. -
getNoCycleValue
@Nullable Object getNoCycleValue()The default value for the cycle mark attribute when no cycle is detected. -
cycle
-
cycle
-
cycleUsing
default void cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, JpaCteCriteriaAttribute... cycleColumns) -
cycleUsing
default void cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, List<JpaCteCriteriaAttribute> cycleColumns) -
cycle
default <X> void cycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns) -
cycle
default <X> void cycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns) -
cycleUsing
default <X> void cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns) -
cycleUsing
<X> void cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns)
-