mirror of https://github.com/apache/openjpa.git
OPENJPA-1895: Minor performance improvement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
406710b477
commit
06f8dc4c96
|
@ -125,12 +125,16 @@ public class JDBCStoreManager
|
|||
try {
|
||||
clientConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ClientConnection.class,
|
||||
Connection.class);
|
||||
clientConnectionImpl.setAccessible(true);
|
||||
refCountConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(RefCountConnection.class,
|
||||
JDBCStoreManager.class, Connection.class);
|
||||
refCountConnectionImpl.setAccessible(true);
|
||||
cancelStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelStatement.class,
|
||||
JDBCStoreManager.class, Statement.class, Connection.class);
|
||||
cancelStatementImpl.setAccessible(true);
|
||||
cancelPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelPreparedStatement.class,
|
||||
JDBCStoreManager.class, PreparedStatement.class, Connection.class);
|
||||
cancelPreparedStatementImpl.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public class ConfiguringConnectionDecorator implements ConnectionDecorator {
|
|||
try {
|
||||
configuringConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ConfiguringConnection.class,
|
||||
ConfiguringConnectionDecorator.class, Connection.class);
|
||||
configuringConnectionImpl.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ public abstract class DelegatingPreparedStatement
|
|||
try {
|
||||
concreteImpl = ConcreteClassGenerator.getConcreteConstructor(DelegatingPreparedStatement.class,
|
||||
PreparedStatement.class, Connection.class);
|
||||
concreteImpl.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
|
|
|
@ -99,21 +99,27 @@ public class LoggingConnectionDecorator implements ConnectionDecorator {
|
|||
try {
|
||||
loggingConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(LoggingConnection.class,
|
||||
LoggingConnectionDecorator.class, Connection.class);
|
||||
loggingConnectionImpl.setAccessible(true);
|
||||
loggingResultSetImpl = ConcreteClassGenerator.getConcreteConstructor(
|
||||
LoggingConnection.LoggingResultSet.class,
|
||||
LoggingConnection.class, ResultSet.class, Statement.class);
|
||||
loggingResultSetImpl.setAccessible(true);
|
||||
loggingStatementImpl = ConcreteClassGenerator.getConcreteConstructor(
|
||||
LoggingConnection.LoggingStatement.class,
|
||||
LoggingConnection.class, Statement.class);
|
||||
loggingStatementImpl.setAccessible(true);
|
||||
loggingPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor(
|
||||
LoggingConnection.LoggingPreparedStatement.class,
|
||||
LoggingConnection.class, PreparedStatement.class, String.class);
|
||||
loggingPreparedStatementImpl.setAccessible(true);
|
||||
loggingCallableStatementImpl = ConcreteClassGenerator.getConcreteConstructor(
|
||||
LoggingConnection.LoggingCallableStatement.class,
|
||||
LoggingConnection.class, CallableStatement.class, String.class);
|
||||
loggingCallableStatementImpl.setAccessible(true);
|
||||
loggingDatabaseMetaDataImpl = ConcreteClassGenerator.getConcreteConstructor(
|
||||
LoggingConnection.LoggingDatabaseMetaData.class,
|
||||
LoggingConnection.class, DatabaseMetaData.class);
|
||||
loggingDatabaseMetaDataImpl.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue