|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.service.persistence.ShoppingOrderUtil
public class ShoppingOrderUtil
The persistence utility for the shopping order service. This utility wraps ShoppingOrderPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
ShoppingOrderPersistence
,
ShoppingOrderPersistenceImpl
Constructor Summary | |
---|---|
ShoppingOrderUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<ShoppingOrder> shoppingOrders)
Caches the shopping orders in the entity cache if it is enabled. |
static void |
cacheResult(ShoppingOrder shoppingOrder)
Caches the shopping order in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ShoppingOrder shoppingOrder)
|
static int |
countAll()
Returns the number of shopping orders. |
static int |
countByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static int |
countByGroupId(long groupId)
Returns the number of shopping orders where groupId = ?. |
static int |
countByNumber(String number)
Returns the number of shopping orders where number = ?. |
static int |
countByPPTxnId(String ppTxnId)
Returns the number of shopping orders where ppTxnId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ShoppingOrder |
create(long orderId)
Creates a new shopping order with the primary key. |
static ShoppingOrder |
fetchByG_U_PPPS_First(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder |
fetchByG_U_PPPS_Last(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?. |
static ShoppingOrder |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?. |
static ShoppingOrder |
fetchByNumber(String number)
Returns the shopping order where number = ? or returns null if it could not be found. |
static ShoppingOrder |
fetchByNumber(String number,
boolean retrieveFromCache)
Returns the shopping order where number = ? or returns null if it could not be found, optionally using the finder cache. |
static ShoppingOrder |
fetchByPPTxnId(String ppTxnId)
Returns the shopping order where ppTxnId = ? or returns null if it could not be found. |
static ShoppingOrder |
fetchByPPTxnId(String ppTxnId,
boolean retrieveFromCache)
Returns the shopping order where ppTxnId = ? or returns null if it could not be found, optionally using the finder cache. |
static ShoppingOrder |
fetchByPrimaryKey(long orderId)
Returns the shopping order with the primary key or returns null if it could not be found. |
static int |
filterCountByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static int |
filterCountByGroupId(long groupId)
Returns the number of shopping orders that the user has permission to view where groupId = ?. |
static ShoppingOrder[] |
filterFindByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end)
Returns a range of all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder[] |
filterFindByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ?. |
static List<ShoppingOrder> |
filterFindByGroupId(long groupId)
Returns all the shopping orders that the user has permission to view where groupId = ?. |
static List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping orders that the user has permission to view where groupId = ?. |
static List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?. |
static List<ShoppingOrder> |
findAll()
Returns all the shopping orders. |
static List<ShoppingOrder> |
findAll(int start,
int end)
Returns a range of all the shopping orders. |
static List<ShoppingOrder> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders. |
static ShoppingOrder |
findByG_U_PPPS_First(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder |
findByG_U_PPPS_Last(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder[] |
findByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end)
Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
static ShoppingOrder |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?. |
static ShoppingOrder |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?. |
static ShoppingOrder[] |
findByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?. |
static List<ShoppingOrder> |
findByGroupId(long groupId)
Returns all the shopping orders where groupId = ?. |
static List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping orders where groupId = ?. |
static List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ?. |
static ShoppingOrder |
findByNumber(String number)
Returns the shopping order where number = ? or throws a NoSuchOrderException if it could not be found. |
static ShoppingOrder |
findByPPTxnId(String ppTxnId)
Returns the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found. |
static ShoppingOrder |
findByPrimaryKey(long orderId)
Returns the shopping order with the primary key or throws a NoSuchOrderException if it could not be found. |
static List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ShoppingOrderPersistence |
getPersistence()
|
static ShoppingOrder |
remove(long orderId)
Removes the shopping order with the primary key from the database. |
static void |
removeAll()
Removes all the shopping orders from the database. |
static void |
removeByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. |
static void |
removeByGroupId(long groupId)
Removes all the shopping orders where groupId = ? from the database. |
static ShoppingOrder |
removeByNumber(String number)
Removes the shopping order where number = ? from the database. |
static ShoppingOrder |
removeByPPTxnId(String ppTxnId)
Removes the shopping order where ppTxnId = ? from the database. |
void |
setPersistence(ShoppingOrderPersistence persistence)
Deprecated. |
static ShoppingOrder |
update(ShoppingOrder shoppingOrder,
boolean merge)
|
static ShoppingOrder |
update(ShoppingOrder shoppingOrder,
boolean merge,
ServiceContext serviceContext)
|
static ShoppingOrder |
updateImpl(ShoppingOrder shoppingOrder,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShoppingOrderUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ShoppingOrder shoppingOrder)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ShoppingOrder update(ShoppingOrder shoppingOrder, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ShoppingOrder update(ShoppingOrder shoppingOrder, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(ShoppingOrder shoppingOrder)
shoppingOrder
- the shopping orderpublic static void cacheResult(List<ShoppingOrder> shoppingOrders)
shoppingOrders
- the shopping orderspublic static ShoppingOrder create(long orderId)
orderId
- the primary key for the new shopping order
public static ShoppingOrder remove(long orderId) throws SystemException, NoSuchOrderException
orderId
- the primary key of the shopping order
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge) throws SystemException
SystemException
public static ShoppingOrder findByPrimaryKey(long orderId) throws SystemException, NoSuchOrderException
NoSuchOrderException
if it could not be found.
orderId
- the primary key of the shopping order
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByPrimaryKey(long orderId) throws SystemException
null
if it could not be found.
orderId
- the primary key of the shopping order
null
if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByGroupId(long groupId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingOrder findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
orderId
- the primary key of the current shopping ordergroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
orderId
- the primary key of the current shopping ordergroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder findByNumber(String number) throws SystemException, NoSuchOrderException
NoSuchOrderException
if it could not be found.
number
- the number
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByNumber(String number) throws SystemException
null
if it could not be found. Uses the finder cache.
number
- the number
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByNumber(String number, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
number
- the numberretrieveFromCache
- whether to use the finder cache
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder findByPPTxnId(String ppTxnId) throws SystemException, NoSuchOrderException
NoSuchOrderException
if it could not be found.
ppTxnId
- the pp txn ID
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByPPTxnId(String ppTxnId) throws SystemException
null
if it could not be found. Uses the finder cache.
ppTxnId
- the pp txn ID
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByPPTxnId(String ppTxnId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
ppTxnId
- the pp txn IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment status
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder fetchByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
orderId
- the primary key of the current shopping ordergroupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment status
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusstart
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderException
orderId
- the primary key of the current shopping ordergroupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrder> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of shopping ordersend
- the upper bound of the range of shopping orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static ShoppingOrder removeByNumber(String number) throws SystemException, NoSuchOrderException
number
- the number
SystemException
- if a system exception occurred
NoSuchOrderException
public static ShoppingOrder removeByPPTxnId(String ppTxnId) throws SystemException, NoSuchOrderException
ppTxnId
- the pp txn ID
SystemException
- if a system exception occurred
NoSuchOrderException
public static void removeByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment status
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int filterCountByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByNumber(String number) throws SystemException
number
- the number
SystemException
- if a system exception occurredpublic static int countByPPTxnId(String ppTxnId) throws SystemException
ppTxnId
- the pp txn ID
SystemException
- if a system exception occurredpublic static int countByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment status
SystemException
- if a system exception occurredpublic static int filterCountByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
groupId
- the group IDuserId
- the user IDppPaymentStatus
- the pp payment status
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static ShoppingOrderPersistence getPersistence()
public void setPersistence(ShoppingOrderPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |