English | 简体中文

api-docs / org.ktorm.schema / TypeReference

TypeReference

abstract class TypeReference<T> (source code)

Base class used to obtain full generic type information by subclassing.

Constructors

NameSummary

<init>

TypeReference()

Base class used to obtain full generic type information by subclassing.

Properties

NameSummary

referencedKotlinType

val referencedKotlinType: KType

The actual kotlin type argument of subclass without erased.

referencedType

val referencedType: Type

The actual type argument of subclass without erased.

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

BaseTable

abstract class BaseTable<E : Any> : TypeReference<E>

Base class of Ktorm’s table objects, represents relational tables in the database.

Factory

abstract class Factory<E : Entity<E>> : TypeReference<E>

Abstract factory used to create entity objects, typically declared as companion objects of entity classes.