IntEntityClass
Base class representing the EntityClass that manages IntEntity instances and maintains their relation to the provided table.
Parameters
The IdTable object that stores rows mapped to entities of this class.
The expected IntEntity type. This can be left null
if it is the class of type argument E provided to this IntEntityClass instance. If this IntEntityClass
is defined as a companion object of a custom IntEntity
class, the parameter will be set to this immediately enclosing class by default.
The function invoked to instantiate an IntEntity using a provided EntityID value. If a reference to a specific constructor or a custom function is not passed as an argument, reflection will be used to determine the primary constructor of the associated entity class on first access. If this IntEntityClass
is defined as a companion object of a custom IntEntity
class, the constructor will be set to that of the immediately enclosing class by default.
Samples
org.jetbrains.exposed.sql.tests.shared.DDLTests.testDropTableFlushesCacheorg.jetbrains.exposed.sql.tests.shared.entities.EntityTests.testExplicitEntityConstructorConstructors
Properties
The columns that this EntityClass depends on when maintaining relations with managed Entity instances.
The IdTable that this EntityClass depends on when maintaining relations with managed Entity instances.
Functions
Gets all the Entity instances associated with this EntityClass.
Registers a reference as an immutable field of the parent entity class, which returns a child object of this EntityClass
.
Searches the current EntityCache for all Entity instances that match the provided cacheCheckCondition. If the cache returns no matches, entities that conform to the provided op conditional expression will be retrieved from the database.
Returns a SizedIterable containing all entities with EntityID values from the provided ids list.
Returns a SizedIterable containing all entities with id values from the provided ids list.
Returns whether the entityClass type is equivalent to or a superclass of this EntityClass instance's klass.
Returns a EntityFieldWithTransform delegate that will cache the transformed value on first read of this same stored Unwrapped value.
Returns a EntityFieldWithTransform that extends transformation of existing EntityFieldWithTransform and caches the transformed value on first read.
Registers an optional reference as an immutable field of the parent entity class, which returns a child object of this EntityClass
.
Registers an optional reference as a field of the child entity class, which returns a parent object of this EntityClass
.
Registers an optional reference as an immutable field of the parent entity class, which returns a collection of child objects of this EntityClass
that all reference the parent.
Registers a reference as an immutable field of the parent entity class, which returns a collection of child objects of this EntityClass
that all reference the parent.
Removes the specified entity from the current EntityCache, as well as any stored references to or from the removed entity.
Returns a Query to select all columns in dependsOnTables with a WHERE clause that includes the provided op conditional expression.
Searches the current EntityCache for all Entity instances that match the provided cacheCheckCondition.
Searches the current EntityCache for an Entity by its EntityID value.
Returns a EntityFieldWithTransform delegate that transforms this stored Unwrapped value on every read.
Returns a EntityFieldWithTransform that extends transformation of existing EntityFieldWithTransform.
Returns a list of retrieved Entity instances whose reference column matches any of the EntityID values in references. Both the entity's source and target reference columns should have been defined in linkTable.
Returns a SizedIterable containing entities generated using data retrieved from a database result set in rows.