@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { try (Connection connection = dataSource.getConnection()) { Account account = findAccountByCreditCard(creditCardNumber, connection); loadAccountObjectives(account, connection); return account; } catch (SQLException e) { throw new RuntimeException("Error in findByCreditCard!", e); } }
@Override public Account findByCreditCard(String creditCardNumber) { Account account = findAccountByCreditCard(creditCardNumber); loadAccountObjectives(account); return account; }