@Repository(value="blGiftCardAccountDao") public class GiftCardAccountDaoImpl extends Object implements GiftCardAccountDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
GiftCardAccountDaoImpl() |
Modifier and Type | Method and Description |
---|---|
GiftCardAccount |
create()
Creates a new Gift Card Account.
|
GiftCardAccount |
readAccountByGiftCardNumber(String giftCardNumber)
Returns the first GiftCardAccount that match the passed in giftCardNumber.
|
List<GiftCardAccount> |
readAccountsByGiftCardNumber(String giftCardNumber)
Returns all GiftCardAccounts that match the passed in giftCardNumber.
|
GiftCardAccount |
save(GiftCardAccount giftCardAccount)
Saves a Gift Card Account.
|
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
public GiftCardAccount create()
GiftCardAccountDao
create
in interface GiftCardAccountDao
public GiftCardAccount readAccountByGiftCardNumber(String giftCardNumber)
GiftCardAccountDao
readAccountByGiftCardNumber
in interface GiftCardAccountDao
public List<GiftCardAccount> readAccountsByGiftCardNumber(String giftCardNumber)
GiftCardAccountDao
readAccountsByGiftCardNumber
in interface GiftCardAccountDao
public GiftCardAccount save(GiftCardAccount giftCardAccount) throws javax.persistence.OptimisticLockException
GiftCardAccountDao
save
in interface GiftCardAccountDao
javax.persistence.OptimisticLockException
Copyright © 2019. All rights reserved.