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, createAndRefresh, get, getAll, getById, getByRecordId, getCount, getCreateEntitySqlDaoTransactionWrapper, getNaturalOrderingColumns, getRecordId, testclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, 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)
public void create(AccountModelDao entity, InternalCallContext context) throws AccountApiException
create in interface EntityDao<AccountModelDao,Account,AccountApiException>create in class EntityDaoBase<AccountModelDao,Account,AccountApiException>AccountApiExceptionprotected 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(java.lang.String key, InternalTenantContext context)
getAccountByKey in interface AccountDaopublic Pagination<AccountModelDao> searchAccounts(java.lang.String searchKey, java.lang.Long offset, java.lang.Long limit, InternalTenantContext context)
searchAccounts in interface AccountDaopublic java.util.UUID getIdFromKey(java.lang.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(java.util.UUID accountId,
java.util.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 java.util.List<AccountEmailModelDao> getEmailsByAccountId(java.util.UUID accountId, InternalTenantContext context)
getEmailsByAccountId in interface AccountDaopublic java.lang.Integer getAccountBCD(java.util.UUID accountId,
InternalTenantContext context)
getAccountBCD in interface AccountDaopublic java.util.List<AccountModelDao> getAccountsByParentId(java.util.UUID parentAccountId, InternalTenantContext context)
getAccountsByParentId in interface AccountDaoCopyright © 2010-2017. All Rights Reserved.