Top Description Fields Constructors Methods
org.jooq.impl

public Class TableImpl<R extends org.jooq.Record>

extends AbstractTable<R extends Record>
implements ScopeMappable, ScopeNestable, SimpleCheckQueryPart, UNotYetImplemented
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UNotYetImplemented, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.impl.SimpleCheckQueryPart, org.jooq.QueryPartInternal, org.jooq.impl.ScopeNestable, org.jooq.impl.ScopeMappable
Known Direct Subclasses
org.jooq.impl.InformationSchemaMetaImpl.InformationSchemaTable, org.jooq.impl.Interpreter.MutableTable.InterpretedTable, org.jooq.impl.Snapshot.SnapshotTable, org.jooq.RenamedTable, org.jooq.impl.CustomTable, org.jooq.impl.FilteredMeta.FilteredTable, org.jooq.impl.MetaImpl.MetaTable, org.jooq.impl.MigrationImpl.JooqMigrationsChangelog
Annotations
@Internal
Static Imports
java.util.stream.Collectors.joining, org.jooq.Clause.TABLE, .Clause.TABLE_ALIAS, .Clause.TABLE_REFERENCE, .SQLDialect.FIREBIRD, .SQLDialect.HSQLDB, .SQLDialect.POSTGRES, .SQLDialect.YUGABYTEDB, org.jooq.impl.DefaultMetaProvider.meta, .Internal.createPathAlias, .Keywords.K_TABLE, .QueryPartListView.wrap, .SchemaImpl.DEFAULT_SCHEMA, .Tools.EMPTY_OBJECT, .Tools.getMappedTable, org.jooq.tools.StringUtils.defaultIfNull

Deprecated

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

A common base type for tables

This type is for JOOQ INTERNAL USE only. Do not reference directly

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final Alias<Table<R>>
pack-priv final Table<?>
pack-priv final ForeignKey<?, R>
private static final Clause[]
CLAUSES_TABLE_ALIAS

Deprecated as a consequence of Clause being deprecated.
private static final Clause[]
CLAUSES_TABLE_REFERENCE

Deprecated as a consequence of Clause being deprecated.
pack-priv final FieldsImpl<R>
private static final Set<SQLDialect>
protected final Field<?>[]
parameters

Deprecated as a consequence of Field being deprecated.
private static final Set<SQLDialect>

Constructor Summary

AccessConstructor and Description
public
TableImpl(String name)

Deprecated - 3.10 - [#5996] - Use TableImpl(Name) instead (or re-generated your code).
public
TableImpl(String name, Schema schema)

Deprecated - 3.10 - [#5996] - Use TableImpl(Name, Schema) instead (or re-generated your code).
public
TableImpl(String name, Schema schema, Table<R> aliased)

Deprecated - 3.10 - [#5996] - Use TableImpl(Name, Schema, Table) instead (or re-generated your code).
public
TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters)

Deprecated - 3.10 - [#5996] - Use TableImpl(Name, Schema, Table, Field[]) instead (or re-generated your code).
public
TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters, String comment)

Deprecated - 3.10 - [#5996] - Use TableImpl(Name, Schema, Table, Field[], String) instead (or re-generated your code).
public
public
TableImpl(Name name, Schema schema)

public
TableImpl(Name name, Schema schema, Table<R> aliased)

public
TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters)

Deprecated as a consequence of Field being deprecated.
public
TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, String comment)

Deprecated - 3.11 - [#7027] - Use TableImpl(Name, Schema, Table, Field[], Comment) instead.
public
TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, Comment comment)

Deprecated as a consequence of Field being deprecated.
public
TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, Comment comment, TableOptions options)

Deprecated as a consequence of Field being deprecated.
public
TableImpl(Table<?> child, ForeignKey<?, R> path, Table<R> parent)

public
TableImpl(Name name, Schema schema, Table<?> child, ForeignKey<?, R> path, Table<R> aliased, Field<?>[] parameters, Comment comment)

Deprecated as a consequence of Field being deprecated.
public
TableImpl(Name name, Schema schema, Table<?> child, ForeignKey<?, R> path, Table<R> aliased, Field<?>[] parameters, Comment comment, TableOptions options)

Deprecated as a consequence of Field being deprecated.

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.
private final void
accept0(Context<?> ctx)

protected boolean
aliased()

Check if this table already aliases another one.

public Table<R>
as(Name
The alias name
as
)

Overrides org.jooq.impl.AbstractTable.as.

Implements org.jooq.Table.as.

Subclasses may override this method to provide custom aliasing implementations

Create an alias for this table.

public Table<R>
as(Name
The alias name
as
,
Name...
The field aliases. Excess aliases are ignored, missing aliases will be substituted by this table's field names.
fieldAliases
)

Overrides org.jooq.impl.AbstractTable.as.

Implements org.jooq.Table.as.

Subclasses may override this method to provide custom aliasing implementations

Create an alias for this table and its fields.

public final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractTable.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Deprecated as a consequence of Clause being deprecated.
The Clauses that are represented by this query part.
public boolean
declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.
public boolean
equals(Object
The other QueryPart
that
)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals, org.jooq.Table.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public Field<?>
field(String
The unqualified name of the field
name
)

Overrides default org.jooq.impl.FieldsTrait.field.

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 <T> Field<T>
field(String
The unqualified name of the field
name
,
Class<T>
The type to coerce the resulting field to
type
)

Overrides default org.jooq.impl.FieldsTrait.field.

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 <T> Field<T>
field(String
The unqualified name of the field
name
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Overrides default org.jooq.impl.FieldsTrait.field.

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 Field<?>
field(Name
The qualified name of the field
name
)

Overrides default org.jooq.impl.FieldsTrait.field.

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 <T> Field<T>
field(Name
The qualified name of the field
name
,
Class<T>
The type to coerce the resulting field to
type
)

Overrides default org.jooq.impl.FieldsTrait.field.

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 <T> Field<T>
field(Name
The qualified name of the field
name
,
DataType<T>
The data type to coerce the resulting field to
dataType
)

Overrides default org.jooq.impl.FieldsTrait.field.

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.
pack-priv final FieldsImpl<R>
fields0()

Implements abstract org.jooq.impl.AbstractTable.fields0.

Subclasses should override this method to provide the set of fields contained in the concrete table implementation.
public Row
fieldsRow()

Overrides org.jooq.impl.AbstractTable.fieldsRow.

Implements org.jooq.Fields.fieldsRow.

Get all fields known to this type as a Row.
pack-priv @Nullable Table<R>
getAliasedTable()

Get the aliased table wrapped by this table.

public Class<? extends R>
getRecordType()

Implements org.jooq.RecordQualifier.getRecordType.

Subclasses must override this method if they use the generic type parameter R for other types than Record

The record type produced by this UDT or Table.

public int
hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
public final boolean
isSimple(Context<?> ctx)

Overrides default org.jooq.impl.SimpleCheckQueryPart.isSimple.

Whether the QueryPart really is simple.
protected boolean
isSynthetic()

Check if this table is a synthetic table.

public final TableOptionalOnStep<Record>
join(TableLike<?> table, JoinType type)

Overrides org.jooq.impl.AbstractTable.join.

Implements org.jooq.Table.join.

Join a table to this table using a JoinType

Depending on the JoinType, a subsequent TableOnStep#on(Condition) or TableOnStep#using(Field...) clause is required.

public Table<R>
rename(String rename)

public Table<R>
rename(Name rename)

public Table<R>
rename(Table<?> rename)

pack-priv final @Nullable Table<?>
rootChild()

Get the root child if this is an implicit join path expression, or null if not

Inherited from org.jooq.impl.AbstractTable:
$alias$aliased$dataType$schemaasasasasasasasasasasasasasasasMultisetasMultisetasMultisetasMultisetasTableasTableasTableasTableasTableasTableasTableasTableasTableasTableasTableasTableasteriskconvertconvertconvertconvertFromconvertFromconvertToconvertTocreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateFieldcreateField0createField0createField0createField0crossApplycrossApplycrossApplycrossApplycrossApplycrossApplycrossJoincrossJoincrossJoincrossJoincrossJoincrossJoindivideByeqequalfieldsforceIndexforceIndexForGroupByforceIndexForJoinforceIndexForOrderByfromfullJoinfullJoinfullJoinfullJoinfullJoinfullJoinfullOuterJoinfullOuterJoinfullOuterJoinfullOuterJoinfullOuterJoinfullOuterJoingetBindinggetCataloggetChecksgetConvertergetDataTypegetDataTypegetIdentitygetIndexesgetKeysgetOptionsgetPackagegetPrimaryKeygetRecordTimestampgetRecordVersiongetReferencesgetReferencesFromgetReferencesTogetSchemagetTableTypegetTypegetUniqueKeysignoreIndexignoreIndexForGroupByignoreIndexForJoinignoreIndexForOrderByinnerJoininnerJoininnerJoininnerJoininnerJoininnerJoinjoinjoinjoinjoinjoinjoinleftAntiJoinleftJoinleftJoinleftJoinleftJoinleftJoinleftJoinleftOuterJoinleftOuterJoinleftOuterJoinleftOuterJoinleftOuterJoinleftOuterJoinleftSemiJoinnaturalFullOuterJoinnaturalFullOuterJoinnaturalFullOuterJoinnaturalFullOuterJoinnaturalFullOuterJoinnaturalFullOuterJoinnaturalJoinnaturalJoinnaturalJoinnaturalJoinnaturalJoinnaturalJoinnaturalLeftOuterJoinnaturalLeftOuterJoinnaturalLeftOuterJoinnaturalLeftOuterJoinnaturalLeftOuterJoinnaturalLeftOuterJoinnaturalRightOuterJoinnaturalRightOuterJoinnaturalRightOuterJoinnaturalRightOuterJoinnaturalRightOuterJoinnaturalRightOuterJoinnenewRecordnotEqualouterApplyouterApplyouterApplyouterApplyouterApplyouterApplyrecordTyperightJoinrightJoinrightJoinrightJoinrightJoinrightJoinrightOuterJoinrightOuterJoinrightOuterJoinrightOuterJoinrightOuterJoinrightOuterJoinrowidstraightJoinstraightJoinstraightJoinstraightJoinstraightJoinstraightJointfuseIndexuseIndexForGroupByuseIndexForJoinuseIndexForOrderBywherewherewherewherewherewherewherewherewhereExistswhereNotExistswithOrdinality

Field Detail

aliasback to summary
pack-priv final Alias<Table<R>> alias
childback to summary
pack-priv final Table<?> child
childPathback to summary
pack-priv final ForeignKey<?, R> childPath
CLAUSES_TABLE_ALIASback to summary
private static final Clause[] CLAUSES_TABLE_ALIAS

Deprecated

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

CLAUSES_TABLE_REFERENCEback to summary
private static final Clause[] CLAUSES_TABLE_REFERENCE

Deprecated

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

fieldsback to summary
pack-priv final FieldsImpl<R> fields
NO_SUPPORT_QUALIFIED_TVF_CALLSback to summary
private static final Set<SQLDialect> NO_SUPPORT_QUALIFIED_TVF_CALLS
parametersback to summary
protected final Field<?>[] parameters

Deprecated

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

REQUIRES_TVF_TABLE_CONSTRUCTORback to summary
private static final Set<SQLDialect> REQUIRES_TVF_TABLE_CONSTRUCTOR

Constructor Detail

TableImplback to summary
public TableImpl(String name)

Deprecated

- 3.10 - [#5996] - Use TableImpl(Name) instead (or re-generated your code).

Annotations
@Deprecated
TableImplback to summary
public TableImpl(String name, Schema schema)

Deprecated

- 3.10 - [#5996] - Use TableImpl(Name, Schema) instead (or re-generated your code).

Annotations
@Deprecated
TableImplback to summary
public TableImpl(String name, Schema schema, Table<R> aliased)

Deprecated

- 3.10 - [#5996] - Use TableImpl(Name, Schema, Table) instead (or re-generated your code).

Annotations
@Deprecated
TableImplback to summary
public TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters)

Deprecated

- 3.10 - [#5996] - Use TableImpl(Name, Schema, Table, Field[]) instead (or re-generated your code).

Annotations
@Deprecated
TableImplback to summary
public TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters, String comment)

Deprecated

- 3.10 - [#5996] - Use TableImpl(Name, Schema, Table, Field[], String) instead (or re-generated your code).

Annotations
@Deprecated
TableImplback to summary
public TableImpl(Name name)
TableImplback to summary
public TableImpl(Name name, Schema schema)
TableImplback to summary
public TableImpl(Name name, Schema schema, Table<R> aliased)
TableImplback to summary
public TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters)

Deprecated

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

TableImplback to summary
public TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, String comment)

Deprecated

- 3.11 - [#7027] - Use TableImpl(Name, Schema, Table, Field[], Comment) instead.

Annotations
@Deprecated
TableImplback to summary
public TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, Comment comment)

Deprecated

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

TableImplback to summary
public TableImpl(Name name, Schema schema, Table<R> aliased, Field<?>[] parameters, Comment comment, TableOptions options)

Deprecated

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

TableImplback to summary
public TableImpl(Table<?> child, ForeignKey<?, R> path, Table<R> parent)
TableImplback to summary
public TableImpl(Name name, Schema schema, Table<?> child, ForeignKey<?, R> path, Table<R> aliased, Field<?>[] parameters, Comment comment)

Deprecated

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

TableImplback to summary
public TableImpl(Name name, Schema schema, Table<?> child, ForeignKey<?, R> path, Table<R> aliased, Field<?>[] parameters, Comment comment, TableOptions options)

Deprecated

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

Annotations
@SuppressWarnings:rawtypes, unchecked

Method Detail

acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
accept0back to summary
private final void accept0(Context<?> ctx)
aliasedback to summary
protected boolean aliased()

Check if this table already aliases another one.

This method is used by generated code of table valued functions. Do not call this method directly.

Annotations
@Internal
asback to summary
public Table<R> as(Name as)

Overrides org.jooq.impl.AbstractTable.as.

Implements org.jooq.Table.as.

Doc from org.jooq.Table.as.

Subclasses may override this method to provide custom aliasing implementations

Create an alias for this table.

Note that the case-sensitivity of the returned table depends on Settings#getRenderQuotedNames() and the Name. By default, table aliases are quoted, and thus case-sensitive in many SQL dialects - use DSL#unquotedName(String...) for case-insensitive aliases.

If the argument Name#getName() is qualified, then the Name#last() part will be used.

This method works both to alias the table as well as alias the table in its SelectField form via the SelectField#as(String) override. In order to alias only the projected table expression, use DSL#field(SelectField) to wrap this table into a Field

Parameters
as:Name

The alias name

Returns:Table<R>

The table alias

Annotations
@Override
asback to summary
public Table<R> as(Name as, Name... fieldAliases)

Overrides org.jooq.impl.AbstractTable.as.

Implements org.jooq.Table.as.

Doc from org.jooq.Table.as.

Subclasses may override this method to provide custom aliasing implementations

Create an alias for this table and its fields.

Note that the case-sensitivity of the returned table depends on Settings#getRenderQuotedNames() and the Name. By default, table aliases are quoted, and thus case-sensitive in many SQL dialects - use DSL#unquotedName(String...) for case-insensitive aliases.

If the argument Name#getName() is qualified, then the Name#last() part will be used.

Derived column lists for table references

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. In other words, the following statements are equivalent:


-- Using derived column lists to rename columns (e.g. Postgres)
SELECT t.a, t.b
FROM my_table t(a, b)

-- Nesting table references within derived tables (e.g. SQL Server)
SELECT t.a, t.b
FROM (
  SELECT * FROM my_table
) t(a, b)

Derived column lists for derived tables

Other databases may not support derived column lists at all, but they do support common table expressions. The following statements are equivalent:


-- Using derived column lists to rename columns (e.g. Postgres)
SELECT t.a, t.b
FROM (
  SELECT 1, 2
) AS t(a, b)

-- Using UNION ALL to produce column names (e.g. MySQL)
SELECT t.a, t.b
FROM (
  SELECT null a, null b FROM DUAL WHERE 1 = 0
  UNION ALL
  SELECT 1, 2 FROM DUAL
) t
Parameters
as:Name

The alias name

fieldAliases:Name[]

The field aliases. Excess aliases are ignored, missing aliases will be substituted by this table's field names.

Returns:Table<R>

The table alias

Annotations
@Override
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractTable.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

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

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

Annotations
@Override
declaresTablesback to summary
public boolean declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Doc from org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly

Annotations
@Override
equalsback to summary
public boolean equals(Object that)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals, org.jooq.Table.equals.

Doc from org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.

In general, QueryPart equality is defined in terms of toString() equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Parameters
that:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

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

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fieldback to summary
public <T> Field<T> field(String name, Class<T> type)

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fieldback to summary
public <T> Field<T> field(String name, DataType<T> dataType)

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fieldback to summary
public Field<?> field(Name name)

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fieldback to summary
public <T> Field<T> field(Name name, Class<T> type)

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fieldback to summary
public <T> Field<T> field(Name name, DataType<T> dataType)

Overrides default org.jooq.impl.FieldsTrait.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 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
@Override
fields0back to summary
pack-priv final FieldsImpl<R> fields0()

Implements abstract org.jooq.impl.AbstractTable.fields0.

Doc from org.jooq.impl.AbstractTable.fields0.

Subclasses should override this method to provide the set of fields contained in the concrete table implementation. For example, a TableAlias contains aliased fields of its AliasProvider table.

Annotations
@Override
fieldsRowback to summary
public Row fieldsRow()

Overrides org.jooq.impl.AbstractTable.fieldsRow.

Implements org.jooq.Fields.fieldsRow.

Doc from org.jooq.Fields.fieldsRow.

Get all fields known to this type as a Row.

Annotations
@Override
getAliasedTableback to summary
pack-priv @Nullable Table<R> getAliasedTable()

Get the aliased table wrapped by this table.

Annotations
@Nullable
getRecordTypeback to summary
public Class<? extends R> getRecordType()

Implements org.jooq.RecordQualifier.getRecordType.

Doc from org.jooq.RecordQualifier.getRecordType.

Subclasses must override this method if they use the generic type parameter R for other types than Record

The record type produced by this UDT or Table.

Annotations
@SuppressWarnings:unchecked
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Doc from org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.

In general, QueryPart hash codes are the same as the hash codes generated from toString(). This guarantees consistent behaviour with equals(Object)

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Returns:int

The QueryPart hash code

Annotations
@Override
isSimpleback to summary
public final boolean isSimple(Context<?> ctx)

Overrides default org.jooq.impl.SimpleCheckQueryPart.isSimple.

Doc from org.jooq.impl.SimpleCheckQueryPart.isSimple.

Whether the QueryPart really is simple.

e.g. an OrderField can be simple if its contents are also simple.

Annotations
@Override
@Internal
isSyntheticback to summary
protected boolean isSynthetic()

Check if this table is a synthetic table.

This method is used by generated code of synthetic views. Do not call this method directly.

Annotations
@Internal
joinback to summary
public final TableOptionalOnStep<Record> join(TableLike<?> table, JoinType type)

Overrides org.jooq.impl.AbstractTable.join.

Implements org.jooq.Table.join.

Doc from org.jooq.Table.join.

Join a table to this table using a JoinType

Depending on the JoinType, a subsequent TableOnStep#on(Condition) or TableOnStep#using(Field...) clause is required. If it is required but omitted, a DSL#trueCondition(), i.e. 1 = 1 condition will be rendered

Annotations
@Override
renameback to summary
public Table<R> rename(String rename)
renameback to summary
public Table<R> rename(Name rename)
renameback to summary
public Table<R> rename(Table<?> rename)
rootChildback to summary
pack-priv final @Nullable Table<?> rootChild()

Get the root child if this is an implicit join path expression, or null if not

Annotations
@Nullable