Juan Hernandez has uploaded a new change for review.

Change subject: core: Remove PGHack
......................................................................

core: Remove PGHack

This is no longer needed.

Change-Id: Id3ebd70516f427172ad206ad204ac95ec2a5a29f
Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com>
---
D 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java
1 file changed, 0 insertions(+), 73 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/9578/1

diff --git 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java
 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java
deleted file mode 100644
index 941a63a..0000000
--- 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package org.ovirt.engine.core.dal.dbbroker;
-
-import java.io.PrintWriter;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.sql.SQLFeatureNotSupportedException;
-import java.util.logging.Logger;
-
-import javax.sql.DataSource;
-
-public class PGHack implements DataSource {
-
-    DataSource real;
-
-    public PGHack(DataSource d) {
-        this.real = d;
-    }
-
-    @Override
-    public Connection getConnection() throws SQLException {
-        Connection conn = real.getConnection();
-        conn.setAutoCommit(false);
-        return conn;
-    }
-
-    @Override
-    public Connection getConnection(String username, String password) throws 
SQLException {
-        Connection conn = real.getConnection(username, password);
-        conn.setAutoCommit(false);
-        return conn;
-    }
-
-    @Override
-    public PrintWriter getLogWriter() throws SQLException {
-        return real.getLogWriter();
-    }
-
-    @Override
-    public int getLoginTimeout() throws SQLException {
-        return real.getLoginTimeout();
-    }
-
-    @Override
-    public void setLogWriter(PrintWriter out) throws SQLException {
-        real.setLogWriter(out);
-
-    }
-
-    @Override
-    public void setLoginTimeout(int seconds) throws SQLException {
-        real.setLoginTimeout(seconds);
-
-    }
-
-    @Override
-    public boolean isWrapperFor(Class<?> iface) throws SQLException {
-        return real.isWrapperFor(iface);
-    }
-
-    @Override
-    public <T> T unwrap(Class<T> iface) throws SQLException {
-        return real.unwrap(iface);
-    }
-
-    // In Java 7 the override annotation should be uncommented.
-    // @Override
-    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
-        // This is needed while building with Java 6:
-        // return real.getParentLogger();
-        throw new SQLFeatureNotSupportedException();
-    }
-
-}


--
To view, visit http://gerrit.ovirt.org/9578
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3ebd70516f427172ad206ad204ac95ec2a5a29f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to