DefaultValueExpression

data class DefaultValueExpression<T : Any>(val sqlType: SqlType<T>, val isLeafNode: Boolean = true, val extraProperties: Map<String, Any> = emptyMap()) : ScalarExpression<T> (source)

Default value expression, translated to the default keyword in MySQL, used in insert statements.

For example:

insert into table (column1, column2) values (default, ?)

Constructors

Link copied to clipboard
constructor(sqlType: SqlType<T>, isLeafNode: Boolean = true, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
open override val extraProperties: Map<String, Any>
Link copied to clipboard
open override val isLeafNode: Boolean = true
Link copied to clipboard
open override val sqlType: SqlType<T>

Functions

Link copied to clipboard
open override fun aliased(label: String?): ColumnDeclaringExpression<T>
Link copied to clipboard
open override fun asExpression(): ScalarExpression<T>
Link copied to clipboard

MySQL ifnull function, translated to ifnull(left, right).

Link copied to clipboard

MySQL replace function, translated to replace(str, oldValue, newValue).

Link copied to clipboard

MySQL lower function, translated to lower(str).

Link copied to clipboard

MySQL upper function, translated to upper(str).

Link copied to clipboard
open override fun wrapArgument(argument: T?): ArgumentExpression<T>