Class MetacatVersion

java.lang.Object
edu.ucsb.nceas.metacat.Version
edu.ucsb.nceas.metacat.MetacatVersion
All Implemented Interfaces:
Comparable<Version>

public class MetacatVersion extends Version
Author:
jones Version represents the current version information for this Metacat instance.
  • Constructor Details

    • MetacatVersion

      public MetacatVersion(String versionID)
  • Method Details

    • getVersionID

      public static String getVersionID() throws edu.ucsb.nceas.utilities.PropertyNotFoundException
      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

      public static String getVersionAsXml() throws SQLException
      Get the version number in an XML document.
      Returns:
      the version wrapped in an XML document
      Throws:
      SQLException
    • getVersionFromDB

      public static String getVersionFromDB() throws SQLException
      Get the version number from DB
      Returns:
      a string of the Metacat version from DB
      Throws:
      SQLException