docs: @Override
  	public int countByCommerceNotificationQueueEntryId(
  		long commerceNotificationQueueEntryId) {
  		FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCENOTIFICATIONQUEUEENTRYID;
  
  		Object[] finderArgs = new Object[] { commerceNotificationQueueEntryId };
  
  		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
  
  		if (count == null) {
  			StringBundler query = new StringBundler(2);
  
  			query.append(_SQL_COUNT_COMMERCENOTIFICATIONATTACHMENT_WHERE);
  
  			query.append(_FINDER_COLUMN_COMMERCENOTIFICATIONQUEUEENTRYID_COMMERCENOTIFICATIONQUEUEENTRYID_2);
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				qPos.add(commerceNotificationQueueEntryId);
  
  				count = (Long)q.uniqueResult();
  
  				finderCache.putResult(finderPath, finderArgs, count);
  			}
  			catch (Exception e) {
  				finderCache.removeResult(finderPath, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return count.intValue();
  	}