Class FetchClauseSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.FetchClauseSupport
Immutable description of the fetch clause forms accepted by a database.
A Dialect supplies one stable profile through
Dialect.getFetchClauseSupport(). Each
FetchClauseType is independent: do not infer percent or ties support from
ordinary row-count support.
- Since:
- 8.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FetchClauseSupportEvery standard row-count, percent, and ties form is supported.static final FetchClauseSupportNofetchclause form is supported.static final FetchClauseSupportBoth ordinary row-count and row-count-with-ties forms are supported.static final FetchClauseSupportOnlyfetch first n rows onlyis supported. -
Method Summary
Modifier and TypeMethodDescriptionThe immutable set of supportedfetchclause forms.static FetchClauseSupportof(FetchClauseType... supportedTypes) Create an immutable profile containing exactly the supplied forms.booleansupports(FetchClauseType type) Whether the givenfetchclause form is supported.
-
Field Details
-
NONE
Nofetchclause form is supported. -
ROWS_ONLY
Onlyfetch first n rows onlyis supported. -
ROWS
Both ordinary row-count and row-count-with-ties forms are supported. -
ALL
Every standard row-count, percent, and ties form is supported.
-
-
Method Details
-
of
-
getSupportedTypes
The immutable set of supportedfetchclause forms. -
supports
Whether the givenfetchclause form is supported.
-