@Repository(value="blCustomerCreditAccountDao") public class CustomerCreditAccountDaoImpl extends Object implements CustomerCreditAccountDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
CustomerCreditAccountDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
CustomerCreditAccount |
create()
Creates a new CreditAccount.
|
CustomerCreditAccount |
readAccountByAccountNumber(String accountNumber)
Returns a CustomerCreditAccount that matches the account number.
|
CustomerCreditAccount |
readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
Returns the first CustomerCreditAccount that match the passed in customer.
|
List<CustomerCreditAccount> |
readAccountsByAccountNumber(String accountNumber)
Returns a List of CustomerCreditAccounts that matches the account number.
|
List<CustomerCreditAccount> |
readAccountsByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
Returns all CustomerCreditAccount that match the passed in customer.
|
List<CustomerCreditAccount> |
readAccountsByCustomerAndCurrency(org.broadleafcommerce.profile.core.domain.Customer customer,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
Returns all CustomerCreditAccount that match the passed in customer and currency
|
CustomerCreditAccount |
save(CustomerCreditAccount customerCreditAccount) |
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
public CustomerCreditAccount create()
CustomerCreditAccountDaocreate in interface CustomerCreditAccountDaopublic CustomerCreditAccount readAccountByAccountNumber(String accountNumber)
CustomerCreditAccountDaoreadAccountByAccountNumber in interface CustomerCreditAccountDaopublic List<CustomerCreditAccount> readAccountsByAccountNumber(String accountNumber)
CustomerCreditAccountDaoreadAccountsByAccountNumber in interface CustomerCreditAccountDaopublic CustomerCreditAccount readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountDaoreadAccountByCustomer in interface CustomerCreditAccountDaopublic List<CustomerCreditAccount> readAccountsByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountDaoreadAccountsByCustomer in interface CustomerCreditAccountDaopublic List<CustomerCreditAccount> readAccountsByCustomerAndCurrency(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
CustomerCreditAccountDaoreadAccountsByCustomerAndCurrency in interface CustomerCreditAccountDaopublic CustomerCreditAccount save(CustomerCreditAccount customerCreditAccount) throws javax.persistence.OptimisticLockException
save in interface CustomerCreditAccountDaojavax.persistence.OptimisticLockExceptionCopyright © 2019. All rights reserved.