private List<Object> getLastValues(Connection cx, Statement st) throws SQLException { List<Object> last = new ArrayList<>(); for (KeyFetcher fetcher : fetchers) { last.add(fetcher.getLastValue(cx, st)); } return last; }
/** * Returns the last generated value based on the connection. Deprecated, please * use/implement the version taking also the statement as an argument * * @param cx * @return * @throws SQLException */ public Object getLastValue(Connection cx) throws SQLException { return getLastValue(cx, null); }