Package edu.ucsb.nceas.metacat
Class MetacatVersion
java.lang.Object
edu.ucsb.nceas.metacat.Version
edu.ucsb.nceas.metacat.MetacatVersion
- All Implemented Interfaces:
Comparable<Version>
- Author:
- jones Version represents the current version information for this Metacat instance.
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.Version
allowedVersionLevels, subversions, versionString
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.nceas.metacat.Version
compareTo, getSubversion, getVersionString
-
Constructor Details
-
MetacatVersion
-
-
Method Details
-
getVersionID
Get the current version string for this metacat instance. It is currently stored in the metacat.properties file.- Returns:
- a string indicating the version of Metacat running
- Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException
-
getVersionAsXml
Get the version number in an XML document.- Returns:
- the version wrapped in an XML document
- Throws:
SQLException
-
getVersionFromDB
Get the version number from DB- Returns:
- a string of the Metacat version from DB
- Throws:
SQLException
-