mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#376 - Refactor - Remove PstmtDelegate ... that was used to access the underlying oracle specific PreparedStatement
This commit is contained in:
1 parent
e6f779268a
commit
0612d89e9a
5 files changed
-80
No files matched your search
@@ -8,7 +8,6 @@ import com.avaje.ebean.common.SpiContainer;
|
||||
import com.avaje.ebean.config.ContainerConfig;
|
||||
import com.avaje.ebean.config.DataSourceConfig;
|
||||
import com.avaje.ebean.config.PropertyMap;
|
||||
import com.avaje.ebean.config.PstmtDelegate;
|
||||
import com.avaje.ebean.config.ServerConfig;
|
||||
import com.avaje.ebean.config.UnderscoreNamingConvention;
|
||||
import com.avaje.ebean.config.dbplatform.DatabasePlatform;
|
||||
@@ -17,7 +16,6 @@ import com.avaje.ebeaninternal.api.SpiEbeanServer;
|
||||
import com.avaje.ebeaninternal.server.cache.DefaultServerCacheFactory;
|
||||
import com.avaje.ebeaninternal.server.cache.DefaultServerCacheManager;
|
||||
import com.avaje.ebeaninternal.server.cluster.ClusterManager;
|
||||
import com.avaje.ebeaninternal.server.jdbc.StandardPstmtDelegate;
|
||||
import com.avaje.ebeaninternal.server.lib.ShutdownManager;
|
||||
import com.avaje.ebeaninternal.server.lib.sql.DataSourceAlert;
|
||||
import com.avaje.ebeaninternal.server.lib.sql.DataSourcePool;
|
||||
@@ -175,16 +173,6 @@ public class DefaultContainer implements SpiContainer {
|
||||
}
|
||||
}
|
||||
|
||||
private PstmtDelegate getOraclePstmtDelegate(DataSource ds) {
|
||||
|
||||
if (ds instanceof DataSourcePool) {
|
||||
// Using Ebean's own DataSource implementation
|
||||
return new StandardPstmtDelegate();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and return the CacheManager.
|
||||
*/
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.avaje.ebeaninternal.server.jdbc;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
|
||||
import com.avaje.ebean.config.PstmtDelegate;
|
||||
import com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement;
|
||||
|
||||
/**
|
||||
* Implementation of PstmtDelegate from Ebean's own DataSource.
|
||||
*/
|
||||
public class StandardPstmtDelegate implements PstmtDelegate {
|
||||
|
||||
/**
|
||||
* Unwrap the PreparedStatement from Ebean's DataSource implementation.
|
||||
*/
|
||||
public PreparedStatement unwrap(PreparedStatement pstmt) {
|
||||
|
||||
return ((ExtendedPreparedStatement) pstmt).getDelegate();
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
package com.avaje.ebeaninternal.server.jdbc;
|
||||
Reference in new issue
Block a user