T
- the type of the attributeC
- the type of the database columnpublic class CustomValueConverter<T,C> extends Object implements ValueConverter<T>
AttributeConverter
.Modifier and Type | Field and Description |
---|---|
private javax.persistence.AttributeConverter<T,C> |
customConverter |
private ValueConverter<C> |
valueConverter |
Constructor and Description |
---|
CustomValueConverter(javax.persistence.AttributeConverter<T,C> customConverter,
ValueConverter<C> valueConverter) |
Modifier and Type | Method and Description |
---|---|
ColumnExpression |
getExpression(T value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression
private final ValueConverter<C> valueConverter
@ConstructorProperties(value={"customConverter","valueConverter"}) @Generated(value="lombok") public CustomValueConverter(javax.persistence.AttributeConverter<T,C> customConverter, ValueConverter<C> valueConverter)
public ColumnExpression getExpression(T value, GeneratorContext context)
ValueConverter
getExpression
in interface ValueConverter<T>
value
- the current valuecontext
- the current context (contains the database dialect).Copyright © 2022 fastnate.org. All rights reserved.