Mercurial > hg > monetdb-java
diff src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @ 164:7c9e386fe49a
As of Java 1.7 implementations of JDBC interfaces Connection, Statement, PreparedStatement,
CallableStatement and ResulSet must implement the AutoCloseable interface with method close().
This method is invoked automatically on objects managed by the try-with-resources statement.
See http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html
http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html
http://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html
http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html
http://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html
http://docs.oracle.com/javase/7/docs/api/java/sql/CallableStatement.html
http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 07 Sep 2017 17:15:41 +0200 (2017-09-07) |
parents | 352b54ff0436 |
children | 60063c67f9e7 8700d9ef2ace |
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @@ -66,7 +66,10 @@ import java.util.TimeZone; * @author Fabian Groffen, Martin van Dinther * @version 0.8 */ -public class MonetResultSet extends MonetWrapper implements ResultSet { +public class MonetResultSet + extends MonetWrapper + implements ResultSet, AutoCloseable +{ // the following have default access modifier for the MonetVirtualResultSet subclass /** The current line of the buffer split in columns */ final TupleLineParser tlp;