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