Package ome.services.util
Class DBEnumCheck
- java.lang.Object
-
- ome.services.util.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
-
-
Constructor Summary
Constructors Constructor Description DBEnumCheck(Executor executor, ome.system.PreferenceContext preferences, EnsureEnum ensureEnum, ReadOnlyStatus readOnly)
-
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.
-
-
-
Field Detail
-
log
public static final org.slf4j.Logger log
-
executor
protected final Executor executor
executor useful for performing database adjustments
-
-
Constructor Detail
-
DBEnumCheck
public DBEnumCheck(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
-
-