|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingOrder> com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistenceImpl
public class ShoppingOrderPersistenceImpl
The persistence implementation for the shopping order service.
Never modify or reference this class directly. Always use ShoppingOrderUtil
to access the shopping order persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
ShoppingOrderPersistence
,
ShoppingOrderUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
ShoppingOrderPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the shopping order persistence. |
void |
cacheResult(List<ShoppingOrder> shoppingOrders)
Caches the shopping orders in the entity cache if it is enabled. |
void |
cacheResult(ShoppingOrder shoppingOrder)
Caches the shopping order in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all shopping orders. |
void |
clearCache(ShoppingOrder shoppingOrder)
Clears the cache for the shopping order. |
int |
countAll()
Counts all the shopping orders. |
int |
countByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
int |
countByGroupId(long groupId)
Counts all the shopping orders where groupId = ?. |
int |
countByNumber(String number)
Counts all the shopping orders where number = ?. |
int |
countByPPTxnId(String ppTxnId)
Counts all the shopping orders where ppTxnId = ?. |
ShoppingOrder |
create(long orderId)
Creates a new shopping order with the primary key. |
ShoppingOrder |
fetchByNumber(String number)
Finds the shopping order where number = ? or returns null if it could not be found. |
ShoppingOrder |
fetchByNumber(String number,
boolean retrieveFromCache)
Finds the shopping order where number = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingOrder |
fetchByPPTxnId(String ppTxnId)
Finds the shopping order where ppTxnId = ? or returns null if it could not be found. |
ShoppingOrder |
fetchByPPTxnId(String ppTxnId,
boolean retrieveFromCache)
Finds the shopping order where ppTxnId = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingOrder |
fetchByPrimaryKey(long orderId)
Finds the shopping order with the primary key or returns null if it could not be found. |
ShoppingOrder |
fetchByPrimaryKey(Serializable primaryKey)
Finds the shopping order with the primary key or returns null if it could not be found. |
int |
filterCountByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Filters by the user's permissions and counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
int |
filterCountByGroupId(long groupId)
Filters by the user's permissions and counts all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end)
Filters by the user's permissions and finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
filterFindByGroupId(long groupId)
Filters by the user's permissions and finds all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end)
Filters by the user's permissions and finds a range of all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
findAll()
Finds all the shopping orders. |
List<ShoppingOrder> |
findAll(int start,
int end)
Finds a range of all the shopping orders. |
List<ShoppingOrder> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping orders. |
ShoppingOrder |
findByG_U_PPPS_First(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Finds the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
ShoppingOrder |
findByG_U_PPPS_Last(long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Finds the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
ShoppingOrder[] |
findByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end)
Finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
ShoppingOrder |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first shopping order in the ordered set where groupId = ?. |
ShoppingOrder |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last shopping order in the ordered set where groupId = ?. |
ShoppingOrder[] |
findByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator orderByComparator)
Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId)
Finds all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping orders where groupId = ?. |
ShoppingOrder |
findByNumber(String number)
Finds the shopping order where number = ? or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPPTxnId(String ppTxnId)
Finds the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPrimaryKey(long orderId)
Finds the shopping order with the primary key or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPrimaryKey(Serializable primaryKey)
Finds the shopping order with the primary key or throws a NoSuchModelException if it could not be found. |
protected ShoppingOrder |
getByG_U_PPPS_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator,
boolean previous)
|
protected ShoppingOrder |
getByGroupId_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
ShoppingOrder |
remove(long orderId)
Removes the shopping order with the primary key from the database. |
ShoppingOrder |
remove(Serializable primaryKey)
Removes the shopping order with the primary key from the database. |
void |
removeAll()
Removes all the shopping orders from the database. |
void |
removeByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the shopping orders where groupId = ? from the database. |
void |
removeByNumber(String number)
Removes the shopping order where number = ? from the database. |
void |
removeByPPTxnId(String ppTxnId)
Removes the shopping order where ppTxnId = ? from the database. |
protected ShoppingOrder |
removeImpl(ShoppingOrder shoppingOrder)
Removes the model instance from the database. |
protected ShoppingOrder |
toUnwrappedModel(ShoppingOrder shoppingOrder)
|
ShoppingOrder |
updateImpl(ShoppingOrder shoppingOrder,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FETCH_BY_NUMBER
public static final FinderPath FINDER_PATH_COUNT_BY_NUMBER
public static final FinderPath FINDER_PATH_FETCH_BY_PPTXNID
public static final FinderPath FINDER_PATH_COUNT_BY_PPTXNID
public static final FinderPath FINDER_PATH_FIND_BY_G_U_PPPS
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_PPPS
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=ShoppingCartPersistence.class) protected ShoppingCartPersistence shoppingCartPersistence
@BeanReference(type=ShoppingCategoryPersistence.class) protected ShoppingCategoryPersistence shoppingCategoryPersistence
@BeanReference(type=ShoppingCouponPersistence.class) protected ShoppingCouponPersistence shoppingCouponPersistence
@BeanReference(type=ShoppingItemPersistence.class) protected ShoppingItemPersistence shoppingItemPersistence
@BeanReference(type=ShoppingItemFieldPersistence.class) protected ShoppingItemFieldPersistence shoppingItemFieldPersistence
@BeanReference(type=ShoppingItemPricePersistence.class) protected ShoppingItemPricePersistence shoppingItemPricePersistence
@BeanReference(type=ShoppingOrderPersistence.class) protected ShoppingOrderPersistence shoppingOrderPersistence
@BeanReference(type=ShoppingOrderItemPersistence.class) protected ShoppingOrderItemPersistence shoppingOrderItemPersistence
@BeanReference(type=CompanyPersistence.class) protected CompanyPersistence companyPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence
Constructor Detail |
---|
public ShoppingOrderPersistenceImpl()
Method Detail |
---|
public void cacheResult(ShoppingOrder shoppingOrder)
cacheResult
in interface ShoppingOrderPersistence
shoppingOrder
- the shopping order to cachepublic void cacheResult(List<ShoppingOrder> shoppingOrders)
cacheResult
in interface ShoppingOrderPersistence
shoppingOrders
- the shopping orders to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingOrder>
clearCache
in class BasePersistenceImpl<ShoppingOrder>
public void clearCache(ShoppingOrder shoppingOrder)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingOrder>
clearCache
in class BasePersistenceImpl<ShoppingOrder>
shoppingOrder
- the instance of this model to clear the cache forpublic ShoppingOrder create(long orderId)
create
in interface ShoppingOrderPersistence
orderId
- the primary key for the new shopping order
public ShoppingOrder remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<ShoppingOrder>
remove
in class BasePersistenceImpl<ShoppingOrder>
primaryKey
- the primary key of the shopping order to remove
NoSuchModelException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder remove(long orderId) throws NoSuchOrderException, SystemException
remove
in interface ShoppingOrderPersistence
orderId
- the primary key of the shopping order to remove
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingOrder removeImpl(ShoppingOrder shoppingOrder) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<ShoppingOrder>
shoppingOrder
- the model instance to remove
SystemException
- if a system exception occurredpublic ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface ShoppingOrderPersistence
updateImpl
in class BasePersistenceImpl<ShoppingOrder>
shoppingOrder
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected ShoppingOrder toUnwrappedModel(ShoppingOrder shoppingOrder)
public ShoppingOrder findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<ShoppingOrder>
findByPrimaryKey
in class BasePersistenceImpl<ShoppingOrder>
primaryKey
- the primary key of the shopping order to find
NoSuchModelException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder findByPrimaryKey(long orderId) throws NoSuchOrderException, SystemException
NoSuchOrderException
if it could not be found.
findByPrimaryKey
in interface ShoppingOrderPersistence
orderId
- the primary key of the shopping order to find
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<ShoppingOrder>
fetchByPrimaryKey
in class BasePersistenceImpl<ShoppingOrder>
primaryKey
- the primary key of the shopping order to find
null
if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByPrimaryKey(long orderId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface ShoppingOrderPersistence
orderId
- the primary key of the shopping order to find
null
if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredpublic List<ShoppingOrder> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic 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.
findByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
findByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic ShoppingOrder findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByGroupId_First
in interface ShoppingOrderPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByGroupId_Last
in interface ShoppingOrderPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByGroupId_PrevAndNext
in interface ShoppingOrderPersistence
orderId
- the primary key of the current shopping ordergroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingOrder getByGroupId_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingOrder> filterFindByGroupId(long groupId) throws SystemException
filterFindByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic 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.
filterFindByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
filterFindByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic ShoppingOrder findByNumber(String number) throws NoSuchOrderException, SystemException
NoSuchOrderException
if it could not be found.
findByNumber
in interface ShoppingOrderPersistence
number
- the number to search with
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByNumber(String number) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByNumber
in interface ShoppingOrderPersistence
number
- the number to search with
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByNumber(String number, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByNumber
in interface ShoppingOrderPersistence
number
- the number to search with
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder findByPPTxnId(String ppTxnId) throws NoSuchOrderException, SystemException
NoSuchOrderException
if it could not be found.
findByPPTxnId
in interface ShoppingOrderPersistence
ppTxnId
- the pp txn id to search with
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByPPTxnId(String ppTxnId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByPPTxnId
in interface ShoppingOrderPersistence
ppTxnId
- the pp txn id to search with
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder fetchByPPTxnId(String ppTxnId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByPPTxnId
in interface ShoppingOrderPersistence
ppTxnId
- the pp txn id to search with
null
if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
findByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search with
SystemException
- if a system exception occurredpublic 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.
findByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
findByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByG_U_PPPS_First
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByG_U_PPPS_Last
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a matching shopping order could not be found
SystemException
- if a system exception occurredpublic ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator) throws NoSuchOrderException, 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.
findByG_U_PPPS_PrevAndNext
in interface ShoppingOrderPersistence
orderId
- the primary key of the current shopping ordergroupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withorderByComparator
- the comparator to order the set by
NoSuchOrderException
- if a shopping order with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingOrder getByG_U_PPPS_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
filterFindByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search with
SystemException
- if a system exception occurredpublic 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.
filterFindByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
filterFindByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search withstart
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic List<ShoppingOrder> findAll() throws SystemException
findAll
in interface ShoppingOrderPersistence
SystemException
- if a system exception occurredpublic 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.
findAll
in interface ShoppingOrderPersistence
start
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
findAll
in interface ShoppingOrderPersistence
start
- the lower bound of the range of shopping orders to returnend
- the upper bound of the range of shopping orders to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic void removeByNumber(String number) throws NoSuchOrderException, SystemException
removeByNumber
in interface ShoppingOrderPersistence
number
- the number to search with
SystemException
- if a system exception occurred
NoSuchOrderException
public void removeByPPTxnId(String ppTxnId) throws NoSuchOrderException, SystemException
removeByPPTxnId
in interface ShoppingOrderPersistence
ppTxnId
- the pp txn id to search with
SystemException
- if a system exception occurred
NoSuchOrderException
public void removeByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
removeByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search with
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface ShoppingOrderPersistence
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface ShoppingOrderPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int countByNumber(String number) throws SystemException
countByNumber
in interface ShoppingOrderPersistence
number
- the number to search with
SystemException
- if a system exception occurredpublic int countByPPTxnId(String ppTxnId) throws SystemException
countByPPTxnId
in interface ShoppingOrderPersistence
ppTxnId
- the pp txn id to search with
SystemException
- if a system exception occurredpublic int countByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
countByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search with
SystemException
- if a system exception occurredpublic int filterCountByG_U_PPPS(long groupId, long userId, String ppPaymentStatus) throws SystemException
filterCountByG_U_PPPS
in interface ShoppingOrderPersistence
groupId
- the group id to search withuserId
- the user id to search withppPaymentStatus
- the pp payment status to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingOrderPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |