Class OfflineSyncCallDao


  • public class OfflineSyncCallDao
    extends AbstractDao
    Provides an OfflineSyncCall entity DAO.
    Since:
    4.1.0
    • Constructor Detail

      • OfflineSyncCallDao

        public OfflineSyncCallDao()
    • 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