AttributeConverter.
This is particularly useful when generating code from a
JPADatabase, which reverse engineers JPA annotated entities, in
case of which, by default, the AttributeConverter annotations are
discovered automatically and the user-defined type is applied also in the
jOOQ meta model.
| Modifier and Type | Field and Description |
|---|---|
| private final AttributeConverter | |
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final U | from(T
The database object. t, ConverterContext The context of this conversion. scope)Implements org. |
| private static final <T> Class | |
| public final T | to(U
The user object. u, ConverterContext The context of this conversion. scope)Implements org. |
| private static final <U> Class |
| delegate | back to summary |
|---|---|
| private final AttributeConverter<U, T> delegate | |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| JPAConverter | back to summary |
|---|---|
| public JPAConverter(Class<? extends AttributeConverter<U, T>> klass) | |
| from | back to summary |
|---|---|
| public final U from(T t, ConverterContext scope) Implements org. Doc from org. Read and convert a database object to a user object.
| |
| fromType | back to summary |
|---|---|
private static final <T> Class
| |
| to | back to summary |
|---|---|
| public final T to(U u, ConverterContext scope) Implements org. Doc from org. Convert and write a user object to a database object.
| |
| toType | back to summary |
|---|---|
private static final <U> Class
| |