comparison src/main/java/org/monetdb/jdbc/MonetDriver.java @ 825:23f84ff380c2

Now we have a MonetVersion class use it from MonetDatabaseMetaData also. The 2 static utility methods in MonetDriver (which were only called by MonetDatabaseMetaData)only are not needed anymore.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 20 Dec 2023 17:14:56 +0100 (16 months ago)
parents 4c35009cd59c
children e890195256ac
comparison
equal deleted inserted replaced
824:9b4c7faaa860 825:23f84ff380c2
156 * 156 *
157 * @return this driver's major version number 157 * @return this driver's major version number
158 */ 158 */
159 @Override 159 @Override
160 public int getMajorVersion() { 160 public int getMajorVersion() {
161 // defer to the static version of this method 161 return MonetVersion.majorVersion;
162 return getDriverMajorVersion();
163 } 162 }
164 163
165 /** 164 /**
166 * Gets the driver's minor version number. Initially this should be 0. 165 * Gets the driver's minor version number. Initially this should be 0.
167 * 166 *
168 * @return this driver's minor version number 167 * @return this driver's minor version number
169 */ 168 */
170 @Override 169 @Override
171 public int getMinorVersion() { 170 public int getMinorVersion() {
172 // defer to the static version of this method 171 return MonetVersion.minorVersion;
173 return getDriverMinorVersion();
174 } 172 }
175 173
176 /** 174 /**
177 * Gets information about the possible properties for this driver. 175 * Gets information about the possible properties for this driver.
178 * 176 *
299 throw MonetWrapper.newSQLFeatureNotSupportedException("getParentLogger"); 297 throw MonetWrapper.newSQLFeatureNotSupportedException("getParentLogger");
300 } 298 }
301 299
302 //== end methods of interface driver 300 //== end methods of interface driver
303 301
304
305 /**
306 * Get MonetDB JDBC Driver major version number
307 * method called by MonetDatabaseMetaData methods
308 * @return MonetDB JDBC Driver major version number
309 */
310 static final int getDriverMajorVersion() {
311 // defer to the generated MonetVersion class
312 return MonetVersion.majorVersion;
313 }
314
315 /**
316 * Get MonetDB JDBC Driver minor version number
317 * method called by MonetDatabaseMetaData methods
318 * @return MonetDB JDBC Driver minor version number
319 */
320 static final int getDriverMinorVersion() {
321 // defer to the generated MonetVersion class
322 return MonetVersion.minorVersion;
323 }
324 302
325 /** 303 /**
326 * Returns a touched up identifying version string of this driver. 304 * Returns a touched up identifying version string of this driver.
327 * It is made public as it is called from org/monetdb/client/JdbcClient.java 305 * It is made public as it is called from org/monetdb/client/JdbcClient.java
328 * @return the version string 306 * @return the version string