|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.
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, FINDER_ARGS_EMPTY, 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(List<ShoppingOrder> shoppingOrders)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingOrder shoppingOrder)
Clears the cache for the shopping order. |
protected void |
clearUniqueFindersCache(ShoppingOrder shoppingOrder)
|
int |
countAll()
Returns the number of shopping orders. |
int |
countByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
int |
countByGroupId(long groupId)
Returns the number of shopping orders where groupId = ?. |
int |
countByNumber(String number)
Returns the number of shopping orders where number = ?. |
int |
countByPPTxnId(String ppTxnId)
Returns the number of shopping orders where ppTxnId = ?. |
ShoppingOrder |
create(long orderId)
Creates a new shopping order with the primary key. |
void |
destroy()
|
ShoppingOrder |
fetchByNumber(String number)
Returns the shopping order where number = ? or returns null if it could not be found. |
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. |
ShoppingOrder |
fetchByPPTxnId(String ppTxnId)
Returns the shopping order where ppTxnId = ? or returns null if it could not be found. |
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. |
ShoppingOrder |
fetchByPrimaryKey(long orderId)
Returns the shopping order with the primary key or returns null if it could not be found. |
ShoppingOrder |
fetchByPrimaryKey(Serializable primaryKey)
Returns 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)
Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. |
int |
filterCountByGroupId(long groupId)
Returns the number of shopping orders that the user has permission to view where groupId = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
List<ShoppingOrder> |
filterFindByGroupId(long groupId)
Returns all the shopping orders that the user has permission to view where groupId = ?. |
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 = ?. |
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 = ?. |
protected ShoppingOrder |
filterGetByG_U_PPPS_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator,
boolean previous)
|
protected ShoppingOrder |
filterGetByGroupId_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
List<ShoppingOrder> |
findAll()
Returns all the shopping orders. |
List<ShoppingOrder> |
findAll(int start,
int end)
Returns a range of all the shopping orders. |
List<ShoppingOrder> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders. |
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 = ?. |
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 = ?. |
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 = ?. |
List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
Returns 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)
Returns 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)
Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. |
ShoppingOrder |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?. |
ShoppingOrder |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?. |
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 = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId)
Returns all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping orders where groupId = ?. |
List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ?. |
ShoppingOrder |
findByNumber(String number)
Returns the shopping order where number = ? or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPPTxnId(String ppTxnId)
Returns the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPrimaryKey(long orderId)
Returns the shopping order with the primary key or throws a NoSuchOrderException if it could not be found. |
ShoppingOrder |
findByPrimaryKey(Serializable primaryKey)
Returns 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, getDB, 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 |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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_WITH_PAGINATION_FIND_BY_G_U_PPPS
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_PPPS
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_PPPS
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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 ShoppingOrderPersistenceshoppingOrder - the shopping orderpublic void cacheResult(List<ShoppingOrder> shoppingOrders)
cacheResult in interface ShoppingOrderPersistenceshoppingOrders - the shopping orderspublic 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 void clearCache(List<ShoppingOrder> shoppingOrders)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<ShoppingOrder>clearCache in class BasePersistenceImpl<ShoppingOrder>shoppingOrders - the List instances of this model to clear the cache forprotected void clearUniqueFindersCache(ShoppingOrder shoppingOrder)
public ShoppingOrder create(long orderId)
create in interface ShoppingOrderPersistenceorderId - the primary key for the new shopping order
public ShoppingOrder remove(long orderId)
throws NoSuchOrderException,
SystemException
remove in interface ShoppingOrderPersistenceorderId - 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 occurred
public ShoppingOrder remove(Serializable primaryKey)
throws NoSuchOrderException,
SystemException
remove in interface BasePersistence<ShoppingOrder>remove in class BasePersistenceImpl<ShoppingOrder>primaryKey - 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 occurred
protected ShoppingOrder removeImpl(ShoppingOrder shoppingOrder)
throws SystemException
BasePersistenceImplBasePersistenceImpl.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 occurred
public ShoppingOrder updateImpl(ShoppingOrder shoppingOrder,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ShoppingOrderPersistenceupdateImpl 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
NoSuchModelException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingOrder findByPrimaryKey(long orderId)
throws NoSuchOrderException,
SystemException
NoSuchOrderException if it could not be found.
findByPrimaryKey in interface ShoppingOrderPersistenceorderId - 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 occurred
public 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
null if a shopping order with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingOrder fetchByPrimaryKey(long orderId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface ShoppingOrderPersistenceorderId - 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 occurred
public List<ShoppingOrder> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface ShoppingOrderPersistencegroupId - the group ID
SystemException - if a system exception occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistenceorderId - 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 occurred
protected ShoppingOrder getByGroupId_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingOrder> filterFindByGroupId(long groupId)
throws SystemException
filterFindByGroupId in interface ShoppingOrderPersistencegroupId - the group ID
SystemException - if a system exception occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchOrderException,
SystemException
filterFindByGroupId_PrevAndNext in interface ShoppingOrderPersistenceorderId - 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 occurred
protected ShoppingOrder filterGetByGroupId_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public ShoppingOrder findByNumber(String number)
throws NoSuchOrderException,
SystemException
NoSuchOrderException if it could not be found.
findByNumber in interface ShoppingOrderPersistencenumber - the number
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred
public ShoppingOrder fetchByNumber(String number)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByNumber in interface ShoppingOrderPersistencenumber - the number
null if a matching shopping order could not be found
SystemException - if a system exception occurred
public ShoppingOrder fetchByNumber(String number,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByNumber in interface ShoppingOrderPersistencenumber - the numberretrieveFromCache - whether to use the finder cache
null if a matching shopping order could not be found
SystemException - if a system exception occurred
public ShoppingOrder findByPPTxnId(String ppTxnId)
throws NoSuchOrderException,
SystemException
NoSuchOrderException if it could not be found.
findByPPTxnId in interface ShoppingOrderPersistenceppTxnId - the pp txn ID
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred
public ShoppingOrder fetchByPPTxnId(String ppTxnId)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByPPTxnId in interface ShoppingOrderPersistenceppTxnId - the pp txn ID
null if a matching shopping order could not be found
SystemException - if a system exception occurred
public ShoppingOrder fetchByPPTxnId(String ppTxnId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByPPTxnId in interface ShoppingOrderPersistenceppTxnId - 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 occurred
public List<ShoppingOrder> findByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
throws SystemException
findByG_U_PPPS in interface ShoppingOrderPersistencegroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment status
SystemException - if a system exception occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistenceorderId - 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 occurred
protected 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 ShoppingOrderPersistencegroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment status
SystemException - if a system exception occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public 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 ShoppingOrderPersistencegroupId - 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 occurred
public ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator)
throws NoSuchOrderException,
SystemException
filterFindByG_U_PPPS_PrevAndNext in interface ShoppingOrderPersistenceorderId - 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 occurred
protected ShoppingOrder filterGetByG_U_PPPS_PrevAndNext(Session session,
ShoppingOrder shoppingOrder,
long groupId,
long userId,
String ppPaymentStatus,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingOrder> findAll()
throws SystemException
findAll in interface ShoppingOrderPersistenceSystemException - if a system exception occurred
public 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 ShoppingOrderPersistencestart - 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 occurred
public 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 ShoppingOrderPersistencestart - 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 occurred
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface ShoppingOrderPersistencegroupId - the group ID
SystemException - if a system exception occurred
public void removeByNumber(String number)
throws NoSuchOrderException,
SystemException
removeByNumber in interface ShoppingOrderPersistencenumber - the number
SystemException - if a system exception occurred
NoSuchOrderException
public void removeByPPTxnId(String ppTxnId)
throws NoSuchOrderException,
SystemException
removeByPPTxnId in interface ShoppingOrderPersistenceppTxnId - the pp txn ID
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 ShoppingOrderPersistencegroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment status
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface ShoppingOrderPersistenceSystemException - if a system exception occurred
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface ShoppingOrderPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int filterCountByGroupId(long groupId)
throws SystemException
filterCountByGroupId in interface ShoppingOrderPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int countByNumber(String number)
throws SystemException
countByNumber in interface ShoppingOrderPersistencenumber - the number
SystemException - if a system exception occurred
public int countByPPTxnId(String ppTxnId)
throws SystemException
countByPPTxnId in interface ShoppingOrderPersistenceppTxnId - the pp txn ID
SystemException - if a system exception occurred
public int countByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
throws SystemException
countByG_U_PPPS in interface ShoppingOrderPersistencegroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment status
SystemException - if a system exception occurred
public int filterCountByG_U_PPPS(long groupId,
long userId,
String ppPaymentStatus)
throws SystemException
filterCountByG_U_PPPS in interface ShoppingOrderPersistencegroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment status
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface ShoppingOrderPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||