public class DefaultAccountDao extends EntityDaoBase<AccountModelDao,Account,AccountApiException> implements AccountDao
paginationHelper, transactionalSqlDao| Constructor and Description |
|---|
DefaultAccountDao(org.skife.jdbi.v2.IDBI dbi,
org.killbill.bus.api.PersistentBus eventBus,
org.killbill.clock.Clock clock,
CacheControllerDispatcher cacheControllerDispatcher,
InternalCallContextFactory internalCallContextFactory,
NonEntityDao nonEntityDao) |
checkEntityAlreadyExists, create, get, getAll, getById, getByRecordId, getCount, getCreateEntitySqlDaoTransactionWrapper, getNaturalOrderingColumns, getRecordId, testclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, get, getAll, getById, getByRecordId, getCount, getRecordId, test@Inject
public DefaultAccountDao(org.skife.jdbi.v2.IDBI dbi,
org.killbill.bus.api.PersistentBus eventBus,
org.killbill.clock.Clock clock,
CacheControllerDispatcher cacheControllerDispatcher,
InternalCallContextFactory internalCallContextFactory,
NonEntityDao nonEntityDao)
protected AccountApiException generateAlreadyExistsException(AccountModelDao account, InternalCallContext context)
generateAlreadyExistsException in class EntityDaoBase<AccountModelDao,Account,AccountApiException>protected void postBusEventFromTransaction(AccountModelDao account, AccountModelDao savedAccount, ChangeType changeType, EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory, InternalCallContext context) throws org.killbill.billing.BillingExceptionBase
postBusEventFromTransaction in class EntityDaoBase<AccountModelDao,Account,AccountApiException>org.killbill.billing.BillingExceptionBasepublic AccountModelDao getAccountByKey(String key, InternalTenantContext context)
getAccountByKey in interface AccountDaopublic Pagination<AccountModelDao> searchAccounts(String searchKey, Long offset, Long limit, InternalTenantContext context)
searchAccounts in interface AccountDaopublic UUID getIdFromKey(String externalKey, InternalTenantContext context) throws AccountApiException
getIdFromKey in interface AccountDaoAccountApiException - when externalKey is nullpublic void update(AccountModelDao specifiedAccount, InternalCallContext context) throws AccountApiException
update in interface AccountDaoAccountApiExceptionpublic void updatePaymentMethod(UUID accountId, UUID paymentMethodId, InternalCallContext context) throws AccountApiException
updatePaymentMethod in interface AccountDaoaccountId - the id of the accountpaymentMethodId - the is of the current default paymentMethodAccountApiExceptionpublic void addEmail(AccountEmailModelDao email, InternalCallContext context) throws AccountApiException
addEmail in interface AccountDaoAccountApiExceptionpublic void removeEmail(AccountEmailModelDao email, InternalCallContext context)
removeEmail in interface AccountDaopublic List<AccountEmailModelDao> getEmailsByAccountId(UUID accountId, InternalTenantContext context)
getEmailsByAccountId in interface AccountDaopublic Integer getAccountBCD(UUID accountId, InternalTenantContext context)
getAccountBCD in interface AccountDaopublic List<AccountModelDao> getAccountsByParentId(UUID parentAccountId, InternalTenantContext context)
getAccountsByParentId in interface AccountDaoCopyright © 2010-2016. All Rights Reserved.