com.liferay.portlet.shopping.service.persistence
Class ShoppingCartUtil
java.lang.Object
com.liferay.portlet.shopping.service.persistence.ShoppingCartUtil
- public class ShoppingCartUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByG_U(long groupId,
long userId)
|
static int |
countByGroupId(long groupId)
|
static int |
countByUserId(long userId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
create(long cartId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
fetchByG_U(long groupId,
long userId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
fetchByPrimaryKey(long cartId)
|
static java.util.List |
findAll()
|
static java.util.List |
findAll(int begin,
int end)
|
static java.util.List |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByG_U(long groupId,
long userId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart[] |
findByGroupId_PrevAndNext(long cartId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByGroupId(long groupId)
|
static java.util.List |
findByGroupId(long groupId,
int begin,
int end)
|
static java.util.List |
findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByPrimaryKey(long cartId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCart[] |
findByUserId_PrevAndNext(long cartId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByUserId(long userId)
|
static java.util.List |
findByUserId(long userId,
int begin,
int end)
|
static java.util.List |
findByUserId(long userId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static ShoppingCartPersistence |
getPersistence()
|
static com.liferay.portlet.shopping.model.ShoppingCart |
remove(long cartId)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
remove(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
|
static void |
removeAll()
|
static void |
removeByG_U(long groupId,
long userId)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(ShoppingCartPersistence persistence)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
update(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
|
static com.liferay.portlet.shopping.model.ShoppingCart |
update(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCartUtil
public ShoppingCartUtil()
create
public static com.liferay.portlet.shopping.model.ShoppingCart create(long cartId)
remove
public static com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
remove
public static com.liferay.portlet.shopping.model.ShoppingCart remove(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingCart update(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingCart update(com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(long cartId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
fetchByPrimaryKey
public static com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(long cartId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByGroupId_Last
public static com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByGroupId_PrevAndNext
public static com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(long cartId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByUserId
public static java.util.List findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List findByUserId(long userId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List findByUserId(long userId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByUserId_Last
public static com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByUserId_PrevAndNext
public static com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(long cartId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
findByG_U
public static com.liferay.portlet.shopping.model.ShoppingCart findByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
fetchByG_U
public static com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_U
public static void removeByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCartException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCartException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
public static int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_U
public static int countByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static ShoppingCartPersistence getPersistence()
setPersistence
public void setPersistence(ShoppingCartPersistence persistence)