Class DBEnumCheck


  • public class DBEnumCheck
    extends java.lang.Object
    Hook run by the context to guarantee that various enumerations are up to date. This is especially important for changes to bioformats which add readers. Each reader is equivalent to a format ( + "Companion/"). Without such an extension, users are not able to import the latest and greatest without a database upgrade.
    Since:
    Beta4.1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Executor executor
      executor useful for performing database adjustments
      static org.slf4j.Logger log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doCheck()
      Do the database adjustment.
      protected java.lang.String getCheckDone()  
      protected java.lang.String getOmeroVersion()  
      void start()
      Do the database adjustment only if not already performed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        public static final org.slf4j.Logger log
      • executor

        protected final Executor executor
        executor useful for performing database adjustments
    • Method Detail

      • doCheck

        protected void doCheck()
        Do the database adjustment.
      • getCheckDone

        protected java.lang.String getCheckDone()
        Returns:
        a string identifying that the check is done, never null
      • start

        public void start()
        Do the database adjustment only if not already performed.
      • getOmeroVersion

        protected java.lang.String getOmeroVersion()
        Returns:
        a string representing the version and patch of this server