A
- the type of the class attributeB
- the type of the jdbc data columnpublic interface Convertible<A,B>
Note: the implementation must be thread-safe, null-safe and provides a constructor:
public MyConverter(String)
Modifier and Type | Method and Description |
---|---|
ColumnType |
getColumnType() |
Class<A> |
getType() |
A |
toAttribute(B jdbc)
Convert the jdbc value to attribute format or type
|
B |
toJdbc(A attribute)
Convert attribute to jdbc format or type
|
B toJdbc(A attribute)
attribute
- the value of to be convertedA toAttribute(B jdbc)
jdbc
- the value stored at databaseColumnType getColumnType()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.