English | 简体中文

api-docs / me.liuwj.ktorm.entity / Entity / Factory

Factory

abstract class Factory<E : Entity<E>> : TypeReference<E> (source code)

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

Constructors

NameSummary

<init>

Factory()

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

Inherited 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.

Functions

NameSummary

invoke

operator fun invoke(): E

Overload the invoke operator, creating an entity object just like there is a constructor.

operator fun invoke(init: E.() -> Unit): E

Overload the invoke operator, creating an entity object and call the init function.