@ProviderType public class ShoppingCartLocalServiceWrapper extends java.lang.Object implements ShoppingCartLocalService, com.liferay.portal.kernel.service.ServiceWrapper<ShoppingCartLocalService>
ShoppingCartLocalService.ShoppingCartLocalService| Constructor and Description |
|---|
ShoppingCartLocalServiceWrapper(ShoppingCartLocalService shoppingCartLocalService) |
| Modifier and Type | Method and Description |
|---|---|
ShoppingCart |
addShoppingCart(ShoppingCart shoppingCart)
Adds the shopping cart to the database.
|
ShoppingCart |
createShoppingCart(long cartId)
Creates a new shopping cart with the primary key.
|
void |
deleteGroupCarts(long groupId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
ShoppingCart |
deleteShoppingCart(long cartId)
Deletes the shopping cart with the primary key from the database.
|
ShoppingCart |
deleteShoppingCart(ShoppingCart shoppingCart)
Deletes the shopping cart from the database.
|
void |
deleteUserCarts(long userId) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
ShoppingCart |
fetchShoppingCart(long cartId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
ShoppingCart |
getCart(long userId,
long groupId) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.util.Map<ShoppingCartItem,java.lang.Integer> |
getItems(long groupId,
java.lang.String itemIds) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
ShoppingCart |
getShoppingCart(long cartId)
Returns the shopping cart with the primary key.
|
java.util.List<ShoppingCart> |
getShoppingCarts(int start,
int end)
Returns a range of all the shopping carts.
|
int |
getShoppingCartsCount()
Returns the number of shopping carts.
|
ShoppingCartLocalService |
getWrappedService() |
void |
setWrappedService(ShoppingCartLocalService shoppingCartLocalService) |
ShoppingCart |
updateCart(long userId,
long groupId,
java.lang.String itemIds,
java.lang.String couponCodes,
int altShipping,
boolean insure) |
ShoppingCart |
updateShoppingCart(ShoppingCart shoppingCart)
Updates the shopping cart in the database or adds it if it does not yet exist.
|
public ShoppingCartLocalServiceWrapper(ShoppingCartLocalService shoppingCartLocalService)
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface ShoppingCartLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface ShoppingCartLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface ShoppingCartLocalServicepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedeletePersistedModel in interface ShoppingCartLocalServicePortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicegetPersistedModel in interface ShoppingCartLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
addShoppingCart in interface ShoppingCartLocalServiceshoppingCart - the shopping cartpublic ShoppingCart createShoppingCart(long cartId)
createShoppingCart in interface ShoppingCartLocalServicecartId - the primary key for the new shopping cartpublic ShoppingCart deleteShoppingCart(ShoppingCart shoppingCart)
deleteShoppingCart in interface ShoppingCartLocalServiceshoppingCart - the shopping cartpublic ShoppingCart deleteShoppingCart(long cartId) throws com.liferay.portal.kernel.exception.PortalException
deleteShoppingCart in interface ShoppingCartLocalServicecartId - the primary key of the shopping cartPortalException - if a shopping cart with the primary key could not be foundpublic ShoppingCart fetchShoppingCart(long cartId)
fetchShoppingCart in interface ShoppingCartLocalServicepublic ShoppingCart getCart(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCart in interface ShoppingCartLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingCart getShoppingCart(long cartId) throws com.liferay.portal.kernel.exception.PortalException
getShoppingCart in interface ShoppingCartLocalServicecartId - the primary key of the shopping cartPortalException - if a shopping cart with the primary key could not be foundpublic ShoppingCart updateCart(long userId, long groupId, java.lang.String itemIds, java.lang.String couponCodes, int altShipping, boolean insure) throws com.liferay.portal.kernel.exception.PortalException
updateCart in interface ShoppingCartLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
updateShoppingCart in interface ShoppingCartLocalServiceshoppingCart - the shopping cartpublic int getShoppingCartsCount()
getShoppingCartsCount in interface ShoppingCartLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface ShoppingCartLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface ShoppingCartLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface ShoppingCartLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface ShoppingCartLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<ShoppingCart> getShoppingCarts(int start, int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getShoppingCarts in interface ShoppingCartLocalServicestart - the lower bound of the range of shopping cartsend - the upper bound of the range of shopping carts (not inclusive)public java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId, java.lang.String itemIds)
getItems in interface ShoppingCartLocalServicepublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface ShoppingCartLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface ShoppingCartLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic void deleteGroupCarts(long groupId)
deleteGroupCarts in interface ShoppingCartLocalServicepublic void deleteUserCarts(long userId)
deleteUserCarts in interface ShoppingCartLocalServicepublic ShoppingCartLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ShoppingCartLocalService>public void setWrappedService(ShoppingCartLocalService shoppingCartLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ShoppingCartLocalService>