Recently, as part of the JDBC 2.0 public review, we've been
asked to add two new methods to the DatabaseMetaData interface. This
is not a critical feature, but it would be nice to add it, and
respond to this developers request.
The proposed new methods are:
interface DataBaseMetaData {
int getDatabaseProductMajorVersion() throws SQLException;
int getDatabaseProductMinorVersion() throws SQLException;
}
The two methods simply return the version numbers of the underlying
database. The new methods are similar to two existing methods
getDriverMinorVersion()
getDriverMajorVersion()
so they fit nicely into the API. I believe these methods were
simply forgotten for JDBC 1.0 and that that is why they are not
there. This change will not raise any objections with the JDBC
vendor community.
asked to add two new methods to the DatabaseMetaData interface. This
is not a critical feature, but it would be nice to add it, and
respond to this developers request.
The proposed new methods are:
interface DataBaseMetaData {
int getDatabaseProductMajorVersion() throws SQLException;
int getDatabaseProductMinorVersion() throws SQLException;
}
The two methods simply return the version numbers of the underlying
database. The new methods are similar to two existing methods
getDriverMinorVersion()
getDriverMajorVersion()
so they fit nicely into the API. I believe these methods were
simply forgotten for JDBC 1.0 and that that is why they are not
there. This change will not raise any objections with the JDBC
vendor community.