Package com.avoka.fc.core.dao
Class DbVersionUpdateDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.DbVersionUpdateDao
-
public class DbVersionUpdateDao extends AbstractDao
Provides a DAO for the DbVersionUpdate entity.- See Also:
DbVersionUpdate
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description DbVersionUpdateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getDbReleaseVersionList()
Return the database release version list.Integer
getDbVersionLatestUpdate()
Return last DB Version Update numberList<Integer>
getDbVersionUpdateList()
Return the Listof DBVersion from the db_version_update table List<DbVersionUpdate>
getDbVersionUpdateList(String keyword, Date startDate, Date endDate)
Return the list of database version updates matching the search criteriaint
getMaxDbVersion()
Return the current database version.DbVersionUpdate
getOldestDbVersionUpdate()
Return the oldest DbVersionUpdate (by DB version)-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
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 keywordstartDate
- 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 Listof 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
-
-