Package-level declarations
Types
Link copied to clipboard
In the order of the constructor arguments.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PropertyColumnMappingConfig<P>(type: KType, val skip: Boolean = false, val customMapper: NullableDataMapper<P>? = null, usedForQuery: Boolean = true, val columnPropertyName: String? = null, val whetherNullDependentColumn: Column<*>? = null, val adt: PropertyColumnMappingConfig.Adt<P & Any>? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ReflectionBasedClassPropertyDataMapper<Data : Any>(val fullConcreteTypeClass: FullConcreteTypeClass<Data>, val classPropertyColumnMappings: ClassPropertyColumnMappings<Data>) : DataMapper<Data>
Supports classes with nested composite class properties and multiple tables
Link copied to clipboard
Nested classes are not supported.
Link copied to clipboard
class ReflectionFunctionInvocationException(constructor: KFunction<*>, args: Any?, cause: Throwable) : Exception
Link copied to clipboard
class SumTypeCaseConfig<SuperclassData : Any, CaseValue>(val caseValueColumn: Column<CaseValue>, val caseValueKClassConversion: BidirectionalConversion<CaseValue, KClass<out SuperclassData>>)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getColumnByPropertyNameMap(tables: List<Table>, onDuplicateColumnPropertyNames: OnDuplicateColumnPropertyNames = CHOOSE_FIRST): Map<String, Column<*>>
Link copied to clipboard
inline fun <TableT : Table> getColumnByPropertyNameMapWithTypeParameter(table: TableT): Map<String, Column<*>>
Link copied to clipboard
fun <TableT : Table> getColumnProperties(clazz: KClass<TableT>): Sequence<KProperty1<TableT, Column<*>>>
Link copied to clipboard
fun <TableT : Table> getColumnPropertyByNameMap(clazz: KClass<TableT>): Map<String, KProperty1<TableT, Column<*>>>
Link copied to clipboard
Link copied to clipboard
fun getColumnsWithPropertyNamesWithoutTypeParameter(table: Table, clazz: KClass<out Table> = table::class): Sequence<ColumnWithPropertyName>
Link copied to clipboard
fun <Data : Any> getDefaultClassPropertyColumnMappings(fullConcreteTypeClass: FullConcreteTypeClass<Data>, tables: List<Table>, onDuplicateColumnPropertyNames: OnDuplicateColumnPropertyNames = CHOOSE_FIRST, propertyColumnMappingConfigMapOverride: PropertyColumnMappingConfigMap<Data> = emptyMap(), customMappings: PropertyColumnMappings<Data> = emptyList()): ClassPropertyColumnMappings<Data>
Link copied to clipboard
Link copied to clipboard
inline fun <Data : Any> reflectionBasedClassPropertyDataMapper(join: Join, propertyColumnMappingConfigMapOverride: PropertyColumnMappingConfigMap<Data> = emptyMap(), customMappings: PropertyColumnMappings<Data> = emptyList()): ReflectionBasedClassPropertyDataMapper<Data>
A shortcut for Joins.
inline fun <Data : Any> reflectionBasedClassPropertyDataMapper(table: Table, propertyColumnMappingConfigMapOverride: PropertyColumnMappingConfigMap<Data> = emptyMap(), customMappings: PropertyColumnMappings<Data> = emptyList()): ReflectionBasedClassPropertyDataMapper<Data>
inline fun <Data : Any> reflectionBasedClassPropertyDataMapper(tables: List<Table>, onDuplicateColumnPropertyNames: OnDuplicateColumnPropertyNames = CHOOSE_FIRST, propertyColumnMappingConfigMapOverride: PropertyColumnMappingConfigMap<Data> = emptyMap(), customMappings: PropertyColumnMappings<Data> = emptyList()): ReflectionBasedClassPropertyDataMapper<Data>
Link copied to clipboard
inline fun <Data : Any, TableT : Table> reflectionBasedSimpleClassPropertyDataMapper(table: TableT): ReflectionBasedSimpleClassPropertyDataMapper<Data>
Link copied to clipboard
inline fun <Data : Any, TableT : Table> reflectionBasedSimpleClassPropertyDataMapperForAlias(tableDataMapper: ReflectionBasedSimpleClassPropertyDataMapper<Data>, alias: Alias<TableT>): ReflectionBasedSimpleClassPropertyDataMapper<Data>
Link copied to clipboard
fun <Data : Any> setUpdateBuilder(classPropertyColumnMappings: ClassPropertyColumnMappings<Data>, data: Data, updateBuilder: UpdateBuilder<*>)
Link copied to clipboard
Link copied to clipboard
fun setUpdateBuilderColumnsToNullsWithMappings(classPropertyColumnMappings: ClassPropertyColumnMappings<*>, updateBuilder: UpdateBuilder<*>)
Link copied to clipboard
This is a workaround for a column that is possibly an EntityID. It seems needed since Exposed 0.53.0.