org.exolab.castor.jdo
Class DbMetaInfo
java.lang.Object
org.exolab.castor.jdo.DbMetaInfo
public final class DbMetaInfo
extends java.lang.Object
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.
int | compareDbVersion(String version) - compare the actual database version
with the given required version string
|
(package private) static int | compareVersionStrings(String v1, String v2)
|
String | getDbVersion() - return the version string for the current database conection
|
DbMetaInfo
public DbMetaInfo(Connection conn)
compareDbVersion
public int compareDbVersion(String version)
compare the actual database version
with the given required version string
- -1 -> lower 0 -> equal 1 -> higher
compareVersionStrings
(package private) static int compareVersionStrings(String v1,
String v2)
getDbVersion
public String getDbVersion()
return the version string for the current database conection
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com