mirror of https://github.com/apache/openjpa.git
OPENJPA-1285: fix InitializerError in JDBCStoreManager$RefCountConnection.prepareStatement(JDBCStoreManager.java:1543)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba5692da52
commit
c534d29cb7
|
@ -1524,12 +1524,8 @@ public class JDBCStoreManager
|
||||||
|
|
||||||
protected Statement createStatement(int rsType, int rsConcur,
|
protected Statement createStatement(int rsType, int rsConcur,
|
||||||
boolean wrap) throws SQLException {
|
boolean wrap) throws SQLException {
|
||||||
return ConcreteClassGenerator.newInstance
|
return ConcreteClassGenerator.newInstance(cancelStatementImpl, JDBCStoreManager.this,
|
||||||
(cancelStatementImpl,
|
super.createStatement(rsType, rsConcur, false), RefCountConnection.this);
|
||||||
JDBCStoreManager.class, JDBCStoreManager.this,
|
|
||||||
Statement.class,
|
|
||||||
super.createStatement(rsType, rsConcur, false),
|
|
||||||
Connection.class, RefCountConnection.this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected PreparedStatement prepareStatement(String sql, boolean wrap)
|
protected PreparedStatement prepareStatement(String sql, boolean wrap)
|
||||||
|
@ -1542,10 +1538,8 @@ public class JDBCStoreManager
|
||||||
int rsConcur, boolean wrap) throws SQLException {
|
int rsConcur, boolean wrap) throws SQLException {
|
||||||
return ConcreteClassGenerator.newInstance
|
return ConcreteClassGenerator.newInstance
|
||||||
(cancelPreparedStatementImpl,
|
(cancelPreparedStatementImpl,
|
||||||
JDBCStoreManager.class, JDBCStoreManager.this,
|
JDBCStoreManager.this, super.prepareStatement(sql, rsType, rsConcur, false),
|
||||||
PreparedStatement.class,
|
RefCountConnection.this);
|
||||||
super.prepareStatement(sql, rsType, rsConcur, false),
|
|
||||||
Connection.class, RefCountConnection.this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue