Liferay 6.0.5

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

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

public class ShoppingCategoryUtil
extends Object

The persistence utility for the shopping category service. This utility wraps ShoppingCategoryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
ShoppingCategoryPersistence, ShoppingCategoryPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
ShoppingCategoryUtil()
           
 
Method Summary
static void cacheResult(List<ShoppingCategory> shoppingCategories)
          Caches the shopping categories in the entity cache if it is enabled.
static void cacheResult(ShoppingCategory shoppingCategory)
          Caches the shopping category in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(ShoppingCategory shoppingCategory)
           
static int countAll()
          Counts all the shopping categories.
static int countByG_P(long groupId, long parentCategoryId)
          Counts all the shopping categories where groupId = ? and parentCategoryId = ?.
static int countByGroupId(long groupId)
          Counts all the shopping categories where groupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static ShoppingCategory create(long categoryId)
          Creates a new shopping category with the primary key.
static ShoppingCategory fetchByPrimaryKey(long categoryId)
          Finds the shopping category with the primary key or returns null if it could not be found.
static int filterCountByG_P(long groupId, long parentCategoryId)
          Filters by the user's permissions and counts all the shopping categories where groupId = ? and parentCategoryId = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the shopping categories where groupId = ?.
static List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId)
          Filters by the user's permissions and finds all the shopping categories where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the shopping categories where groupId = ?.
static List<ShoppingCategory> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping categories where groupId = ?.
static List<ShoppingCategory> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ?.
static List<ShoppingCategory> findAll()
          Finds all the shopping categories.
static List<ShoppingCategory> findAll(int start, int end)
          Finds a range of all the shopping categories.
static List<ShoppingCategory> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping categories.
static ShoppingCategory findByG_P_First(long groupId, long parentCategoryId, OrderByComparator orderByComparator)
          Finds the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
static ShoppingCategory findByG_P_Last(long groupId, long parentCategoryId, OrderByComparator orderByComparator)
          Finds the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
static ShoppingCategory[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator orderByComparator)
          Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId)
          Finds all the shopping categories where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end)
          Finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?.
static List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.
static ShoppingCategory findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first shopping category in the ordered set where groupId = ?.
static ShoppingCategory findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last shopping category in the ordered set where groupId = ?.
static ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator)
          Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ?.
static List<ShoppingCategory> findByGroupId(long groupId)
          Finds all the shopping categories where groupId = ?.
static List<ShoppingCategory> findByGroupId(long groupId, int start, int end)
          Finds a range of all the shopping categories where groupId = ?.
static List<ShoppingCategory> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping categories where groupId = ?.
static ShoppingCategory findByPrimaryKey(long categoryId)
          Finds the shopping category with the primary key or throws a NoSuchCategoryException if it could not be found.
static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static ShoppingCategoryPersistence getPersistence()
           
static ShoppingCategory remove(long categoryId)
          Removes the shopping category with the primary key from the database.
static ShoppingCategory remove(ShoppingCategory shoppingCategory)
           
static void removeAll()
          Removes all the shopping categories from the database.
static void removeByG_P(long groupId, long parentCategoryId)
          Removes all the shopping categories where groupId = ? and parentCategoryId = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the shopping categories where groupId = ? from the database.
 void setPersistence(ShoppingCategoryPersistence persistence)
           
static ShoppingCategory update(ShoppingCategory shoppingCategory, boolean merge)
           
static ShoppingCategory update(ShoppingCategory shoppingCategory, boolean merge, ServiceContext serviceContext)
           
static ShoppingCategory updateImpl(ShoppingCategory shoppingCategory, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCategoryUtil

public ShoppingCategoryUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(ShoppingCategory shoppingCategory)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

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

update

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

update

public static ShoppingCategory update(ShoppingCategory shoppingCategory,
                                      boolean merge,
                                      ServiceContext serviceContext)
                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(ShoppingCategory shoppingCategory)
Caches the shopping category in the entity cache if it is enabled.

Parameters:
shoppingCategory - the shopping category to cache

cacheResult

public static void cacheResult(List<ShoppingCategory> shoppingCategories)
Caches the shopping categories in the entity cache if it is enabled.

Parameters:
shoppingCategories - the shopping categories to cache

create

public static ShoppingCategory create(long categoryId)
Creates a new shopping category with the primary key. Does not add the shopping category to the database.

Parameters:
categoryId - the primary key for the new shopping category
Returns:
the new shopping category

remove

public static ShoppingCategory remove(long categoryId)
                               throws SystemException,
                                      NoSuchCategoryException
Removes the shopping category with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
categoryId - the primary key of the shopping category to remove
Returns:
the shopping category that was removed
Throws:
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static ShoppingCategory updateImpl(ShoppingCategory shoppingCategory,
                                          boolean merge)
                                   throws SystemException
Throws:
SystemException

findByPrimaryKey

public static ShoppingCategory findByPrimaryKey(long categoryId)
                                         throws SystemException,
                                                NoSuchCategoryException
Finds the shopping category with the primary key or throws a NoSuchCategoryException if it could not be found.

Parameters:
categoryId - the primary key of the shopping category to find
Returns:
the shopping category
Throws:
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static ShoppingCategory fetchByPrimaryKey(long categoryId)
                                          throws SystemException
Finds the shopping category with the primary key or returns null if it could not be found.

Parameters:
categoryId - the primary key of the shopping category to find
Returns:
the shopping category, or null if a shopping category with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<ShoppingCategory> findByGroupId(long groupId)
                                            throws SystemException
Finds all the shopping categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching shopping categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<ShoppingCategory> findByGroupId(long groupId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Finds a range of all the shopping categories where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
Returns:
the range of matching shopping categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<ShoppingCategory> findByGroupId(long groupId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Finds an ordered range of all the shopping categories where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping categories
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static ShoppingCategory findByGroupId_First(long groupId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchCategoryException
Finds the first shopping category in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching shopping category
Throws:
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static ShoppingCategory findByGroupId_Last(long groupId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchCategoryException
Finds the last shopping category in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching shopping category
Throws:
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId,
                                                           long groupId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchCategoryException
Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ?.

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.

Parameters:
categoryId - the primary key of the current shopping category
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next shopping category
Throws:
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingCategory> filterFindByGroupId(long groupId)
                                                  throws SystemException
Filters by the user's permissions and finds all the shopping categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingCategory> filterFindByGroupId(long groupId,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Filters by the user's permissions and finds a range of all the shopping categories where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
Returns:
the range of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingCategory> filterFindByGroupId(long groupId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_P

public static List<ShoppingCategory> findByG_P(long groupId,
                                               long parentCategoryId)
                                        throws SystemException
Finds all the shopping categories where groupId = ? and parentCategoryId = ?.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
Returns:
the matching shopping categories
Throws:
SystemException - if a system exception occurred

findByG_P

public static List<ShoppingCategory> findByG_P(long groupId,
                                               long parentCategoryId,
                                               int start,
                                               int end)
                                        throws SystemException
Finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
Returns:
the range of matching shopping categories
Throws:
SystemException - if a system exception occurred

findByG_P

public static List<ShoppingCategory> findByG_P(long groupId,
                                               long parentCategoryId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping categories
Throws:
SystemException - if a system exception occurred

findByG_P_First

public static ShoppingCategory findByG_P_First(long groupId,
                                               long parentCategoryId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchCategoryException
Finds the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching shopping category
Throws:
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred

findByG_P_Last

public static ShoppingCategory findByG_P_Last(long groupId,
                                              long parentCategoryId,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchCategoryException
Finds the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching shopping category
Throws:
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred

findByG_P_PrevAndNext

public static ShoppingCategory[] findByG_P_PrevAndNext(long categoryId,
                                                       long groupId,
                                                       long parentCategoryId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchCategoryException
Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?.

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.

Parameters:
categoryId - the primary key of the current shopping category
groupId - the group id to search with
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next shopping category
Throws:
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_P

public static List<ShoppingCategory> filterFindByG_P(long groupId,
                                                     long parentCategoryId)
                                              throws SystemException
Filters by the user's permissions and finds all the shopping categories where groupId = ? and parentCategoryId = ?.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
Returns:
the matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public static List<ShoppingCategory> filterFindByG_P(long groupId,
                                                     long parentCategoryId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Filters by the user's permissions and finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
Returns:
the range of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public static List<ShoppingCategory> filterFindByG_P(long groupId,
                                                     long parentCategoryId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.

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.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingCategory> findAll()
                                      throws SystemException
Finds all the shopping categories.

Returns:
the shopping categories
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingCategory> findAll(int start,
                                             int end)
                                      throws SystemException
Finds a range of all the shopping categories.

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.

Parameters:
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
Returns:
the range of shopping categories
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingCategory> findAll(int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the shopping categories.

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.

Parameters:
start - the lower bound of the range of shopping categories to return
end - the upper bound of the range of shopping categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of shopping categories
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the shopping categories where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_P

public static void removeByG_P(long groupId,
                               long parentCategoryId)
                        throws SystemException
Removes all the shopping categories where groupId = ? and parentCategoryId = ? from the database.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the shopping categories from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the shopping categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching shopping categories
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the shopping categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_P

public static int countByG_P(long groupId,
                             long parentCategoryId)
                      throws SystemException
Counts all the shopping categories where groupId = ? and parentCategoryId = ?.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
Returns:
the number of matching shopping categories
Throws:
SystemException - if a system exception occurred

filterCountByG_P

public static int filterCountByG_P(long groupId,
                                   long parentCategoryId)
                            throws SystemException
Filters by the user's permissions and counts all the shopping categories where groupId = ? and parentCategoryId = ?.

Parameters:
groupId - the group id to search with
parentCategoryId - the parent category id to search with
Returns:
the number of matching shopping categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the shopping categories.

Returns:
the number of shopping categories
Throws:
SystemException - if a system exception occurred

getPersistence

public static ShoppingCategoryPersistence getPersistence()

setPersistence

public void setPersistence(ShoppingCategoryPersistence persistence)

Liferay 6.0.5