docs: @Override
  	public List<CommerceNotificationQueueEntry> findByLtS(Date sentDate,
  		int start, int end,
  		OrderByComparator<CommerceNotificationQueueEntry> orderByComparator,
  		boolean retrieveFromCache) {
  		boolean pagination = true;
  		FinderPath finderPath = null;
  		Object[] finderArgs = null;
  
  		finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_LTS;
  		finderArgs = new Object[] {
  				_getTime(sentDate),
  				
  				start, end, orderByComparator
  			};
  
  		List<CommerceNotificationQueueEntry> list = null;
  
  		if (retrieveFromCache) {
  			list = (List<CommerceNotificationQueueEntry>)finderCache.getResult(finderPath,
  					finderArgs, this);
  
  			if ((list != null) && !list.isEmpty()) {
  				for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : list) {
  					if ((sentDate.getTime() <= commerceNotificationQueueEntry.getSentDate()
  																				 .getTime())) {
  						list = null;
  
  						break;
  					}
  				}
  			}
  		}
  
  		if (list == null) {
  			StringBundler query = null;
  
  			if (orderByComparator != null) {
  				query = new StringBundler(3 +
  						(orderByComparator.getOrderByFields().length * 2));
  			}
  			else {
  				query = new StringBundler(3);
  			}
  
  			query.append(_SQL_SELECT_COMMERCENOTIFICATIONQUEUEENTRY_WHERE);
  
  			boolean bindSentDate = false;
  
  			if (sentDate == null) {
  				query.append(_FINDER_COLUMN_LTS_SENTDATE_1);
  			}
  			else {
  				bindSentDate = true;
  
  				query.append(_FINDER_COLUMN_LTS_SENTDATE_2);
  			}
  
  			if (orderByComparator != null) {
  				appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
  					orderByComparator);
  			}
  			else
  			 if (pagination) {
  				query.append(CommerceNotificationQueueEntryModelImpl.ORDER_BY_JPQL);
  			}
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				if (bindSentDate) {
  					qPos.add(new Timestamp(sentDate.getTime()));
  				}
  
  				if (!pagination) {
  					list = (List<CommerceNotificationQueueEntry>)QueryUtil.list(q,
  							getDialect(), start, end, false);
  
  					Collections.sort(list);
  
  					list = Collections.unmodifiableList(list);
  				}
  				else {
  					list = (List<CommerceNotificationQueueEntry>)QueryUtil.list(q,
  							getDialect(), start, end);
  				}
  
  				cacheResult(list);
  
  				finderCache.putResult(finderPath, finderArgs, list);
  			}
  			catch (Exception e) {
  				finderCache.removeResult(finderPath, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return list;
  	}