Class DbVersionUpdateDao

    • Constructor Detail

      • DbVersionUpdateDao

        public DbVersionUpdateDao()
    • Method Detail

      • getDbVersionLatestUpdate

        public Integer getDbVersionLatestUpdate()
        Return last DB Version Update number
        Returns:
        last DB Version Update number
        Since:
        4.2.0
      • getOldestDbVersionUpdate

        public DbVersionUpdate getOldestDbVersionUpdate()
        Return the oldest DbVersionUpdate (by DB version)
        Returns:
        the DbVersionUpdate with the lowest DB version, or null if no DB version updates exist
        Since:
        19.11.0
      • getDbVersionUpdateList

        public List<DbVersionUpdate> getDbVersionUpdateList​(String keyword,
                                                            Date startDate,
                                                            Date endDate)
        Return the list of database version updates matching the search criteria
        Parameters:
        keyword - the search keyword
        startDate - the lower bound of the update timestamp (optional)
        endDate - the upper bound of the update timestamp (optional)
        Returns:
        the list of matching database version update records
      • getDbVersionUpdateList

        public List<Integer> getDbVersionUpdateList()
        Return the List of DBVersion from the db_version_update table
        Returns:
        the List of DBVersion from the db_version_update table
        Since:
        18.5.0
      • getMaxDbVersion

        public int getMaxDbVersion()
        Return the current database version. If database version updates exist, the database is in an invalid state and an error will be thrown.
        Returns:
        the current database version