public class CalendarConverter extends AbstractDateConverter<Calendar>
EntityClass to SQL.| Constructor and Description |
|---|
CalendarConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of
CalendarConverter. |
CalendarConverter(javax.persistence.TemporalType type)
Creates a new instance of
CalendarConverter. |
| Modifier and Type | Method and Description |
|---|---|
ColumnExpression |
getExpression(Calendar value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
getExpression, getExpressionpublic CalendarConverter(AttributeAccessor attribute, boolean mapKey)
CalendarConverter.attribute - the inspected attributemapKey - indicates that the converter is used for the key of a map propertypublic CalendarConverter(javax.persistence.TemporalType type)
CalendarConverter.type - the temporal type of the propertypublic ColumnExpression getExpression(Calendar value, GeneratorContext context)
ValueConvertervalue - the current valuecontext - the current context (contains the database dialect).Copyright © 2022 fastnate.org. All rights reserved.