Top Description Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class FieldsImpl<R extends org.jooq.Record>

extends AbstractQueryPart
implements RecordType<R extends Record>, Mappable<R extends Record>, UTransient
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UTransient, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.impl.Mappable, org.jooq.RecordType, org.jooq.Fields
Static Imports
org.jooq.impl.QueryPartListView.wrap, .Tools.EMPTY_FIELD, .Tools.converterOrFail, .Tools.indexOrFail, .Tools.map, .Tools.newRecord, .Tools.unaliasTable

A simple wrapper for Field[], providing some useful lookup methods
Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface

Field Summary

Modifier and TypeField and Description
pack-priv Field<?>[]
fields

Deprecated as a consequence of Field being deprecated.
private static final JooqLogger
private static final FieldsImpl.FieldOrIndex<Field<?>>
private static final FieldsImpl.FieldOrIndex<Integer>

Constructor Summary

AccessConstructor and Description
pack-priv
FieldsImpl(SelectField<?>... fields)

pack-priv
FieldsImpl(Collection<? extends SelectField<?>> fields)

Method Summary

Modifier and TypeMethod and Description
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
pack-priv final void
add(Field<?> f)

Deprecated as a consequence of Field being deprecated.
public final DataType<?>
dataType(int
The field's 0-based index
fieldIndex
)

Implements org.jooq.Fields.dataType.

Get the field data type for a given field index, or null if no field is available at the index.
public final DataType<?>
dataType(String
The qualified field name
fieldName
)

Implements org.jooq.Fields.dataType.

Get the field data type for a given qualified field name, or null if no field is known to this type by this name.
public final DataType<?>
dataType(Name
The qualified field name
fieldName
)

Implements org.jooq.Fields.dataType.

Get the field data type for a given qualified field name, or null if no field is known to this type by this name.
public final DataType<?>[]
dataTypes()

Implements org.jooq.Fields.dataTypes.

Get an array of field data types for this type.
public boolean
equals(Object
The other QueryPart
that
)

Overrides org.jooq.impl.AbstractQueryPart.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public final <T> Field<T>
field(Field<T> field)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by field reference.
public final Field<?>
field(String
The unqualified name of the field
fieldName
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by unqualified name, or null if no field is known to this type by this name.
public final <T> Field<T>
field(String
The unqualified name of the field
fieldName
,
Class<T>
The type to coerce the resulting field to
type
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by unqualified name coerced to type, or null if no field is known to this type by this name.
public final <T> Field<T>
field(String
The unqualified name of the field
fieldName
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by unqualified name coerced to dataType, or null if no field is known to this type by this name.
public final Field<?>
field(Name
The qualified name of the field
name
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by qualified name, or null if no field is known to this type by this name.
public final <T> Field<T>
field(Name
The qualified name of the field
fieldName
,
Class<T>
The type to coerce the resulting field to
type
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by qualified name coerced to type, or null if no field is known to this type by this name.
public final <T> Field<T>
field(Name
The qualified name of the field
fieldName
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by qualified name coerced to dataType, or null if no field is known to this type by this name.
public final Field<?>
field(int
The 0-based index of the field
index
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by index, or null if no field is available at the index.
public final <T> Field<T>
field(int
The 0-based index of the field
fieldIndex
,
Class<T>
The type to coerce the resulting field to
type
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by index coerced to type, or null if no field is available at the index.
public final <T> Field<T>
field(int
The 0-based index of the field
fieldIndex
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Implements org.jooq.Fields.field.

Deprecated as a consequence of Field being deprecated.
Get a field known to this type by index coerced to dataType, or null if no field is available at the index.
private final <U> U
field0(Field<?> field, FieldsImpl.FieldOrIndex<U> result)

Deprecated as a consequence of Field being deprecated.
private final <U> U
field0(String fieldName, FieldsImpl.FieldOrIndex<U> result)

private final <U> U
public final Field<?>[]
fields()

Implements org.jooq.Fields.fields.

Deprecated as a consequence of Field being deprecated.
Get all fields known to this type.
public final Field<?>[]
fields(Field<?>...
The fields to include after looking them up via field(Field).
f
)

Implements org.jooq.Fields.fields.

Deprecated as a consequence of Field being deprecated.
Get all fields, filtering by some fields.
public final Field<?>[]
fields(String...
The unqualified field names to include after looking them up via field(String).
f
)

Implements org.jooq.Fields.fields.

Deprecated as a consequence of Field being deprecated.
Get all fields known to this type, filtering by some unqualified field names.
public final Field<?>[]
fields(Name...
The qualified field names to include after looking them up via field(Name).
f
)

Implements org.jooq.Fields.fields.

Deprecated as a consequence of Field being deprecated.
Get all fields known to this type, filtering by some qualified field names.
public final Field<?>[]
fields(int...
The 0-based field indexes to include after looking them up via field(int).
f
)

Implements org.jooq.Fields.fields.

Deprecated as a consequence of Field being deprecated.
Get all fields known to this type, filtering by some field indexes.
public final Row
fieldsRow()

Implements org.jooq.Fields.fieldsRow.

Get all fields known to this type as a Row.
pack-priv static final Row
fieldsRow0(FieldsTrait fields)

[#13341] Prevent costly calls to Select.asTable() where not strictly needed.

public final Stream<Field<?>>
fieldStream()

Implements org.jooq.Fields.fieldStream.

Get all fields known to this type as a Stream.
public int
hashCode()

Overrides org.jooq.impl.AbstractQueryPart.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
pack-priv final int[]
indexesOf(Field<?>... f)

Deprecated as a consequence of Field being deprecated.
pack-priv final int[]
indexesOf(String... fieldNames)

pack-priv final int[]
indexesOf(Name... fieldNames)

public final int
indexOf(Field<?>
The field to look for
field
)

Implements org.jooq.Fields.indexOf.

Deprecated as a consequence of Field being deprecated.
Get a field's index from this type.
public final int
indexOf(String
The unqualified field name to look for
fieldName
)

Implements org.jooq.Fields.indexOf.

Get a field's index from this type.
public final int
indexOf(Name
The qualified field name to look for
fieldName
)

Implements org.jooq.Fields.indexOf.

Get a field's index from this type.
public final RecordMapper<R, ?>
mapper(int fieldIndex)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field index.
public final <U> RecordMapper<R, U>
mapper(int fieldIndex, Configuration configuration, Class<? extends U> type)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field index and converts it using the Configuration#converterProvider().
public final <U> RecordMapper<R, U>
mapper(int fieldIndex, Converter<?, ? extends U> converter)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field index and converts it using a Converter.
public final RecordMapper<R, Record>
mapper(int[] fieldIndexes)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts values by field index.
public final RecordMapper<R, ?>
mapper(String fieldName)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name.
public final <U> RecordMapper<R, U>
mapper(String fieldName, Configuration configuration, Class<? extends U> type)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().
public final <U> RecordMapper<R, U>
mapper(String fieldName, Converter<?, ? extends U> converter)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name and converts it using a Converter.
public final RecordMapper<R, Record>
mapper(String[] fieldNames)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts values by field name.
public final RecordMapper<R, ?>
mapper(Name fieldName)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name.
public final <U> RecordMapper<R, U>
mapper(Name fieldName, Configuration configuration, Class<? extends U> type)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().
public final <U> RecordMapper<R, U>
mapper(Name fieldName, Converter<?, ? extends U> converter)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts a value by field name and converts it using a Converter.
public final RecordMapper<R, Record>
mapper(Name[] fieldNames)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that extracts values by field name.
public final <T> RecordMapper<R, T>
mapper(Field<T> field)

Implements org.jooq.impl.Mappable.mapper.

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference.
public final <U> RecordMapper<R, U>
mapper(Field<?> field, Configuration configuration, Class<? extends U> type)

Implements org.jooq.impl.Mappable.mapper.

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference and converts it using the Configuration#converterProvider().
public final <T, U> RecordMapper<R, U>
mapper(Field<T> field, Converter<? super T, ? extends U> converter)

Implements org.jooq.impl.Mappable.mapper.

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference and converts it using a Converter.
public final RecordMapper<R, Record>
mapper(Field<?>[] f)

Implements org.jooq.impl.Mappable.mapper.

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts values by field reference.
public final <S extends Record> RecordMapper<R, S>
mapper(Table<S> table)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that maps records to a new RecordQualifier#getRecordType().
public final <E> RecordMapper<R, E>
mapper(Configuration configuration, Class<? extends E> type)

Implements org.jooq.impl.Mappable.mapper.

Create a record mapper that maps records to a Class using the configured Configuration#recordMapperProvider() (the DefaultRecordMapper, by default).
pack-priv final int
safeIndex(int index)

public final int
size()

Implements org.jooq.RecordType.size.

Get the degree of this record type.
private final String
tableName(Field<?> field)

Deprecated as a consequence of Field being deprecated.
private static final ThrowingFunction<SelectField<?>, Field<?>, RuntimeException>
public final Class<?>
type(int
The field's 0-based index
fieldIndex
)

Implements org.jooq.Fields.type.

Get the field type for a given field index, or null if no field is available at the index.
public final Class<?>
type(String
The unqualified field name
fieldName
)

Implements org.jooq.Fields.type.

Get the field type for a given unqualified field name, or null if no field is known to this type by this name.
public final Class<?>
type(Name
The qualified field name
fieldName
)

Implements org.jooq.Fields.type.

Get the field type for a given qualified field name, or null if no field is known to this type by this name.
public final Class<?>[]
types()

Implements org.jooq.Fields.types.

Get an array of field types for fields known to this type.
Inherited from org.jooq.impl.AbstractQueryPart:
clausesconfigurationcreatecreatecreatedeclaresCTEdeclaresFieldsdeclaresTablesdeclaresWindowsgeneratesCastrendersContenttoStringtranslate