Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class ReferenceImpl<R extends org.jooq.Record, O extends org.jooq.Record>

extends AbstractKey<R extends Record>
implements ForeignKey<R extends Record, O extends Record>, UEmpty
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.ForeignKey, org.jooq.Key, org.jooq.Named
Static Imports
org.jooq.impl.DSL.row, .Tools.filterOne, .Tools.first, .Tools.list, .Tools.map

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final UniqueKey<O>
private final TableField<O, ?>[]
ukFields

Deprecated as a consequence of TableField being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
ReferenceImpl(Table<R> table, Name name, TableField<R, ?>[] fkFields, UniqueKey<O> uk, TableField<O, ?>[] ukFields, boolean enforced)

Deprecated as a consequence of TableField being deprecated.

Method Summary

Modifier and TypeMethod and Description
public final Table<R>
children(O record)

Implements org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.
public final Table<R>
children(O... records)

Implements org.jooq.ForeignKey.children, org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.
public final Table<R>
children(Collection<? extends O> records)

Implements org.jooq.ForeignKey.children, org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.
pack-priv final ConstraintEnforcementStep
constraint0()

Implements abstract org.jooq.impl.AbstractKey.constraint0.

Deprecated as a consequence of ConstraintEnforcementStep being deprecated.
private static <R extends Record> DSLContext
extractDSLContext(Collection<? extends R> records)

Extract a configuration from the first record of a collection of records

private static <R extends Record> List<RowN>
extractRows(Collection<? extends R> records, TableField<R, ?>[] fields)

Deprecated as a consequence of TableField being deprecated.
Extract a list of row value expressions from a set of records given some fields
private static <R extends Record> List<Object>
extractValues(Collection<? extends R> records, TableField<R, ?> field2)

Deprecated as a consequence of TableField being deprecated.
Extract a list of values from a set of records given some fields
public final Result<R>
fetchChildren(O record)

Implements org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given record through this foreign key

This returns childs record referencing a given record through this foreign key, as if fetching from children(Record).

public final Result<R>
fetchChildren(O... records)

Implements org.jooq.ForeignKey.fetchChildren, org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given set of records through this foreign key

This returns childs record referencing any record in a given set of records through this foreign key, as if fetching from children(Record...).

public final Result<R>
fetchChildren(Collection<? extends O> records)

Implements org.jooq.ForeignKey.fetchChildren, org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given set of records through this foreign key

This returns childs record referencing any record in a given set of records through this foreign key, as if fetching from children(Collection).

public final O
fetchParent(R record)

Implements org.jooq.ForeignKey.fetchParent.

Fetch a parent record of a given record through this foreign key

This returns a parent record referenced by a given record through this foreign key, as if fetching from parent(Record).

public final Result<O>
fetchParents(R... records)

Implements org.jooq.ForeignKey.fetchParents.

Fetch parent records of a given set of record through this foreign key

This returns parent records referenced by any record in a given set of records through this foreign key, as if fetching from parents(Record...).

public final Result<O>
fetchParents(Collection<? extends R> records)

Implements org.jooq.ForeignKey.fetchParents.

Fetch parent records of a given set of record through this foreign key

This returns parent records referenced by any record in a given set of records through this foreign key, as if fetching from parents(Collection).

public final UniqueKey<O>
getKey()

Implements org.jooq.ForeignKey.getKey.

The referenced UniqueKey.
public final List<TableField<O, ?>>
getKeyFields()

Implements org.jooq.ForeignKey.getKeyFields.

The fields that make up the referenced UniqueKey.
public final TableField<O, ?>[]
getKeyFieldsArray()

Implements org.jooq.ForeignKey.getKeyFieldsArray.

Deprecated as a consequence of TableField being deprecated.
The fields that make up the referenced UniqueKey.
public final Table<O>
parent(R record)

Implements org.jooq.ForeignKey.parent.

Get a table expression representing the parent of a record, given this foreign key.
public final Table<O>
parents(R... records)

Implements org.jooq.ForeignKey.parents.

Get a table expression representing the parents of a record, given this foreign key.
public final Table<O>
parents(Collection<? extends R> records)

Implements org.jooq.ForeignKey.parents.

Get a table expression representing the parents of a record, given this foreign key.
private static <R1 extends Record, R2 extends Record> Table<R1>
table(Collection<? extends R2> records, Table<R1> table, TableField<R1, ?>[] fields1, TableField<R2, ?>[] fields2)

Deprecated as a consequence of TableField being deprecated.
private static <R extends Record> TableField<R, ?>[]
truncate(TableField<R, ?>[] fields1, TableField<?, ?>[] fields2)

Deprecated as a consequence of TableField being deprecated.
Inherited from org.jooq.impl.AbstractKey:
acceptconstraintenforcedequalsgetFieldsgetFieldsArraygetTablehashCodenullabletoString

Field Detail

ukback to summary
private final UniqueKey<O> uk
ukFieldsback to summary
private final TableField<O, ?>[] ukFields

Deprecated

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

Constructor Detail

ReferenceImplback to summary
pack-priv ReferenceImpl(Table<R> table, Name name, TableField<R, ?>[] fkFields, UniqueKey<O> uk, TableField<O, ?>[] ukFields, boolean enforced)

Deprecated

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

Method Detail

childrenback to summary
public final Table<R> children(O record)

Implements org.jooq.ForeignKey.children.

Doc from org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.

Annotations
@Override
childrenback to summary
public final Table<R> children(O... records)

Implements org.jooq.ForeignKey.children, org.jooq.ForeignKey.children.

Doc from org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.

Annotations
@SafeVarargs
@Override
childrenback to summary
public final Table<R> children(Collection<? extends O> records)

Implements org.jooq.ForeignKey.children, org.jooq.ForeignKey.children.

Doc from org.jooq.ForeignKey.children.

Get a table expression representing the children of a record, given this foreign key.

Annotations
@Override
constraint0back to summary
pack-priv final ConstraintEnforcementStep constraint0()

Implements abstract org.jooq.impl.AbstractKey.constraint0.

Deprecated

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

Annotations
@Override
extractDSLContextback to summary
private static <R extends Record> DSLContext extractDSLContext(Collection<? extends R> records)

Extract a configuration from the first record of a collection of records

extractRowsback to summary
private static <R extends Record> List<RowN> extractRows(Collection<? extends R> records, TableField<R, ?>[] fields)

Deprecated

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

Extract a list of row value expressions from a set of records given some fields

extractValuesback to summary
private static <R extends Record> List<Object> extractValues(Collection<? extends R> records, TableField<R, ?> field2)

Deprecated

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

Extract a list of values from a set of records given some fields

fetchChildrenback to summary
public final Result<R> fetchChildren(O record)

Implements org.jooq.ForeignKey.fetchChildren.

Doc from org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given record through this foreign key

This returns childs record referencing a given record through this foreign key, as if fetching from children(Record).

Annotations
@Override
fetchChildrenback to summary
public final Result<R> fetchChildren(O... records)

Implements org.jooq.ForeignKey.fetchChildren, org.jooq.ForeignKey.fetchChildren.

Doc from org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given set of records through this foreign key

This returns childs record referencing any record in a given set of records through this foreign key, as if fetching from children(Record...).

Annotations
@Override
@SafeVarargs
fetchChildrenback to summary
public final Result<R> fetchChildren(Collection<? extends O> records)

Implements org.jooq.ForeignKey.fetchChildren, org.jooq.ForeignKey.fetchChildren.

Doc from org.jooq.ForeignKey.fetchChildren.

Fetch child records of a given set of records through this foreign key

This returns childs record referencing any record in a given set of records through this foreign key, as if fetching from children(Collection).

Annotations
@Override
fetchParentback to summary
public final O fetchParent(R record)

Implements org.jooq.ForeignKey.fetchParent.

Doc from org.jooq.ForeignKey.fetchParent.

Fetch a parent record of a given record through this foreign key

This returns a parent record referenced by a given record through this foreign key, as if fetching from parent(Record). If no parent record was found, this returns null

Annotations
@Override
fetchParentsback to summary
public final Result<O> fetchParents(R... records)

Implements org.jooq.ForeignKey.fetchParents.

Doc from org.jooq.ForeignKey.fetchParents.

Fetch parent records of a given set of record through this foreign key

This returns parent records referenced by any record in a given set of records through this foreign key, as if fetching from parents(Record...).

Annotations
@Override
@SafeVarargs
fetchParentsback to summary
public final Result<O> fetchParents(Collection<? extends R> records)

Implements org.jooq.ForeignKey.fetchParents.

Doc from org.jooq.ForeignKey.fetchParents.

Fetch parent records of a given set of record through this foreign key

This returns parent records referenced by any record in a given set of records through this foreign key, as if fetching from parents(Collection).

Annotations
@Override
getKeyback to summary
public final UniqueKey<O> getKey()

Implements org.jooq.ForeignKey.getKey.

Doc from org.jooq.ForeignKey.getKey.

The referenced UniqueKey.

Annotations
@Override
getKeyFieldsback to summary
public final List<TableField<O, ?>> getKeyFields()

Implements org.jooq.ForeignKey.getKeyFields.

Doc from org.jooq.ForeignKey.getKeyFields.

The fields that make up the referenced UniqueKey.

This returns the order in which the fields of getKey() are referenced, which is usually the same as the fields of UniqueKey#getFields(), but not necessarily so.

Annotations
@Override
getKeyFieldsArrayback to summary
public final TableField<O, ?>[] getKeyFieldsArray()

Implements org.jooq.ForeignKey.getKeyFieldsArray.

Doc from org.jooq.ForeignKey.getKeyFieldsArray.

Deprecated

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

The fields that make up the referenced UniqueKey.

This returns the order in which the fields of getKey() are referenced, which is usually the same as the fields of UniqueKey#getFieldsArray(), but not necessarily so.

Annotations
@Override
parentback to summary
public final Table<O> parent(R record)

Implements org.jooq.ForeignKey.parent.

Doc from org.jooq.ForeignKey.parent.

Get a table expression representing the parent of a record, given this foreign key.

Annotations
@Override
parentsback to summary
public final Table<O> parents(R... records)

Implements org.jooq.ForeignKey.parents.

Doc from org.jooq.ForeignKey.parents.

Get a table expression representing the parents of a record, given this foreign key.

Annotations
@SafeVarargs
@Override
parentsback to summary
public final Table<O> parents(Collection<? extends R> records)

Implements org.jooq.ForeignKey.parents.

Doc from org.jooq.ForeignKey.parents.

Get a table expression representing the parents of a record, given this foreign key.

Annotations
@Override
tableback to summary
private static <R1 extends Record, R2 extends Record> Table<R1> table(Collection<? extends R2> records, Table<R1> table, TableField<R1, ?>[] fields1, TableField<R2, ?>[] fields2)

Deprecated

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

Annotations
@SuppressWarnings:unchecked
truncateback to summary
private static <R extends Record> TableField<R, ?>[] truncate(TableField<R, ?>[] fields1, TableField<?, ?>[] fields2)

Deprecated

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