diff options
Diffstat (limited to 'spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java')
-rw-r--r-- | spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java index e9b9559d..9ce946ee 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseFactory.java @@ -199,43 +199,53 @@ public class EmbeddedDatabaseFactory { this.dataSource = dataSource; } + @Override public Connection getConnection() throws SQLException { return this.dataSource.getConnection(); } + @Override public Connection getConnection(String username, String password) throws SQLException { return this.dataSource.getConnection(username, password); } + @Override public PrintWriter getLogWriter() throws SQLException { return this.dataSource.getLogWriter(); } + @Override public void setLogWriter(PrintWriter out) throws SQLException { this.dataSource.setLogWriter(out); } + @Override public int getLoginTimeout() throws SQLException { return this.dataSource.getLoginTimeout(); } + @Override public void setLoginTimeout(int seconds) throws SQLException { this.dataSource.setLoginTimeout(seconds); } + @Override public <T> T unwrap(Class<T> iface) throws SQLException { return this.dataSource.unwrap(iface); } + @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return this.dataSource.isWrapperFor(iface); } // getParentLogger() is required for JDBC 4.1 compatibility + @Override public Logger getParentLogger() { return Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); } + @Override public void shutdown() { shutdownDatabase(); } |