[#1801] Add Table.as(String, String...) to allow for creating a table
alias with aliased fields - Added some more Javadoc
This commit is contained in:
parent
36554005ec
commit
6e140fd115
@ -98,6 +98,11 @@ public interface Table<R extends Record> extends FieldProvider, TableLike<R> {
|
||||
* Note that the case-sensitivity of the returned table depends on
|
||||
* {@link Settings#getRenderNameStyle()}. By default, table aliases are
|
||||
* quoted, and thus case-sensitive!
|
||||
* <p>
|
||||
* Note, not all databases support derived column lists for their table
|
||||
* aliases. On the other hand, some databases do support derived column
|
||||
* lists, but only for derived tables. jOOQ will try to turn table
|
||||
* references into derived tables to make this syntax work.
|
||||
*
|
||||
* @param alias The alias name
|
||||
* @param fieldAliases The field aliases. Excess aliases are ignored,
|
||||
@ -105,7 +110,7 @@ public interface Table<R extends Record> extends FieldProvider, TableLike<R> {
|
||||
* names.
|
||||
* @return The table alias
|
||||
*/
|
||||
@Support
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, HSQLDB, POSTGRES, SQLSERVER, SYBASE })
|
||||
Table<R> as(String alias, String... fieldAliases);
|
||||
|
||||
/**
|
||||
|
||||
@ -76,6 +76,11 @@ public interface TableLike<R extends Record> extends QueryPart {
|
||||
* ) AS alias(fieldAlias1, fieldAlias2)
|
||||
* WHERE ... </code>
|
||||
* <p>
|
||||
* Note, not all databases support derived column lists for their table
|
||||
* aliases. On the other hand, some databases do support derived column
|
||||
* lists, but only for derived tables. jOOQ will try to turn table
|
||||
* references into derived tables to make this syntax work.
|
||||
* <p>
|
||||
* Note that the case-sensitivity of the returned table depends on
|
||||
* {@link Settings#getRenderNameStyle()}. By default, table aliases are
|
||||
* quoted, and thus case-sensitive!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user