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(java.lang.String... fieldNames)
Add a list of fields to this name to make this name a
DerivedColumnList. |
java.lang.String[] |
getName()
The qualified name of this SQL identifier.
|
java.lang.String[] getName()
@Support(value={CUBRID,DB2,INFORMIX,POSTGRES,ORACLE,SQLSERVER,SYBASE}) 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)@Support(value={DB2,FIREBIRD,H2,HSQLDB,ORACLE,POSTGRES,SQLSERVER,SYBASE}) <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.
@Support(value={DB2,FIREBIRD,H2,HSQLDB,ORACLE,POSTGRES,SQLSERVER,SYBASE}) DerivedColumnList fields(java.lang.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.