Package com.avoka.fc.core.dao
Class OfflineSyncCallDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.OfflineSyncCallDao
-
public class OfflineSyncCallDao extends AbstractDao
Provides an OfflineSyncCall entity DAO.- Since:
- 4.1.0
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description OfflineSyncCallDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OfflineSyncCall
getOfflineSyncCallForPK(Object id)
Return the OfflineSyncCall record for the given id.List<OfflineSyncCall>
getOfflineSyncCallsForSyncKey(String syncKey)
Return the list of offline sync calls for the given sync key, ordered by call time.int
purgeOfflineSyncCall(int maxAgeDays, int fetchLimit)
Purge offline sync call records older than a specified number of days-
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
-
getOfflineSyncCallForPK
public OfflineSyncCall getOfflineSyncCallForPK(Object id)
Return the OfflineSyncCall record for the given id.- Parameters:
id
- the entity id- Returns:
- the OfflineSyncCall record for the given id
-
getOfflineSyncCallsForSyncKey
public List<OfflineSyncCall> getOfflineSyncCallsForSyncKey(String syncKey)
Return the list of offline sync calls for the given sync key, ordered by call time.- Parameters:
syncKey
- list of offline sync calls for the given sync key- Returns:
- the list of offline sync calls for the given sync key, ordered by call time
-
purgeOfflineSyncCall
public int purgeOfflineSyncCall(int maxAgeDays, int fetchLimit)
Purge offline sync call records older than a specified number of days- Parameters:
maxAgeDays
- The age in days above which records will be deleted. If this value is negative or equal to 0, no records will be purged.fetchLimit
- the maximum number of records to delete (only used if > 0)- Returns:
- the number of records that were deleted
-
-