use of org.jooq.util.jaxb.EnumType in project jOOQ by jOOQ.
the class AbstractDatabase method getConfiguredEnums.
private final List<EnumDefinition> getConfiguredEnums() {
List<EnumDefinition> result = new ArrayList<EnumDefinition>();
for (EnumType enumType : configuredEnumTypes) {
String name = enumType.getName();
DefaultEnumDefinition e = new DefaultEnumDefinition(getSchemata().get(0), name, null, true);
String literals = enumType.getLiterals();
try {
@SuppressWarnings("resource") CSVReader reader = new CSVReader(new StringReader(literals));
e.addLiterals(reader.readNext());
} catch (IOException ignore) {
}
result.add(e);
}
return result;
}
Aggregations