edu.ucsb.nceas.metacat.database
Class DBVersion

java.lang.Object
  extended by edu.ucsb.nceas.metacat.Version
      extended by edu.ucsb.nceas.metacat.database.DBVersion
All Implemented Interfaces:
java.lang.Comparable<Version>

public class DBVersion
extends Version

Author:
daigle@nceas.nceas.ucsb.edu DBVersion represents the current DBVersion information for this Metacat instance.

Field Summary
 
Fields inherited from class edu.ucsb.nceas.metacat.Version
allowedVersionLevels, subversions, versionString
 
Constructor Summary
DBVersion(java.lang.String DBVersionId)
          Create a database version.
 
Method Summary
 java.util.Vector<java.lang.String> getUpdateScripts()
          Get the update script list for this version
 
Methods inherited from class edu.ucsb.nceas.metacat.Version
compareTo, getSubversion, getVersionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBVersion

public DBVersion(java.lang.String DBVersionId)
          throws edu.ucsb.nceas.utilities.PropertyNotFoundException
Create a database version. Get the update script list from properties for this version and save in a vector.

Parameters:
DBVersionId - a string representing the version of the database.
Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException
Method Detail

getUpdateScripts

public java.util.Vector<java.lang.String> getUpdateScripts()
Get the update script list for this version

Returns:
a Vector of update script names.


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.