public interface Name extends QueryPart
QueryPart
.
A Name
is a QueryPart
that renders a SQL identifier
according to the settings specified in Settings.getRenderNameStyle()
.
Modifier and Type | Method and Description |
---|---|
<R extends Record> |
as(Select<R> select)
Specify a subselect to refer to by the
Name to form a common
table expression. |
WindowDefinition |
as(WindowSpecification window)
Create a
WindowDefinition from this name. |
DerivedColumnList |
fields(String... fieldNames)
Add a list of fields to this name to make this name a
DerivedColumnList . |
String[] |
getName()
The qualified name of this SQL identifier.
|
String[] getName()
WindowDefinition as(WindowSpecification window)
WindowDefinition
from this name.
This creates a window definition that can be
WINDOW
clause (see
SelectWindowStep.window(WindowDefinition...)
OVER
clause (see
AggregateFunction.over(WindowDefinition)
<R extends Record> CommonTableExpression<R> as(Select<R> select)
Name
to form a common
table expression.
Column names are implicitly inherited from the SELECT
statement.
DerivedColumnList fields(String... fieldNames)
DerivedColumnList
.
The DerivedColumnList
can then be used along with a
subselect to form a CommonTableExpression
to be used with
WITH
clauses.
Copyright © 2015. All Rights Reserved.