Package ome.services.util
Class DBMappedEnumCheck
- java.lang.Object
-
- ome.services.util.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DBMappedEnumCheck(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
-
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
-
-