Class DBMappedEnumCheck


  • public class DBMappedEnumCheck
    extends java.lang.Object
    When a new version of the OMERO server starts up check that the database includes an enumeration instance for every value mapped for code generation.
    Since:
    5.3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Executor executor
      executor useful for performing database adjustments
    • 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

      • executor

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

      • DBMappedEnumCheck

        protected DBMappedEnumCheck​(Executor executor,
                                    ome.system.PreferenceContext preferences,
                                    EnsureEnum ensureEnum,
                                    ReadOnlyStatus readOnly)
    • 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