T
- public class PromotionDaoImpl<T extends Promotion> extends AbstractQueryableDaoImpl<T>
EntityManager
em
ct, t
Constructor and Description |
---|
PromotionDaoImpl() |
Modifier and Type | Method and Description |
---|---|
int |
delete(PromotionForUser promotionForUser) |
void |
delete(T promotion) |
Collection<PromotionForUser> |
load(Collection<PromotionForUser> promotionForUsers) |
T |
load(String promotionName) |
PromotionForUser |
save(PromotionForUser promotionForUser) |
List<PromotionForUser> |
search(List<String> codes) |
List<PromotionForUser> |
search(String userId) |
List<PromotionForUser> |
search(String userId,
List<String> codes) |
PromotionForUser |
search(String userId,
String promotionName) |
conditionConstruct, count, ensureRowIsEntity, ensureRowIsEntity, getEntityInstance, getQueryObject, query, query, queryPage, queryPage
delete, getEntityManager, getNativeEntityName, load, load, paginate, query, query, save, setEntityManager, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, load, load, save
@Transactional(readOnly=false) public PromotionForUser save(PromotionForUser promotionForUser)
@Transactional(readOnly=false) public void delete(T promotion)
delete
in interface GenericDao<T extends Promotion>
delete
in class GenericDaoImpl<T extends Promotion>
@Transactional(readOnly=false) public int delete(PromotionForUser promotionForUser)
@Transactional(readOnly=true) public PromotionForUser search(String userId, String promotionName)
@Transactional(readOnly=true) public List<PromotionForUser> search(String userId)
@Transactional(readOnly=true) public List<PromotionForUser> search(List<String> codes)
@Transactional(readOnly=true) public List<PromotionForUser> search(String userId, List<String> codes)
@Transactional(readOnly=true) public Collection<PromotionForUser> load(Collection<PromotionForUser> promotionForUsers)
Copyright © 2018. All rights reserved.