From 18f9dfb5bacf770c82f1e6054d95591123ffd4bf Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Mon, 5 Nov 2007 15:15:54 +0000 Subject: [PATCH] back to a previous version without version attribute SVN: 2383 --- .../DatabaseConfigurationContext.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java index ab1ce110499..a635dad82f0 100644 --- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java +++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java @@ -33,8 +33,6 @@ import ch.systemsx.cisd.common.exceptions.ConfigurationFailureException; */ public class DatabaseConfigurationContext { - private String databaseVersion; - private String driver; private LobHandler lobHandler; @@ -134,36 +132,6 @@ public class DatabaseConfigurationContext return adminDataSource; } - /** - * Returns the database version which should be used. If not set by {@link #setDatabaseVersion(String)} or - * does not start with a digit <code>defaultDatabaseVersion</code> will be returned. - * - * @throws ConfigurationFailureException if the database version is beyound the default one. - */ - public final String getDatabaseVersion(String defaultDatabaseVersion) - { - if (isValidDatabaseVersion(databaseVersion) == false) - { - return defaultDatabaseVersion; - } - if (databaseVersion.compareTo(defaultDatabaseVersion) > 0) - { - throw new ConfigurationFailureException("Database version " + databaseVersion - + " is not supported. Latest supported database version is " + defaultDatabaseVersion); - } - return databaseVersion; - } - - private boolean isValidDatabaseVersion(String version) - { - return version != null && version.length() > 0 && Character.isDigit(version.charAt(0)); - } - - public final void setDatabaseVersion(String databaseVersion) - { - this.databaseVersion = databaseVersion; - } - /** * Returns the user name of the owner of the database. */ -- GitLab