
com.ning.billing.notificationq.dao.NotificationSqlDao.sql.stg Maven / Gradle / Ivy
group NotificationSqlDao: BaseSqlDao;
extraFieldsWithComma() ::= <<
, future_user_token
, effective_date
, queue_name
>>
extraValuesWithComma() ::= <<
, :futureUserToken
, :effectiveDate
, :queueName
>>
readyWhereClause() ::= <<
effective_date \<= :now
and processing_state != 'PROCESSED'
and processing_state != 'REMOVED'
and (processing_owner IS NULL OR processing_available_date \<= :now)
>>
readyOrderByClause() ::= <<
effective_date asc
, created_date asc
, record_id
>>
/** Notifications specific queries **/
getReadyQueueEntriesForSearchKey(tableName, searchKey) ::= <<
select
from
where
queue_name = :queueName
and processing_state = 'AVAILABLE'
and = :searchKey
order by
;
>>
/** Notifications specific queries **/
getCountReadyEntries(tableName, searchKey) ::= <<
select
count(*)
from
where
processing_state = 'AVAILABLE'
and effective_date \<= :now
and = :searchKey
;
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy