Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class TupleImpl2<Q1 extends org.jooq.QueryPart, Q2 extends org.jooq.QueryPart>

extends AbstractQueryPart
implements QOM.Tuple2<Q1 extends QueryPart, Q2 extends QueryPart>
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.Tuple2, org.jooq.QueryPart, java.io.Serializable
Static Imports
org.jooq.impl.QOM.tuple

A generic tuple of degree 2, which acts as a QueryPart for traversal, replacement, etc.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final Q1
private final Q2

Constructor Summary

AccessConstructor and Description
pack-priv
TupleImpl2(Q1 part1, Q2 part2)

Method Summary

Modifier and TypeMethod and Description
public final Q1
$1()

Implements org.jooq.impl.QOM.Tuple2.$1.

The first value in the tuple.
public final QOM.Tuple2<Q1, Q2>
$1(Q1 newPart1)

Implements org.jooq.impl.QOM.Tuple2.$1.

Set the first value in the tuple.
public final Q2
$2()

Implements org.jooq.impl.QOM.Tuple2.$2.

The second value in the tuple.
public final QOM.Tuple2<Q1, Q2>
$2(Q2 newPart2)

Implements org.jooq.impl.QOM.Tuple2.$2.

Set the second value in the tuple.
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.
public boolean
equals(Object
The other QueryPart
obj
)

Overrides org.jooq.impl.AbstractQueryPart.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public int
hashCode()

Overrides org.jooq.impl.AbstractQueryPart.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
Inherited from org.jooq.impl.AbstractQueryPart:
clausesconfigurationcreatecreatecreatedeclaresCTEdeclaresFieldsdeclaresTablesdeclaresWindowsgeneratesCastrendersContenttoStringtranslate

Field Detail

part1back to summary
private final Q1 part1
part2back to summary
private final Q2 part2

Constructor Detail

TupleImpl2back to summary
pack-priv TupleImpl2(Q1 part1, Q2 part2)

Method Detail

$1back to summary
public final Q1 $1()

Implements org.jooq.impl.QOM.Tuple2.$1.

Doc from org.jooq.impl.QOM.Tuple2.$1.

The first value in the tuple.

Annotations
@Override
$1back to summary
public final QOM.Tuple2<Q1, Q2> $1(Q1 newPart1)

Implements org.jooq.impl.QOM.Tuple2.$1.

Doc from org.jooq.impl.QOM.Tuple2.$1.

Set the first value in the tuple.

Annotations
@Override
$2back to summary
public final Q2 $2()

Implements org.jooq.impl.QOM.Tuple2.$2.

Doc from org.jooq.impl.QOM.Tuple2.$2.

The second value in the tuple.

Annotations
@Override
$2back to summary
public final QOM.Tuple2<Q1, Q2> $2(Q2 newPart2)

Implements org.jooq.impl.QOM.Tuple2.$2.

Doc from org.jooq.impl.QOM.Tuple2.$2.

Set the second value in the tuple.

Annotations
@Override
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
equalsback to summary
public boolean equals(Object obj)

Overrides org.jooq.impl.AbstractQueryPart.equals.

Implements org.jooq.QueryPart.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
obj:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jooq.impl.AbstractQueryPart.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