X
- the type of the entity attributeY
- the type of the database columnpublic interface AttributeConverter<X,Y>
Modifier and Type | Method and Description |
---|---|
Y |
convertToDatabaseColumn(X attribute)
Converts the value stored in the entity attribute into the
data representation to be stored in the database.
|
X |
convertToEntityAttribute(Y dbData)
Converts the data stored in the database column into the
value to be stored in the entity attribute.
|
Y convertToDatabaseColumn(X attribute)
attribute
- the entity attribute value to be convertedX convertToEntityAttribute(Y dbData)
dbData
type for the corresponding
column for use by the JDBC driver: i.e., persistence providers are
not expected to do such type conversion.dbData
- the data from the database column to be
convertedCopyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.