Package org.exolab.castor.jdo
Class DbMetaInfo
java.lang.Object
org.exolab.castor.jdo.DbMetaInfo
Database meta information encapsulation
This is currently used to get the database version out of a
JDBC database connection and enable comparing against some
required version string.
- Version:
- $Revision: 7525 $
- Author:
- Martin Fuchs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareDbVersion
(String version) Compare the actual database version with the given required version string.(package private) static int
compareVersionStrings
(String v1, String v2) Return the version string for the current database conection.
-
Constructor Details
-
DbMetaInfo
- Parameters:
conn
- JDBC connection
-
-
Method Details
-
getDbVersion
Return the version string for the current database conection.- Returns:
- database version string.
-
compareDbVersion
Compare the actual database version with the given required version string.- Parameters:
version
-- Returns:
- -1 -> lower 0 -> equal 1 -> higher
-
compareVersionStrings
-