Join

class Join(val table: ColumnSet) : ColumnSet

Represents a join relation between multiple column sets.

Constructors

Link copied to clipboard
constructor(    table: ColumnSet,     otherTable: ColumnSet,     joinType: JoinType = JoinType.INNER,     onColumn: Expression<*>? = null,     otherColumn: Expression<*>? = null,     lateral: Boolean = false,     additionalConstraint: SqlExpressionBuilder.() -> Op<Boolean>? = null)
constructor(table: ColumnSet)

Properties

Link copied to clipboard
open override val columns: List<Column<*>>

Returns the columns of this column set.

Link copied to clipboard
open override val fields: List<Expression<*>>

Returns the field of this field set.

Link copied to clipboard

Returns the most recent QueryAlias instance used to create this join relation, or null if a query was not joined.

Link copied to clipboard
open val realFields: List<Expression<*>>

Returns all real fields, unrolling composite CompositeColumn if present

Link copied to clipboard
open override val source: ColumnSet

Return the column set that contains this field set.

Link copied to clipboard

The column set to which others will be joined.

Functions

Link copied to clipboard

Return true if the specified table is already in this join, false otherwise.

Link copied to clipboard
open infix override fun crossJoin(otherTable: ColumnSet): Join

Creates a cross join relation with otherTable.

Link copied to clipboard
open override fun describe(s: Transaction, queryBuilder: QueryBuilder)

Appends the SQL representation of this column set to the specified queryBuilder.

Link copied to clipboard
open infix override fun fullJoin(otherTable: ColumnSet): Join

Creates a full outer join relation with otherTable.

Link copied to clipboard
open infix override fun innerJoin(otherTable: ColumnSet): Join

Creates an inner join relation with otherTable.

Link copied to clipboard
open override fun join(    otherTable: ColumnSet,     joinType: JoinType,     onColumn: Expression<*>?,     otherColumn: Expression<*>?,     lateral: Boolean,     additionalConstraint: SqlExpressionBuilder.() -> Op<Boolean>?): Join

Creates a join relation with otherTable. When all joining options are absent Exposed will try to resolve referencing columns by itself.

Link copied to clipboard
fun Join.joinQuery(    on: SqlExpressionBuilder.(QueryAlias) -> Op<Boolean>? = null,     joinType: JoinType = JoinType.INNER,     lateral: Boolean = false,     joinPart: () -> AbstractQuery<*>): Join

Creates a join relation with a query.

Link copied to clipboard
open infix override fun leftJoin(otherTable: ColumnSet): Join

Creates a left outer join relation with otherTable.

Link copied to clipboard
open infix override fun rightJoin(otherTable: ColumnSet): Join

Creates a right outer join relation with otherTable.

Link copied to clipboard

Returns the list of tables to which the columns in this column set belong.