mirror of https://github.com/apache/openjpa.git
add missing delegate method for Java8 support
This commit is contained in:
parent
b714dbae18
commit
b484ee1f22
|
@ -59,7 +59,7 @@ public class DelegatingPreparedStatement
|
||||||
private /*final*/ Connection _conn;
|
private /*final*/ Connection _conn;
|
||||||
|
|
||||||
public DelegatingPreparedStatement(PreparedStatement stmnt, Connection conn) {
|
public DelegatingPreparedStatement(PreparedStatement stmnt, Connection conn) {
|
||||||
initialize(stmnt, conn);
|
initialize(stmnt, conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initialize(PreparedStatement stmnt, Connection conn) {
|
public void initialize(PreparedStatement stmnt, Connection conn) {
|
||||||
|
@ -664,11 +664,11 @@ public class DelegatingPreparedStatement
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isCloseOnCompletion() throws SQLException{
|
public boolean isCloseOnCompletion() throws SQLException{
|
||||||
throw new UnsupportedOperationException();
|
return _stmnt.isCloseOnCompletion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void closeOnCompletion() throws SQLException{
|
public void closeOnCompletion() throws SQLException{
|
||||||
throw new UnsupportedOperationException();
|
_stmnt.closeOnCompletion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue