R
- The record typepublic interface TableLike<R extends Record> extends QueryPart
Modifier and Type | Method and Description |
---|---|
Table<R> |
asTable()
The underlying table representation of this object
This method is useful for things like
SELECT * FROM (SELECT * FROM x WHERE x.a = '1') WHERE ... |
Table<R> |
asTable(String alias)
The underlying aliased table representation of this object
|
Table<R> |
asTable(String alias,
String... fieldAliases)
The underlying aliased table representation of this object
|
<T> Field<T> |
field(Field<T> field)
Get a specific field from this table.
|
Field<?> |
field(int index)
Get a specific field from this table.
|
<T> Field<T> |
field(int index,
Class<T> type)
Get a specific field from this table and coerce it to
type . |
<T> Field<T> |
field(int index,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType . |
Field<?> |
field(Name name)
Get a specific field from this table.
|
<T> Field<T> |
field(Name name,
Class<T> type)
Get a specific field from this table and coerce it to
type . |
<T> Field<T> |
field(Name name,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType . |
Field<?> |
field(String name)
Get a specific field from this table.
|
<T> Field<T> |
field(String name,
Class<T> type)
Get a specific field from this table and coerce it to
type . |
<T> Field<T> |
field(String name,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType . |
Field<?>[] |
fields()
Get all fields from this table.
|
Field<?>[] |
fields(Field<?>... fields)
Get all fields from this table, providing some fields.
|
Field<?>[] |
fields(int... fieldIndexes)
Get all fields from this table, providing some field indexes.
|
Field<?>[] |
fields(Name... fieldNames)
Get all fields from this table, providing some field names.
|
Field<?>[] |
fields(String... fieldNames)
Get all fields from this table, providing some field names.
|
Row |
fieldsRow()
Get this table's fields as a
Row |
<T> Field<T> field(Field<T> field)
This will return:
null
otherwise.
Row.field(Field)
Field<?> field(String name)
Row.field(String)
<T> Field<T> field(String name, Class<T> type)
type
.Row.field(String, Class)
<T> Field<T> field(String name, DataType<T> dataType)
dataType
.Row.field(String, DataType)
Field<?> field(Name name)
Row.field(Name)
<T> Field<T> field(Name name, Class<T> type)
type
.Row.field(Name, Class)
<T> Field<T> field(Name name, DataType<T> dataType)
dataType
.Row.field(Name, DataType)
Field<?> field(int index)
Row.field(int)
<T> Field<T> field(int index, Class<T> type)
type
.Row.field(int, Class)
<T> Field<T> field(int index, DataType<T> dataType)
dataType
.Row.field(int, DataType)
Field<?>[] fields()
Row.fields()
Field<?>[] fields(Field<?>... fields)
Row.fields(Field...)
Field<?>[] fields(String... fieldNames)
Row.fields(String...)
Field<?>[] fields(Name... fieldNames)
Row.fields(Name...)
Field<?>[] fields(int... fieldIndexes)
Row.fields(int...)
@Support Table<R> asTable()
This method is useful for things like
SELECT * FROM (SELECT * FROM x WHERE x.a = '1') WHERE ...
@Support Table<R> asTable(String alias)
Table.as(String)
Copyright © 2017. All Rights Reserved.