1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/DatabaseConnection.java Mon Dec 23 16:19:21 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/DatabaseConnection.java Mon Dec 23 16:29:51 2013 +0100
1.3 @@ -31,7 +31,7 @@
1.4 *
1.5 * @author Ing. František Kučera (frantovo.cz)
1.6 */
1.7 -public class DatabaseConnection {
1.8 +public class DatabaseConnection implements AutoCloseable {
1.9
1.10 private DatabaseDefinition databaseDefinition;
1.11 private Connection connection;
1.12 @@ -114,4 +114,9 @@
1.13 }
1.14
1.15 }
1.16 +
1.17 + @Override
1.18 + public void close() throws SQLException {
1.19 + connection.close();
1.20 + }
1.21 }