public static Integer getPluginDataVersion(String pluginId) { PluginDataVersionDao dao = Services.getServices().getDbi().open(PluginDataVersionDao.class); DataVersion dataVersion = dao.findDataUpdateVersion(pluginId); Services.getServices().getDbi().close(dao); return (dataVersion == null ? null : dataVersion.getDataVersion()); }
public static Integer getDataVersion() { DataVersionDao dao = Services.getServices().getDbi().open(DataVersionDao.class); DataVersion dataVersion = dao.findDataUpdateVersion(); Services.getServices().getDbi().close(dao); return (dataVersion == null ? null : dataVersion.getDataVersion()); }