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.
|
Table<R> |
asTable(java.lang.String alias)
The underlying aliased table representation of this object.
|
Table<R> |
asTable(java.lang.String alias,
java.util.function.BiFunction<? super Field<?>,? super java.lang.Integer,? extends java.lang.String> aliasFunction)
The underlying aliased table representation of this object.
|
Table<R> |
asTable(java.lang.String alias,
java.util.function.Function<? super Field<?>,? extends java.lang.String> aliasFunction)
The underlying aliased table representation of this object.
|
Table<R> |
asTable(java.lang.String alias,
java.lang.String... fieldAliases)
The underlying aliased table representation of this object.
|
<T> Field<T> |
field(Field<T> field)
Get a specific field from this table, if this table knows its field
references.
|
Field<?> |
field(int index)
Get a specific field from this table, if this table knows its field
references.
|
<T> Field<T> |
field(int index,
java.lang.Class<T> type)
Get a specific field from this table and coerce it to
type ,
if this table knows its field references. |
<T> Field<T> |
field(int index,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType , if this table knows its field references. |
Field<?> |
field(Name name)
Get a specific field from this table, if this table knows its field
references.
|
<T> Field<T> |
field(Name name,
java.lang.Class<T> type)
Get a specific field from this table and coerce it to
type ,
if this table knows its field references. |
<T> Field<T> |
field(Name name,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType , if this table knows its field references. |
Field<?> |
field(java.lang.String name)
Get a specific field from this table, if this table knows its field
references.
|
<T> Field<T> |
field(java.lang.String name,
java.lang.Class<T> type)
Get a specific field from this table and coerce it to
type ,
if this table knows its field references. |
<T> Field<T> |
field(java.lang.String name,
DataType<T> dataType)
Get a specific field from this table and coerce it to
dataType , if this table knows its field references. |
Field<?>[] |
fields()
Get all fields from this table, if this table knows its field references,
or an empty array otherwise.
|
Field<?>[] |
fields(Field<?>... fields)
Get all fields from this table, providing some fields, if this table
knows its field references.
|
Field<?>[] |
fields(int... fieldIndexes)
Get all fields from this table, providing some field indexes, if this
table knows its field references.
|
Field<?>[] |
fields(Name... fieldNames)
Get all fields from this table, providing some field names, if this table
knows its field references.
|
Field<?>[] |
fields(java.lang.String... fieldNames)
Get all fields from this table, providing some field names, if this table
knows its field references.
|
Row |
fieldsRow()
Get this table's fields as a
Row , if this table knows its field
references. |
java.util.stream.Stream<Field<?>> |
fieldStream()
Get this table's fields as a
Stream , if this table knows its
field references. |
Row fieldsRow()
Row
, if this table knows its field
references.java.util.stream.Stream<Field<?>> fieldStream()
Stream
, if this table knows its
field references.<T> Field<T> field(Field<T> field)
This will return:
null
otherwise.
Row.field(Field)
Field<?> field(java.lang.String name)
Row.field(String)
<T> Field<T> field(java.lang.String name, java.lang.Class<T> type)
type
,
if this table knows its field references.Row.field(String, Class)
<T> Field<T> field(java.lang.String name, DataType<T> dataType)
dataType
, if this table knows its field references.Row.field(String, DataType)
Field<?> field(Name name)
Row.field(Name)
<T> Field<T> field(Name name, java.lang.Class<T> type)
type
,
if this table knows its field references.Row.field(Name, Class)
<T> Field<T> field(Name name, DataType<T> dataType)
dataType
, if this table knows its field references.Row.field(Name, DataType)
Field<?> field(int index)
Row.field(int)
<T> Field<T> field(int index, java.lang.Class<T> type)
type
,
if this table knows its field references.Row.field(int, Class)
<T> Field<T> field(int index, DataType<T> dataType)
dataType
, if this table knows its field references.Row.field(int, DataType)
Field<?>[] fields()
Row.fields()
Field<?>[] fields(Field<?>... fields)
Row.fields(Field...)
Field<?>[] fields(java.lang.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(java.lang.String alias)
Table.as(String)
@Support Table<R> asTable(java.lang.String alias, java.lang.String... fieldAliases)
Table.as(String, String...)
@Support Table<R> asTable(java.lang.String alias, java.util.function.Function<? super Field<?>,? extends java.lang.String> aliasFunction)
Table.as(String, Function)
@Support Table<R> asTable(java.lang.String alias, java.util.function.BiFunction<? super Field<?>,? super java.lang.Integer,? extends java.lang.String> aliasFunction)
Table.as(String, BiFunction)
Copyright © 2018. All Rights Reserved.