O
- as Order
public class OrderDaoImpl<O extends Order> extends AbstractQueryableDaoImpl<O> implements OrderDao<O>
EntityManager
Modifier and Type | Class and Description |
---|---|
static class |
OrderDaoImpl.ReportQuery |
em
ct, t
Constructor and Description |
---|
OrderDaoImpl() |
OrderDaoImpl(Class<O> ref) |
Modifier and Type | Method and Description |
---|---|
List<O> |
getOrders(OrderDaoImpl.ReportQuery reportQuery)
Generic Reporting Query
|
Page<O> |
getOrders(OrderDaoImpl.ReportQuery reportQuery,
PageInfo pageInfo)
Generic Reporting Query
|
Long |
getOrdersCount(OrderDaoImpl.ReportQuery reportQuery)
Generic Reporting Query Count
|
<RO extends O> |
getRelatedOrders(Long rootOrderId)
Get Sub-Orders or related orders in a multi part order work flow.
|
protected javax.persistence.Query |
getReportQuery(String prefix,
OrderDaoImpl.ReportQuery reportQuery) |
boolean |
isExists(Long orderId)
Check to see if an Order exists or not
|
<D extends DeliveryDetails> |
save(D deliveryDetails) |
O |
save(O order) |
conditionConstruct, count, ensureRowIsEntity, ensureRowIsEntity, getEntityInstance, getQueryObject, query, query, queryPage, queryPage
delete, delete, getEntityManager, getNativeEntityName, load, load, paginate, query, query, setEntityManager, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, getEntityInstance, query, query, queryPage, queryPage
delete, delete, load, load
@Transactional(readOnly=false) public O save(O order)
save
in interface GenericDao<O extends Order>
save
in class GenericDaoImpl<O extends Order>
protected javax.persistence.Query getReportQuery(String prefix, OrderDaoImpl.ReportQuery reportQuery)
public List<O> getOrders(OrderDaoImpl.ReportQuery reportQuery)
public Page<O> getOrders(OrderDaoImpl.ReportQuery reportQuery, PageInfo pageInfo)
getOrders
in interface OrderDao<O extends Order>
user
- as IGenericEcomUser
@nullable truestart
- as Date
end
- as Date
tags
- as Set of String; any matching String in the Set will return the recordstatuss
- as Set
of OrderStatus
categories
- as Set
or Product
sorder
- as String; the part after "ORDER BY " clauseList
of Order
typepublic Long getOrdersCount(OrderDaoImpl.ReportQuery reportQuery)
getOrdersCount
in interface OrderDao<O extends Order>
user
- as IGenericEcomUser
@nullable truestart
- as Date
end
- as Date
tags
- as Set of String; any matching String in the Set will return the recordstatuss
- as Set
of OrderStatus
categories
- as Set
or Product
sList
of Order
public boolean isExists(Long orderId)
@Transactional(readOnly=false) public <D extends DeliveryDetails> D save(D deliveryDetails)
public <RO extends O> List<RO> getRelatedOrders(Long rootOrderId)
OrderDao
getRelatedOrders
in interface OrderDao<O extends Order>
rootOrderId
- as LongCopyright © 2018. All rights reserved.