This is an automated email from the ASF dual-hosted git repository. struberg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openjpa.git
commit b484ee1f229fa2732251a1e0682000becaefcca6 Author: Mark Struberg <[email protected]> AuthorDate: Thu Feb 14 10:03:04 2019 +0100 add missing delegate method for Java8 support --- .../org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java index 968dc94..728197d 100644 --- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java +++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java @@ -59,7 +59,7 @@ public class DelegatingPreparedStatement private /*final*/ Connection _conn; public DelegatingPreparedStatement(PreparedStatement stmnt, Connection conn) { - initialize(stmnt, conn); + initialize(stmnt, conn); } public void initialize(PreparedStatement stmnt, Connection conn) { @@ -664,11 +664,11 @@ public class DelegatingPreparedStatement @Override public boolean isCloseOnCompletion() throws SQLException{ - throw new UnsupportedOperationException(); + return _stmnt.isCloseOnCompletion(); } @Override public void closeOnCompletion() throws SQLException{ - throw new UnsupportedOperationException(); + _stmnt.closeOnCompletion(); } }
