Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fix for Java 7 #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion src/main/java/uk/co/oliwali/HawkEye/database/JDCConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.sql.Struct;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;

public class JDCConnection implements Connection
{
Expand Down Expand Up @@ -282,6 +283,31 @@ public <T> T unwrap(Class<T> iface) throws SQLException {
return conn.unwrap(iface);
}

@Override
public int getNetworkTimeout() throws SQLException {
return conn.getNetworkTimeout();
}

@Override
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
conn.setNetworkTimeout(executor, milliseconds);
}

@Override
public String getSchema() throws SQLException {
return conn.getSchema();
}

@Override
public void setSchema(String schema) throws SQLException {
conn.setSchema(schema);
}

@Override
public void abort(Executor executor) throws SQLException {
conn.abort(executor);
}

long getLastUse() {
return timestamp;
}
Expand Down Expand Up @@ -311,5 +337,4 @@ void terminate() {
conn.close();
} catch (final SQLException ex) {}
}

}