Class SingleRowTableSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.SingleRowTableSupport
Immutable description of the SQL used by a Dialect for a reusable single-row table and for an otherwise table-less select.
Providers supply a stable profile through
Dialect.getSingleRowTableSupport(). The table
expression is used where SQL requires a reusable one-row table expression.
The select-only from clause is a complete fragment, including any alias or
restriction required by the database; an empty fragment means that an
otherwise table-less select requires no from clause.
Consumers must select the accessor matching the rendering context and must not derive one value from the other. Providers refining a Dialect family profile should copy the profile returned by the superclass and change only the values which differ.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable single-row-table-support profile. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SingleRowTableSupportThe base-Dialect profile: a standard values-table expression and no select-onlyfromclause. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder initialized fromSTANDARD.builder(SingleRowTableSupport base) Create a builder initialized with both rendering values of the given profile.The completefromfragment for an otherwise table-less select, or the empty string when no fragment is required.The nonblank table expression representing exactly one row.
-
Field Details
-
STANDARD
The base-Dialect profile: a standard values-table expression and no select-onlyfromclause.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with both rendering values of the given profile.- Parameters:
base- the non-null profile to copy
-
getTableExpression
The nonblank table expression representing exactly one row. -
getSelectOnlyFromClause
The completefromfragment for an otherwise table-less select, or the empty string when no fragment is required.
-