Package org.hibernate.query.criteria
Interface JpaCteCriteria<T>
-
- All Superinterfaces:
JpaCriteriaNode
,Serializable
- All Known Implementing Classes:
SqmCteStatement
@Incubating public interface JpaCteCriteria<T> extends JpaCriteriaNode
A CTE (common table expression) criteria.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
cycle(String cycleMarkAttributeName, List<JpaCteCriteriaAttribute> cycleColumns)
default void
cycle(String cycleMarkAttributeName, JpaCteCriteriaAttribute... cycleColumns)
default <X> void
cycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns)
default <X> void
cycle(String cycleMarkAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns)
default void
cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, List<JpaCteCriteriaAttribute> cycleColumns)
default void
cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, JpaCteCriteriaAttribute... cycleColumns)
<X> void
cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, List<JpaCteCriteriaAttribute> cycleColumns)
default <X> void
cycleUsing(String cycleMarkAttributeName, String cyclePathAttributeName, X cycleValue, X noCycleValue, JpaCteCriteriaAttribute... cycleColumns)
JpaCteContainer
getCteContainer()
The container within this CTE is registered.JpaSelectCriteria<?>
getCteDefinition()
The definition of the CTE.List<JpaCteCriteriaAttribute>
getCycleAttributes()
The attributes to use for cycle detection.String
getCycleMarkAttributeName()
The attribute name which is used to mark when a cycle has been detected.String
getCyclePathAttributeName()
The attribute name that represents the computation path, which is used for cycle detection.Object
getCycleValue()
The value which is set for the cycle mark attribute when a cycle is detected.CteMaterialization
getMaterialization()
The materialization hint for the CTE.String
getName()
The name under which this CTE is registered.Object
getNoCycleValue()
The default value for the cycle mark attribute when no cycle is detected.String
getSearchAttributeName()
The attribute name by which one can order the final CTE result, to achieve the search order.List<JpaSearchOrder>
getSearchBySpecifications()
The order by which should be searched.CteSearchClauseKind
getSearchClauseKind()
The kind of search (breadth-first or depth-first) that should be done for a recursive query.JpaCteCriteriaType<T>
getType()
The type of the CTE.void
search(CteSearchClauseKind kind, String searchAttributeName, List<JpaSearchOrder> searchOrders)
default void
search(CteSearchClauseKind kind, String searchAttributeName, JpaSearchOrder... searchOrders)
void
setMaterialization(CteMaterialization materialization)
-
-
-
Method Detail
-
getName
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
void setMaterialization(CteMaterialization materialization)
-
getSearchClauseKind
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
String getSearchAttributeName()
The attribute name by which one can order the final CTE result, to achieve the search order. Note that an implicitJpaCteCriteriaAttribute
will 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
String getCycleMarkAttributeName()
The attribute name which is used to mark when a cycle has been detected. Note that an implicitJpaCteCriteriaAttribute
will be made available for this.
-
getCyclePathAttributeName
String getCyclePathAttributeName()
The attribute name that represents the computation path, which is used for cycle detection. Note that an implicitJpaCteCriteriaAttribute
will be made available for this.
-
getCycleValue
Object getCycleValue()
The value which is set for the cycle mark attribute when a cycle is detected.
-
getNoCycleValue
Object getNoCycleValue()
The default value for the cycle mark attribute when no cycle is detected.
-
cycle
default void cycle(String cycleMarkAttributeName, JpaCteCriteriaAttribute... cycleColumns)
-
cycle
default void cycle(String cycleMarkAttributeName, List<JpaCteCriteriaAttribute> cycleColumns)
-
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)
-
-