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
Provides a DAO for the DbVersionUpdate entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the database release version list.Return last DB Version Update numberReturn the Listof DBVersion from the db_version_update table getDbVersionUpdateList
(String keyword, Date startDate, Date endDate) Return the list of database version updates matching the search criteriaint
Return the current database version.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
-
Constructor Details
-
DbVersionUpdateDao
public DbVersionUpdateDao()
-
-
Method Details
-
getDbVersionLatestUpdate
Return last DB Version Update number- Returns:
- last DB Version Update number
- Since:
- 4.2.0
-
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
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
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
-
getDbReleaseVersionList
Return the database release version list. If database version updates exist, the database is in an invalid state and an error will be thrown.- Returns:
- the release version list
- Since:
- 21.11.0
-