CompositeMoneyColumn

class CompositeMoneyColumn<T1 : BigDecimal?, T2 : CurrencyUnit?, R : MonetaryAmount?>(val amount: Column<T1>, val currency: Column<T2>, nullable: Boolean = false) : BiCompositeColumn<T1, T2, R>

Represents amount of money and currency using Java Money API. Data is stored using two composite columns.

Author

Vladislav Kisel

Constructors

Link copied to clipboard
constructor(amount: Column<T1>, currency: Column<T2>, nullable: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val transformFromValue: (R) -> Pair<T1?, T2?>
Link copied to clipboard
val transformToValue: (Any?, Any?) -> R

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getRealColumns(): List<Column<*>>
Link copied to clipboard
open override fun getRealColumnsWithValues(compositeValue: R): Map<Column<*>, Any?>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun <T1 : BigDecimal, T2 : CurrencyUnit, R : MonetaryAmount> CompositeMoneyColumn<T1, T2, R>.nullable(): CompositeMoneyColumn<T1?, T2?, R?>

Marks this CompositeMoneyColumn as nullable.

Link copied to clipboard
open override fun restoreValueFromParts(parts: Map<Column<*>, Any?>): R
Link copied to clipboard
open override fun toQueryBuilder(queryBuilder: QueryBuilder)
Link copied to clipboard
open override fun toString(): String