Mercurial > hg > monetdb-java
comparison src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java @ 286:d430f8adbf1b
Add keyword "final" to those variables which do not change after first assigment.
In MonetConnection.java corrected size of array (was 7): isSet = new boolean[4];
In MonetPreparedStatement.java removed variable connection as it is already present in superclass MonetStatement (changed it into protected).
In MonetResultSet.java sinplified code for assigning Connection conn and DatabaseMetaData dbmd. It is now done on instantiation. This allows them to become "final".
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 25 Jul 2019 19:04:10 +0200 (2019-07-25) |
parents | 34e3f5d4232b |
children | 2ad7f42f141d 894abb249de1 |
comparison
equal
deleted
inserted
replaced
285:637899bda602 | 286:d430f8adbf1b |
---|---|
24 * | 24 * |
25 * @author Fabian Groffen, Martin van Dinther | 25 * @author Fabian Groffen, Martin van Dinther |
26 * @version 0.7 | 26 * @version 0.7 |
27 */ | 27 */ |
28 public class MonetDatabaseMetaData extends MonetWrapper implements DatabaseMetaData { | 28 public class MonetDatabaseMetaData extends MonetWrapper implements DatabaseMetaData { |
29 private Connection con; | 29 private final Connection con; |
30 | 30 |
31 // Internal cache for 3 server environment values | 31 // Internal cache for 3 server environment values |
32 private String env_current_user; | 32 private String env_current_user; |
33 private String env_monet_version; | 33 private String env_monet_version; |
34 private String env_max_clients; | 34 private String env_max_clients; |