org.exolab.castor.jdo
Class DbMetaInfo
java.lang.Object
org.exolab.castor.jdo.DbMetaInfo
public final class DbMetaInfo
- extends 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.
- Version:
- $Revision: 7525 $
- Author:
- Martin Fuchs
|
Method Summary |
int |
compareDbVersion(String version)
Compare the actual database version with the given required version string. |
String |
getDbVersion()
Return the version string for the current database conection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbMetaInfo
public DbMetaInfo(Connection conn)
- Parameters:
conn - JDBC connection
getDbVersion
public String getDbVersion()
- Return the version string for the current database conection.
- Returns:
- database version string.
compareDbVersion
public int compareDbVersion(String version)
- Compare the actual database version with the given required version string.
- Parameters:
version -
- Returns:
- -1 -> lower 0 -> equal 1 -> higher
Copyright © 2010. All Rights Reserved.