|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.service.persistence.ShoppingCategoryUtil
public class ShoppingCategoryUtil
The persistence utility for the shopping category service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ShoppingCategoryPersistence,
ShoppingCategoryPersistenceImpl| 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 |
|---|
public ShoppingCategoryUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ShoppingCategory shoppingCategory)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ShoppingCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ShoppingCategory remove(ShoppingCategory shoppingCategory)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static ShoppingCategory update(ShoppingCategory shoppingCategory,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ShoppingCategory update(ShoppingCategory shoppingCategory,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(ShoppingCategory shoppingCategory)
shoppingCategory - the shopping category to cachepublic static void cacheResult(List<ShoppingCategory> shoppingCategories)
shoppingCategories - the shopping categories to cachepublic static ShoppingCategory create(long categoryId)
categoryId - the primary key for the new shopping category
public static ShoppingCategory remove(long categoryId)
throws SystemException,
NoSuchCategoryException
categoryId - the primary key of the shopping category to remove
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public static ShoppingCategory updateImpl(ShoppingCategory shoppingCategory,
boolean merge)
throws SystemException
SystemException
public static ShoppingCategory findByPrimaryKey(long categoryId)
throws SystemException,
NoSuchCategoryException
NoSuchCategoryException if it could not be found.
categoryId - the primary key of the shopping category to find
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public static ShoppingCategory fetchByPrimaryKey(long categoryId)
throws SystemException
null if it could not be found.
categoryId - the primary key of the shopping category to find
null if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByGroupId(long groupId,
int start,
int end)
throws SystemException
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.
groupId - the group id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
groupId - the group id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static ShoppingCategory findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
groupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
public static ShoppingCategory findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
groupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
public static ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
categoryId - the primary key of the current shopping categorygroupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByGroupId(long groupId,
int start,
int end)
throws SystemException
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.
groupId - the group id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
groupId - the group id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group id to search withparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
throws SystemException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)
SystemException - if a system exception occurred
public static List<ShoppingCategory> findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static ShoppingCategory findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
public static ShoppingCategory findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
public static ShoppingCategory[] findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
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.
categoryId - the primary key of the current shopping categorygroupId - the group id to search withparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group id to search withparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end)
throws SystemException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)
SystemException - if a system exception occurred
public static List<ShoppingCategory> filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
groupId - the group id to search withparentCategoryId - the parent category id to search withstart - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static List<ShoppingCategory> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<ShoppingCategory> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)
SystemException - if a system exception occurred
public static List<ShoppingCategory> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of shopping categories to returnend - the upper bound of the range of shopping categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
public static void removeByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group id to search withparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
public static int filterCountByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
public static int countByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group id to search withparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public static int filterCountByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group id to search withparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ShoppingCategoryPersistence getPersistence()
public void setPersistence(ShoppingCategoryPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||