public static JdbcType stringToJdbcType(String type) { try { return JdbcType.valueOf(type); } catch (IllegalArgumentException ex) { return JdbcType.OTHER; // db specific type } }
static { for (JdbcType type : JdbcType.values()) { map.put(type.order, type); } }