com.liferay.portlet.shopping.service.persistence
Class ShoppingCouponUtil
java.lang.Object
com.liferay.portlet.shopping.service.persistence.ShoppingCouponUtil
- public class ShoppingCouponUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByCode(java.lang.String code)
|
static int |
countByGroupId(long groupId)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
create(long couponId)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
fetchByCode(java.lang.String code)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
fetchByPrimaryKey(long couponId)
|
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.ShoppingCoupon |
findByCode(java.lang.String code)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon[] |
findByGroupId_PrevAndNext(long couponId,
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.ShoppingCoupon |
findByPrimaryKey(long couponId)
|
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 ShoppingCouponPersistence |
getPersistence()
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
remove(long couponId)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
remove(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
|
static void |
removeAll()
|
static void |
removeByCode(java.lang.String code)
|
static void |
removeByGroupId(long groupId)
|
void |
setPersistence(ShoppingCouponPersistence persistence)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
update(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
update(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCouponUtil
public ShoppingCouponUtil()
create
public static com.liferay.portlet.shopping.model.ShoppingCoupon create(long couponId)
remove
public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(long couponId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
remove
public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingCoupon update(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingCoupon update(com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(long couponId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
fetchByPrimaryKey
public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(long couponId)
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.ShoppingCoupon findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
findByGroupId_Last
public static com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
findByGroupId_PrevAndNext
public static com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
findByCode
public static com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(java.lang.String code)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
fetchByCode
public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(java.lang.String code)
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
removeByCode
public static void removeByCode(java.lang.String code)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchCouponException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchCouponException
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
countByCode
public static int countByCode(java.lang.String code)
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 ShoppingCouponPersistence getPersistence()
setPersistence
public void setPersistence(ShoppingCouponPersistence persistence)