com.ning.billing.subscription.engine.dao
Interface SubscriptionEventSqlDao

All Superinterfaces:
AuditSqlDao, org.skife.jdbi.v2.sqlobject.mixins.CloseMe, EntitySqlDao<SubscriptionEventModelDao,SubscriptionBaseEvent>, HistorySqlDao<SubscriptionEventModelDao,SubscriptionBaseEvent>, org.skife.jdbi.v2.sqlobject.mixins.Transactional<EntitySqlDao<SubscriptionEventModelDao,SubscriptionBaseEvent>>, org.skife.jdbi.v2.sqlobject.mixins.Transmogrifier

public interface SubscriptionEventSqlDao
extends EntitySqlDao<SubscriptionEventModelDao,SubscriptionBaseEvent>


Method Summary
 List<SubscriptionEventModelDao> getEventsForSubscription(String subscriptionId, InternalTenantContext context)
           
 List<SubscriptionEventModelDao> getFutureActiveEventForSubscription(String subscriptionId, Date now, InternalTenantContext context)
           
 void reactiveEvent(String id, InternalCallContext context)
           
 void unactiveEvent(String id, InternalCallContext context)
           
 void updateVersion(String id, Long currentVersion, InternalCallContext context)
           
 
Methods inherited from interface com.ning.billing.util.entity.dao.EntitySqlDao
create, get, getByAccountRecordId, getById, getByRecordId, getRecordId, test
 
Methods inherited from interface com.ning.billing.util.dao.AuditSqlDao
getAuditLogsForTargetRecordId, getAuditLogsViaHistoryForTargetRecordId, insertAuditFromTransaction
 
Methods inherited from interface com.ning.billing.util.dao.HistorySqlDao
addHistoryFromTransaction
 
Methods inherited from interface org.skife.jdbi.v2.sqlobject.mixins.Transmogrifier
become
 
Methods inherited from interface org.skife.jdbi.v2.sqlobject.mixins.Transactional
begin, checkpoint, commit, inTransaction, inTransaction, release, rollback, rollback
 
Methods inherited from interface org.skife.jdbi.v2.sqlobject.mixins.CloseMe
close
 

Method Detail

unactiveEvent

void unactiveEvent(String id,
                   InternalCallContext context)

reactiveEvent

void reactiveEvent(String id,
                   InternalCallContext context)

updateVersion

void updateVersion(String id,
                   Long currentVersion,
                   InternalCallContext context)

getFutureActiveEventForSubscription

List<SubscriptionEventModelDao> getFutureActiveEventForSubscription(String subscriptionId,
                                                                    Date now,
                                                                    InternalTenantContext context)

getEventsForSubscription

List<SubscriptionEventModelDao> getEventsForSubscription(String subscriptionId,
                                                         InternalTenantContext context)


Copyright © 2010-2013. All Rights Reserved.