private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }
private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }
private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }
private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }
private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }
private void loadAccountObjectives(Account account, Connection connection) throws SQLException { String sql = "select * " + "from ACCOUNT_OBJECTIVE o " + "where o.ACCOUNT_ID = ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setLong(1, account.getId()); try (ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { account.withObjective(readObjectvieFrom(resultSet)); } } } }