class DBAccessorImpl implements DBAccessor {

  private static Class<?> fromSqlTypeToClass(int type) {
    switch (type) {
      case Types.VARCHAR:
      case Types.CHAR:
      case Types.LONGVARCHAR:
        return String.class;
      case Types.NUMERIC:
      case Types.DECIMAL:
        return BigDecimal.class;
      case Types.BIT:
        return Boolean.class;
      case Types.TINYINT:
        return Byte.class;
      case Types.SMALLINT:
        return Short.class;
      case Types.INTEGER:
        return Integer.class;
      case Types.BIGINT:
        return Long.class;
      case Types.FLOAT:
      case Types.REAL:
        return Float.class;
      case Types.DOUBLE:
        return Double.class;
      case Types.BINARY:
      case Types.VARBINARY:
      case Types.LONGVARBINARY:
        return Byte[].class;
      case Types.DATE:
        return java.sql.Date.class;
      case Types.TIME:
        return java.sql.Timestamp.class;
      default:
        return null;
    }
  }

  @Inject public  DBAccessorImpl(Configuration configuration);

}