Commit e5cac8e2d3d3ff3b4fe3c059ebfacad49a881d58

Authored by Cleverson Sacramento
1 parent 276e2ae5
Exists in master

FWK-219: Compatibilidade com o Java SE 7

Task-Url: https://demoiselle.atlassian.net/browse/FWK-219
impl/extension/jdbc/src/main/java/br/gov/frameworkdemoiselle/internal/proxy/ConnectionProxy.java
@@ -54,6 +54,7 @@ import java.sql.Statement; @@ -54,6 +54,7 @@ import java.sql.Statement;
54 import java.sql.Struct; 54 import java.sql.Struct;
55 import java.util.Map; 55 import java.util.Map;
56 import java.util.Properties; 56 import java.util.Properties;
  57 +import java.util.concurrent.Executor;
57 58
58 import br.gov.frameworkdemoiselle.internal.producer.ConnectionProducer; 59 import br.gov.frameworkdemoiselle.internal.producer.ConnectionProducer;
59 import br.gov.frameworkdemoiselle.util.Beans; 60 import br.gov.frameworkdemoiselle.util.Beans;
@@ -63,7 +64,7 @@ public class ConnectionProxy implements Connection, Serializable { @@ -63,7 +64,7 @@ public class ConnectionProxy implements Connection, Serializable {
63 private static final long serialVersionUID = 1L; 64 private static final long serialVersionUID = 1L;
64 65
65 private final String dataSourceName; 66 private final String dataSourceName;
66 - 67 +
67 public ConnectionProxy(String dataSourceName) { 68 public ConnectionProxy(String dataSourceName) {
68 this.dataSourceName = dataSourceName; 69 this.dataSourceName = dataSourceName;
69 } 70 }
@@ -272,5 +273,28 @@ public class ConnectionProxy implements Connection, Serializable { @@ -272,5 +273,28 @@ public class ConnectionProxy implements Connection, Serializable {
272 public <T> T unwrap(Class<T> iface) throws SQLException { 273 public <T> T unwrap(Class<T> iface) throws SQLException {
273 return getDelegate().unwrap(iface); 274 return getDelegate().unwrap(iface);
274 } 275 }
275 - 276 +
  277 + @Override
  278 + public void abort(Executor executor) throws SQLException {
  279 + }
  280 +
  281 + @Override
  282 + public int getNetworkTimeout() throws SQLException {
  283 + return getDelegate().getNetworkTimeout();
  284 + }
  285 +
  286 + @Override
  287 + public String getSchema() throws SQLException {
  288 + return getDelegate().getSchema();
  289 + }
  290 +
  291 + @Override
  292 + public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
  293 + getDelegate().setNetworkTimeout(executor, milliseconds);
  294 + }
  295 +
  296 + @Override
  297 + public void setSchema(String schema) throws SQLException {
  298 + getDelegate().setSchema(schema);
  299 + }
276 } 300 }