com.liferay.portlet.shopping.service.persistence
Class ShoppingCouponUtil

java.lang.Object
  extended by com.liferay.portlet.shopping.service.persistence.ShoppingCouponUtil

public class ShoppingCouponUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCouponPersistence, ShoppingCouponPersistenceImpl
Generated:

Constructor Summary
ShoppingCouponUtil()
           
 
Method Summary
static void cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)
           
static void cacheResult(ShoppingCoupon shoppingCoupon)
           
static void clearCache()
           
static void clearCache(ShoppingCoupon shoppingCoupon)
           
static int countAll()
           
static int countByCode(java.lang.String code)
           
static int countByGroupId(long groupId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static ShoppingCoupon create(long couponId)
           
static ShoppingCoupon fetchByCode(java.lang.String code)
           
static ShoppingCoupon fetchByCode(java.lang.String code, boolean retrieveFromCache)
           
static ShoppingCoupon fetchByPrimaryKey(long couponId)
           
static java.util.List<ShoppingCoupon> findAll()
           
static java.util.List<ShoppingCoupon> findAll(int start, int end)
           
static java.util.List<ShoppingCoupon> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCoupon findByCode(java.lang.String code)
           
static ShoppingCoupon findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCoupon findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<ShoppingCoupon> findByGroupId(long groupId)
           
static java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end)
           
static java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCoupon findByPrimaryKey(long couponId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ShoppingCouponPersistence getPersistence()
           
static ShoppingCoupon remove(long couponId)
           
static ShoppingCoupon remove(ShoppingCoupon shoppingCoupon)
           
static void removeAll()
           
static void removeByCode(java.lang.String code)
           
static void removeByGroupId(long groupId)
           
 void setPersistence(ShoppingCouponPersistence persistence)
           
static ShoppingCoupon update(ShoppingCoupon shoppingCoupon)
          Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static ShoppingCoupon update(ShoppingCoupon shoppingCoupon, boolean merge)
           
static ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCouponUtil

public ShoppingCouponUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(ShoppingCoupon shoppingCoupon)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(ShoppingCoupon)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static ShoppingCoupon remove(ShoppingCoupon shoppingCoupon)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static ShoppingCoupon update(ShoppingCoupon shoppingCoupon,
                                    boolean merge)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(ShoppingCoupon shoppingCoupon)

cacheResult

public static void cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)

create

public static ShoppingCoupon create(long couponId)

remove

public static ShoppingCoupon remove(long couponId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

update

public static ShoppingCoupon update(ShoppingCoupon shoppingCoupon)
                             throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

public static ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon,
                                        boolean merge)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static ShoppingCoupon findByPrimaryKey(long couponId)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

fetchByPrimaryKey

public static ShoppingCoupon fetchByPrimaryKey(long couponId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingCoupon> findByGroupId(long groupId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingCoupon> findByGroupId(long groupId,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingCoupon> findByGroupId(long groupId,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static ShoppingCoupon findByGroupId_First(long groupId,
                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

findByGroupId_Last

public static ShoppingCoupon findByGroupId_Last(long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

findByGroupId_PrevAndNext

public static ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId,
                                                         long groupId,
                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

findByCode

public static ShoppingCoupon findByCode(java.lang.String code)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

fetchByCode

public static ShoppingCoupon fetchByCode(java.lang.String code)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByCode

public static ShoppingCoupon fetchByCode(java.lang.String code,
                                         boolean retrieveFromCache)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingCoupon> findAll()
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingCoupon> findAll(int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingCoupon> findAll(int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                              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,
                                NoSuchCouponException
Throws:
com.liferay.portal.SystemException
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)