Top Description Methods
org.jooq.impl

pack-priv Interface FieldsTrait

extends Fields
Known Direct Subinterfaces
org.jooq.impl.ResultQueryTrait
Known Direct Implementers
org.jooq.impl.AbstractTable, org.jooq.impl.UDTImpl, org.jooq.impl.AbstractResult
Static Imports
org.jooq.impl.FieldsImpl.fieldsRow0

An internal base implementation of Fields, implementing all the convenience methods.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public default DataType<?>
dataType(int
The field's 0-based index
index
)

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 default DataType<?>
dataType(String
The qualified field name
name
)

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 default DataType<?>
dataType(Name
The qualified field name
name
)

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 default DataType<?>[]
dataTypes()

Implements org.jooq.Fields.dataTypes.

Get an array of field data types for this type.
public default <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 default Field<?>
field(String
The unqualified name of the field
name
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(String).
Get a field known to this type by unqualified name, or null if no field is known to this type by this name.
public default <T> Field<T>
field(String
The unqualified name of the field
name
,
Class<T>
The type to coerce the resulting field to
type
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(String, Class).
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 default <T> Field<T>
field(String
The unqualified name of the field
name
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(String, DataType).
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 default Field<?>
field(Name
The qualified name of the field
name
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(Name).
Get a field known to this type by qualified name, or null if no field is known to this type by this name.
public default <T> Field<T>
field(Name
The qualified name of the field
name
,
Class<T>
The type to coerce the resulting field to
type
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(Name, Class).
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 default <T> Field<T>
field(Name
The qualified name of the field
name
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Implements org.jooq.Fields.field.

Deprecated This method hides static import DSL#field(String, DataType).
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 default 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 default <T> Field<T>
field(int
The 0-based index of the field
index
,
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 default <T> Field<T>
field(int
The 0-based index of the field
index
,
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.
public default Field<?>[]
fields()

Implements org.jooq.Fields.fields.

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

Implements org.jooq.Fields.fields.

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

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 default Field<?>[]
fields(Name...
The qualified field names to include after looking them up via field(Name).
names
)

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 default Field<?>[]
fields(int...
The 0-based field indexes to include after looking them up via field(int).
indexes
)

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 default Stream<Field<?>>
fieldStream()

Implements org.jooq.Fields.fieldStream.

Get all fields known to this type as a Stream.
public default 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 default int
indexOf(String
The unqualified field name to look for
name
)

Implements org.jooq.Fields.indexOf.

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

Implements org.jooq.Fields.indexOf.

Get a field's index from this type.
public default Class<?>
type(int
The field's 0-based index
index
)

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 default Class<?>
type(String
The unqualified field name
name
)

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 default Class<?>
type(Name
The qualified field name
name
)

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 default Class<?>[]
types()

Implements org.jooq.Fields.types.

Get an array of field types for fields known to this type.
Inherited from org.jooq.Fields:
fieldsRow

Method Detail

dataTypeback to summary
public default DataType<?> dataType(int index)

Implements org.jooq.Fields.dataType.

Doc from org.jooq.Fields.dataType.

Get the field data type for a given field index, or null if no field is available at the index.

Parameters
index:int

The field's 0-based index

Annotations
@Override
dataTypeback to summary
public default DataType<?> dataType(String name)

Implements org.jooq.Fields.dataType.

Doc from 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.

The lookup algorithm is the same as that of field(String).

Parameters
name:String

The qualified field name

Annotations
@Override
dataTypeback to summary
public default DataType<?> dataType(Name name)

Implements org.jooq.Fields.dataType.

Doc from 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.

The lookup algorithm is the same as that of field(Name).

Parameters
name:Name

The qualified field name

Annotations
@Override
dataTypesback to summary
public default DataType<?>[] dataTypes()

Implements org.jooq.Fields.dataTypes.

Doc from org.jooq.Fields.dataTypes.

Get an array of field data types for this type.

Entries in the resulting array correspond to Field#getDataType() for the corresponding Field in fields()

Annotations
@Override
fieldback to summary
public default <T> Field<T> field(Field<T> field)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get a field known to this type by field reference.

This will return:

  • A field that is the same as the argument field (by identity comparison).
  • A field that is equal to the argument field (exact matching fully qualified name).
  • A field that is equal to the argument field (partially matching qualified name).
  • A field whose name is equal to the unqualified name of the argument field.
  • null otherwise.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Annotations
@Override
fieldback to summary
public default Field<?> field(String name)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(String).

Get a field known to this type by unqualified name, or null if no field is known to this type by this name.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:String

The unqualified name of the field

Annotations
@Deprecated
@Override
fieldback to summary
public default <T> Field<T> field(String name, Class<T> type)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(String, Class).

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.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:String

The unqualified name of the field

type:Class<T>

The type to coerce the resulting field to

Annotations
@Deprecated
@Override
fieldback to summary
public default <T> Field<T> field(String name, DataType<T> dataType)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(String, DataType).

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.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:String

The unqualified name of the field

dataType:DataType<T>

The data type to coerce the resulting field to

Annotations
@Deprecated
@Override
fieldback to summary
public default Field<?> field(Name name)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(Name).

Get a field known to this type by qualified name, or null if no field is known to this type by this name.

This will return:

  • A field whose name is equal to the argument field's name (exact matching fully qualified name).
  • A field whose name is equal to the argument field's name (partially matching qualified name).
  • A field whose name is equal to the unqualified name of the argument field.
  • null otherwise.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:Name

The qualified name of the field

Annotations
@Deprecated
@Override
fieldback to summary
public default <T> Field<T> field(Name name, Class<T> type)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(Name, Class).

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.

This will return:

  • A field whose name is equal to the argument field's name (exact matching fully qualified name).
  • A field whose name is equal to the argument field's name (partially matching qualified name).
  • A field whose name is equal to the unqualified name of the argument field.
  • null otherwise.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:Name

The qualified name of the field

type:Class<T>

The type to coerce the resulting field to

Annotations
@Deprecated
@Override
fieldback to summary
public default <T> Field<T> field(Name name, DataType<T> dataType)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

This method hides static import DSL#field(String, DataType).

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.

This will return:

  • A field whose name is equal to the argument field's name (exact matching fully qualified name).
  • A field whose name is equal to the argument field's name (partially matching qualified name).
  • A field whose name is equal to the unqualified name of the argument field.
  • null otherwise.

If several fields have the same ambiguous name, the first one is returned and a warning is logged.

Parameters
name:Name

The qualified name of the field

dataType:DataType<T>

The data type to coerce the resulting field to

Annotations
@Deprecated
@Override
fieldback to summary
public default Field<?> field(int index)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get a field known to this type by index, or null if no field is available at the index.

Parameters
index:int

The 0-based index of the field

Annotations
@Override
fieldback to summary
public default <T> Field<T> field(int index, Class<T> type)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get a field known to this type by index coerced to type, or null if no field is available at the index.

Parameters
index:int

The 0-based index of the field

type:Class<T>

The type to coerce the resulting field to

Annotations
@Override
fieldback to summary
public default <T> Field<T> field(int index, DataType<T> dataType)

Implements org.jooq.Fields.field.

Doc from org.jooq.Fields.field.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get a field known to this type by index coerced to dataType, or null if no field is available at the index.

Parameters
index:int

The 0-based index of the field

dataType:DataType<T>

The data type to coerce the resulting field to

Annotations
@Override
fieldsback to summary
public default Field<?>[] fields()

Implements org.jooq.Fields.fields.

Doc from org.jooq.Fields.fields.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get all fields known to this type.

Annotations
@Override
fieldsback to summary
public default Field<?>[] fields(Field<?>... fields)

Implements org.jooq.Fields.fields.

Doc from org.jooq.Fields.fields.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get all fields, filtering by some fields.

Parameters
fields:Field<?>[]

The fields to include after looking them up via field(Field).

Annotations
@Override
fieldsback to summary
public default Field<?>[] fields(String... names)

Implements org.jooq.Fields.fields.

Doc from org.jooq.Fields.fields.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get all fields known to this type, filtering by some unqualified field names.

Parameters
names:String[]

The unqualified field names to include after looking them up via field(String).

Annotations
@Override
fieldsback to summary
public default Field<?>[] fields(Name... names)

Implements org.jooq.Fields.fields.

Doc from org.jooq.Fields.fields.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get all fields known to this type, filtering by some qualified field names.

Parameters
names:Name[]

The qualified field names to include after looking them up via field(Name).

Annotations
@Override
fieldsback to summary
public default Field<?>[] fields(int... indexes)

Implements org.jooq.Fields.fields.

Doc from org.jooq.Fields.fields.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get all fields known to this type, filtering by some field indexes.

Parameters
indexes:int[]

The 0-based field indexes to include after looking them up via field(int).

Annotations
@Override
fieldStreamback to summary
public default Stream<Field<?>> fieldStream()

Implements org.jooq.Fields.fieldStream.

Doc from org.jooq.Fields.fieldStream.

Get all fields known to this type as a Stream.

Annotations
@Override
indexOfback to summary
public default int indexOf(Field<?> field)

Implements org.jooq.Fields.indexOf.

Doc from org.jooq.Fields.indexOf.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get a field's index from this type.

The lookup algorithm is the same as that of field(Field).

Parameters
field:Field<?>

The field to look for

Returns:int

The field's 0-based index or -1 if the field is not known to this type.

Annotations
@Override
indexOfback to summary
public default int indexOf(String name)

Implements org.jooq.Fields.indexOf.

Doc from org.jooq.Fields.indexOf.

Get a field's index from this type.

The lookup algorithm is the same as that of field(String).

Parameters
name:String

The unqualified field name to look for

Returns:int

The field's 0-based index or -1 if the field is not known to this type.

Annotations
@Override
indexOfback to summary
public default int indexOf(Name name)

Implements org.jooq.Fields.indexOf.

Doc from org.jooq.Fields.indexOf.

Get a field's index from this type.

The lookup algorithm is the same as that of field(Name).

Parameters
name:Name

The qualified field name to look for

Returns:int

The field's 0-based index or -1 if the field is not known to this type.

Annotations
@Override
typeback to summary
public default Class<?> type(int index)

Implements org.jooq.Fields.type.

Doc from org.jooq.Fields.type.

Get the field type for a given field index, or null if no field is available at the index.

Parameters
index:int

The field's 0-based index

Annotations
@Override
typeback to summary
public default Class<?> type(String name)

Implements org.jooq.Fields.type.

Doc from 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.

The lookup algorithm is the same as that of field(String).

Parameters
name:String

The unqualified field name

Annotations
@Override
typeback to summary
public default Class<?> type(Name name)

Implements org.jooq.Fields.type.

Doc from 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.

The lookup algorithm is the same as that of field(Name).

Parameters
name:Name

The qualified field name

Annotations
@Override
typesback to summary
public default Class<?>[] types()

Implements org.jooq.Fields.types.

Doc from org.jooq.Fields.types.

Get an array of field types for fields known to this type.

Entries in the resulting array correspond to Field#getType() for the corresponding Field in fields()

Annotations
@Override