Ejemplo n.º 1
0
  public SimpleJdbcMapper(String tableName, ConnectionProvider connectionProvider) {
    Validate.notEmpty(tableName);
    Validate.notNull(connectionProvider);

    int queryTimeoutSecs = 30;
    connectionProvider.prepare();
    JdbcClient client = new JdbcClient(connectionProvider, queryTimeoutSecs);
    this.schemaColumns = client.getColumnSchema(tableName);
  }