public class ShoppingCartLocalServiceWrapper extends java.lang.Object implements ServiceWrapper<ShoppingCartLocalService>, 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) |
PersistedModel |
deletePersistedModel(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) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(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(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
ShoppingCart |
fetchShoppingCart(long cartId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
ShoppingCart |
getCart(long userId,
long groupId) |
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.
|
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 ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
addShoppingCart
in interface ShoppingCartLocalService
shoppingCart
- the shopping cartpublic ShoppingCart createShoppingCart(long cartId)
createShoppingCart
in interface ShoppingCartLocalService
cartId
- the primary key for the new shopping cartpublic void deleteGroupCarts(long groupId)
deleteGroupCarts
in interface ShoppingCartLocalService
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
deletePersistedModel
in interface ShoppingCartLocalService
PortalException
public ShoppingCart deleteShoppingCart(long cartId) throws PortalException
deleteShoppingCart
in interface ShoppingCartLocalService
cartId
- the primary key of the shopping cartPortalException
- if a shopping cart with the primary key could not be foundpublic ShoppingCart deleteShoppingCart(ShoppingCart shoppingCart)
deleteShoppingCart
in interface ShoppingCartLocalService
shoppingCart
- the shopping cartpublic void deleteUserCarts(long userId)
deleteUserCarts
in interface ShoppingCartLocalService
public DynamicQuery dynamicQuery()
dynamicQuery
in interface ShoppingCartLocalService
public <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface ShoppingCartLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl
.
dynamicQuery
in interface ShoppingCartLocalService
dynamicQuery
- 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(DynamicQuery dynamicQuery, int start, int end, 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl
.
dynamicQuery
in interface ShoppingCartLocalService
dynamicQuery
- 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 long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface ShoppingCartLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface ShoppingCartLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic ShoppingCart fetchShoppingCart(long cartId)
fetchShoppingCart
in interface ShoppingCartLocalService
public ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface ShoppingCartLocalService
public ShoppingCart getCart(long userId, long groupId) throws PortalException
getCart
in interface ShoppingCartLocalService
PortalException
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface ShoppingCartLocalService
public java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId, java.lang.String itemIds)
getItems
in interface ShoppingCartLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface ShoppingCartLocalService
public PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface ShoppingCartLocalService
PortalException
public ShoppingCart getShoppingCart(long cartId) throws PortalException
getShoppingCart
in interface ShoppingCartLocalService
cartId
- the primary key of the shopping cartPortalException
- if a shopping cart with the primary key could not be foundpublic 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingCartModelImpl
.
getShoppingCarts
in interface ShoppingCartLocalService
start
- the lower bound of the range of shopping cartsend
- the upper bound of the range of shopping carts (not inclusive)public int getShoppingCartsCount()
getShoppingCartsCount
in interface ShoppingCartLocalService
public ShoppingCart updateCart(long userId, long groupId, java.lang.String itemIds, java.lang.String couponCodes, int altShipping, boolean insure) throws PortalException
updateCart
in interface ShoppingCartLocalService
PortalException
public ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
updateShoppingCart
in interface ShoppingCartLocalService
shoppingCart
- the shopping cartpublic ShoppingCartLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<ShoppingCartLocalService>
public void setWrappedService(ShoppingCartLocalService shoppingCartLocalService)
setWrappedService
in interface ServiceWrapper<ShoppingCartLocalService>