English | 简体中文

api-docs / org.ktorm.schema / ColumnBinding

ColumnBinding

sealed class ColumnBinding (source code)

Base class of column bindings. A column might be bound to a simple property, nested properties,
or a reference to another table.

Extension Functions

NameSummary

eq

infix fun <T : Any> T.eq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Equal operator, translated to = in SQL.

neq

infix fun <T : Any> T.neq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.

notEq

infix fun <T : Any> T.notEq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.

Inheritors

NameSummary

NestedBinding

data class NestedBinding : ColumnBinding

Bind the column to nested properties, eg. employee.manager.department.id.

ReferenceBinding

data class ReferenceBinding : ColumnBinding

Bind the column to a reference table, equivalent to a foreign key in relational databases.
Entity sequence APIs would automatically left-join all references (recursively) by default.