public class EnumMappingTableService extends Object
EnumMappingTable enums.
Basing on the settings it implements two-side correspondence between java
enum classes and database table representations.
EnumMappingTableService uses JULI Logger for logging.
Level.INFO will log both successful modification of java enum or
database table representations basing on EnumMapping.
Level.WARNING will log errors encountered during modification of
java enum or database table representations. It will also log the
inconsistency between java enum and database table representations that one
must treat accordingly, best of which should be to rewrite the java code or
modify the database tables in a way that such warnings are not generated and
the application will have one-to-one correspondence between java enum and
database table representations right from the start.
EnumMapping,
EnumMappingTable| Constructor and Description |
|---|
EnumMappingTableService() |
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Enum<?>>,Boolean> |
computeModifiedEnumMappingTable(List<Class<? extends Enum<?>>> enumsToUpdate) |
static Optional<Object> |
getEnumConstructorAccessor(Class<? extends Enum<?>> enumeratedType) |
Copyright © 2015–2020 OmniFaces. All rights reserved.