@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()
CustomerCreditAccountDao
create
in interface CustomerCreditAccountDao
public CustomerCreditAccount readAccountByAccountNumber(String accountNumber)
CustomerCreditAccountDao
readAccountByAccountNumber
in interface CustomerCreditAccountDao
public List<CustomerCreditAccount> readAccountsByAccountNumber(String accountNumber)
CustomerCreditAccountDao
readAccountsByAccountNumber
in interface CustomerCreditAccountDao
public CustomerCreditAccount readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountDao
readAccountByCustomer
in interface CustomerCreditAccountDao
public List<CustomerCreditAccount> readAccountsByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountDao
readAccountsByCustomer
in interface CustomerCreditAccountDao
public List<CustomerCreditAccount> readAccountsByCustomerAndCurrency(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
CustomerCreditAccountDao
readAccountsByCustomerAndCurrency
in interface CustomerCreditAccountDao
public CustomerCreditAccount save(CustomerCreditAccount customerCreditAccount) throws javax.persistence.OptimisticLockException
save
in interface CustomerCreditAccountDao
javax.persistence.OptimisticLockException
Copyright © 2019. All rights reserved.