Ejemplo n.º 1
0
  /** Convert a type name (using precision and scale) into a Java class */
  public static DataType<?> getDialectDataType(SQLDialect dialect, String t, int p, int s)
      throws SQLDialectNotSupportedException {
    DataType<?> result = AbstractDataType.getDataType(dialect, normalise(t));

    if (result.getType() == BigDecimal.class) {
      result = AbstractDataType.getDataType(dialect, getClass(Types.NUMERIC, p, s));
    }

    return result;
  }
 @Override
 public final Class<? extends T> getType() {
   return type.getType();
 }