@ProviderType
public class ShoppingCategoryUtil
extends java.lang.Object
com.liferay.portlet.shopping.service.persistence.impl.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.
Caching information and settings can be found in portal.properties
ShoppingCategoryPersistence,
com.liferay.portlet.shopping.service.persistence.impl.ShoppingCategoryPersistenceImpl| Constructor and Description |
|---|
ShoppingCategoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.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()
Returns the number of shopping categories.
|
static int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of shopping categories where groupId = ? and name = ?.
|
static int |
countByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories where groupId = ? and parentCategoryId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of shopping categories where groupId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static ShoppingCategory |
create(long categoryId)
Creates a new shopping category with the primary key.
|
static ShoppingCategory |
fetchByG_N(long groupId,
java.lang.String name)
Returns the shopping category where groupId = ? and name = ? or returns
null if it could not be found. |
static ShoppingCategory |
fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
Returns the shopping category where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ShoppingCategory |
fetchByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory |
fetchByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory |
fetchByGroupId_First(long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?.
|
static ShoppingCategory |
fetchByGroupId_Last(long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?.
|
static ShoppingCategory |
fetchByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ShoppingCategory> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of shopping categories that the user has permission to view where groupId = ?.
|
static ShoppingCategory[] |
filterFindByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set of shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Returns a range of all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory[] |
filterFindByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set of shopping categories that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Returns all the shopping categories that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping categories that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ?.
|
static java.util.List<ShoppingCategory> |
findAll()
Returns all the shopping categories.
|
static java.util.List<ShoppingCategory> |
findAll(int start,
int end)
Returns a range of all the shopping categories.
|
static java.util.List<ShoppingCategory> |
findAll(int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories.
|
static ShoppingCategory |
findByG_N(long groupId,
java.lang.String name)
Returns the shopping category where groupId = ? and name = ? or throws a
NoSuchCategoryException if it could not be found. |
static ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory[] |
findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ? and parentCategoryId = ?.
|
static java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.
|
static ShoppingCategory |
findByGroupId_First(long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?.
|
static ShoppingCategory |
findByGroupId_Last(long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?.
|
static ShoppingCategory[] |
findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ?.
|
static java.util.List<ShoppingCategory> |
findByGroupId(long groupId)
Returns all the shopping categories where groupId = ?.
|
static java.util.List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ?.
|
static java.util.List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ?.
|
static ShoppingCategory |
findByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or throws a
NoSuchCategoryException if it could not be found. |
static java.util.List<ShoppingCategory> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<ShoppingCategory> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ShoppingCategory> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ShoppingCategory> orderByComparator) |
static ShoppingCategoryPersistence |
getPersistence() |
static ShoppingCategory |
remove(long categoryId)
Removes the shopping category with the primary key from the database.
|
static void |
removeAll()
Removes all the shopping categories from the database.
|
static ShoppingCategory |
removeByG_N(long groupId,
java.lang.String name)
Removes the shopping category where groupId = ? and name = ? 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)
Deprecated.
As of 6.2.0
|
static ShoppingCategory |
update(ShoppingCategory shoppingCategory) |
static ShoppingCategory |
update(ShoppingCategory shoppingCategory,
ServiceContext serviceContext) |
static ShoppingCategory |
updateImpl(ShoppingCategory shoppingCategory) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ShoppingCategory shoppingCategory)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ShoppingCategory> orderByComparator)
public static ShoppingCategory update(ShoppingCategory shoppingCategory)
public static ShoppingCategory update(ShoppingCategory shoppingCategory, ServiceContext serviceContext)
public static java.util.List<ShoppingCategory> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<ShoppingCategory> findByGroupId(long groupId, 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)public static java.util.List<ShoppingCategory> findByGroupId(long groupId, int start, int end, OrderByComparator<ShoppingCategory> 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingCategory findByGroupId_First(long groupId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a matching shopping category could not be foundpublic static ShoppingCategory fetchByGroupId_First(long groupId, OrderByComparator<ShoppingCategory> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping category could not be foundpublic static ShoppingCategory findByGroupId_Last(long groupId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a matching shopping category could not be foundpublic static ShoppingCategory fetchByGroupId_Last(long groupId, OrderByComparator<ShoppingCategory> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping category could not be foundpublic static ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
categoryId - the primary key of the current shopping categorygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static java.util.List<ShoppingCategory> filterFindByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<ShoppingCategory> filterFindByGroupId(long groupId, 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)public static java.util.List<ShoppingCategory> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<ShoppingCategory> 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingCategory[] filterFindByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
categoryId - the primary key of the current shopping categorygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group IDpublic static int filterCountByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDpublic static java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDparentCategoryId - the parent category IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)public static java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end, OrderByComparator<ShoppingCategory> 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDparentCategoryId - the parent category IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingCategory findByG_P_First(long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
groupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a matching shopping category could not be foundpublic static ShoppingCategory fetchByG_P_First(long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator)
groupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping category could not be foundpublic static ShoppingCategory findByG_P_Last(long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
groupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a matching shopping category could not be foundpublic static ShoppingCategory fetchByG_P_Last(long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator)
groupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping category could not be foundpublic static ShoppingCategory[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
categoryId - the primary key of the current shopping categorygroupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static java.util.List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDpublic static java.util.List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId, 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDparentCategoryId - the parent category IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)public static java.util.List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId, int start, int end, OrderByComparator<ShoppingCategory> 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDparentCategoryId - the parent category IDstart - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingCategory[] filterFindByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator<ShoppingCategory> orderByComparator) throws NoSuchCategoryException
categoryId - the primary key of the current shopping categorygroupId - the group IDparentCategoryId - the parent category IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static void removeByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDpublic static int countByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDpublic static int filterCountByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDpublic static ShoppingCategory findByG_N(long groupId, java.lang.String name) throws NoSuchCategoryException
NoSuchCategoryException if it could not be found.groupId - the group IDname - the nameNoSuchCategoryException - if a matching shopping category could not be foundpublic static ShoppingCategory fetchByG_N(long groupId, java.lang.String name)
null if it could not be found. Uses the finder cache.groupId - the group IDname - the namenull if a matching shopping category could not be foundpublic static ShoppingCategory fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDname - the nameretrieveFromCache - whether to use the finder cachenull if a matching shopping category could not be foundpublic static ShoppingCategory removeByG_N(long groupId, java.lang.String name) throws NoSuchCategoryException
groupId - the group IDname - the nameNoSuchCategoryExceptionpublic static int countByG_N(long groupId,
java.lang.String name)
groupId - the group IDname - the namepublic static void cacheResult(ShoppingCategory shoppingCategory)
shoppingCategory - the shopping categorypublic static void cacheResult(java.util.List<ShoppingCategory> shoppingCategories)
shoppingCategories - the shopping categoriespublic static ShoppingCategory create(long categoryId)
categoryId - the primary key for the new shopping categorypublic static ShoppingCategory remove(long categoryId) throws NoSuchCategoryException
categoryId - the primary key of the shopping categoryNoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static ShoppingCategory updateImpl(ShoppingCategory shoppingCategory)
public static ShoppingCategory findByPrimaryKey(long categoryId) throws NoSuchCategoryException
NoSuchCategoryException if it could not be found.categoryId - the primary key of the shopping categoryNoSuchCategoryException - if a shopping category with the primary key could not be foundpublic static ShoppingCategory fetchByPrimaryKey(long categoryId)
null if it could not be found.categoryId - the primary key of the shopping categorynull if a shopping category with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,ShoppingCategory> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<ShoppingCategory> findAll()
public static java.util.List<ShoppingCategory> findAll(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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)public static java.util.List<ShoppingCategory> findAll(int start, int end, OrderByComparator<ShoppingCategory> 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ShoppingCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of shopping categoriesend - the upper bound of the range of shopping categories (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static void removeAll()
public static int countAll()
public static ShoppingCategoryPersistence getPersistence()
@Deprecated public void setPersistence(ShoppingCategoryPersistence persistence)