@ProviderType public interface ShoppingCategoryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<ShoppingCategory>
Caching information and settings can be found in portal.properties
com.liferay.shopping.service.persistence.impl.ShoppingCategoryPersistenceImpl,
ShoppingCategoryUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<ShoppingCategory> shoppingCategories)
Caches the shopping categories in the entity cache if it is enabled.
|
void |
cacheResult(ShoppingCategory shoppingCategory)
Caches the shopping category in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of shopping categories.
|
int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of shopping categories where groupId = ? and name = ?.
|
int |
countByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories where groupId = ? and parentCategoryId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of shopping categories where groupId = ?.
|
ShoppingCategory |
create(long categoryId)
Creates a new shopping category with the primary key.
|
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. |
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. |
ShoppingCategory |
fetchByG_P_First(long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory |
fetchByG_P_Last(long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?.
|
ShoppingCategory |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?.
|
ShoppingCategory |
fetchByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,ShoppingCategory> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
int |
filterCountByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of shopping categories that the user has permission to view where groupId = ?.
|
ShoppingCategory[] |
filterFindByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory[] |
filterFindByGroupId_PrevAndNext(long categoryId,
long groupId,
com.liferay.portal.kernel.util.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 = ?.
|
java.util.List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Returns all the shopping categories that the user has permission to view where groupId = ?.
|
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 = ?.
|
java.util.List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ?.
|
java.util.List<ShoppingCategory> |
findAll()
Returns all the shopping categories.
|
java.util.List<ShoppingCategory> |
findAll(int start,
int end)
Returns a range of all the shopping categories.
|
java.util.List<ShoppingCategory> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories.
|
java.util.List<ShoppingCategory> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the shopping categories.
|
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. |
ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory[] |
findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?.
|
java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories where groupId = ? and parentCategoryId = ?.
|
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 = ?.
|
java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.
|
java.util.List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?.
|
ShoppingCategory |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?.
|
ShoppingCategory |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?.
|
ShoppingCategory[] |
findByGroupId_PrevAndNext(long categoryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ?.
|
java.util.List<ShoppingCategory> |
findByGroupId(long groupId)
Returns all the shopping categories where groupId = ?.
|
java.util.List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ?.
|
java.util.List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ?.
|
java.util.List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the shopping categories where groupId = ?.
|
ShoppingCategory |
findByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or throws a
NoSuchCategoryException if it could not be found. |
ShoppingCategory |
remove(long categoryId)
Removes the shopping category with the primary key from the database.
|
void |
removeAll()
Removes all the shopping categories from the database.
|
ShoppingCategory |
removeByG_N(long groupId,
java.lang.String name)
Removes the shopping category where groupId = ? and name = ? from the database.
|
void |
removeByG_P(long groupId,
long parentCategoryId)
Removes all the shopping categories where groupId = ? and parentCategoryId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the shopping categories where groupId = ? from the database.
|
ShoppingCategory |
updateImpl(ShoppingCategory shoppingCategory) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<ShoppingCategory> findByGroupId(long groupId)
groupId - the group IDjava.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)java.util.List<ShoppingCategory> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.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)java.util.List<ShoppingCategory> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator, boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cacheShoppingCategory findByGroupId_First(long groupId, com.liferay.portal.kernel.util.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 foundShoppingCategory fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.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 foundShoppingCategory findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.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 foundShoppingCategory fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.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 foundShoppingCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, com.liferay.portal.kernel.util.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 foundjava.util.List<ShoppingCategory> filterFindByGroupId(long groupId)
groupId - the group IDjava.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)java.util.List<ShoppingCategory> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.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)ShoppingCategory[] filterFindByGroupId_PrevAndNext(long categoryId, long groupId, com.liferay.portal.kernel.util.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 foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDint filterCountByGroupId(long groupId)
groupId - the group IDjava.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDjava.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)java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.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)java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator, boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cacheShoppingCategory findByG_P_First(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundShoppingCategory fetchByG_P_First(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundShoppingCategory findByG_P_Last(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundShoppingCategory fetchByG_P_Last(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundShoppingCategory[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundjava.util.List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDjava.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)java.util.List<ShoppingCategory> filterFindByG_P(long groupId, long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.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)ShoppingCategory[] filterFindByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, com.liferay.portal.kernel.util.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 foundvoid removeByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDint countByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDint filterCountByG_P(long groupId,
long parentCategoryId)
groupId - the group IDparentCategoryId - the parent category IDShoppingCategory 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 foundShoppingCategory 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 foundShoppingCategory 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 retrieve from the finder cachenull if a matching shopping category could not be foundShoppingCategory removeByG_N(long groupId, java.lang.String name) throws NoSuchCategoryException
groupId - the group IDname - the nameNoSuchCategoryExceptionint countByG_N(long groupId,
java.lang.String name)
groupId - the group IDname - the namevoid cacheResult(ShoppingCategory shoppingCategory)
shoppingCategory - the shopping categoryvoid cacheResult(java.util.List<ShoppingCategory> shoppingCategories)
shoppingCategories - the shopping categoriesShoppingCategory create(long categoryId)
categoryId - the primary key for the new shopping categoryShoppingCategory remove(long categoryId) throws NoSuchCategoryException
categoryId - the primary key of the shopping categoryNoSuchCategoryException - if a shopping category with the primary key could not be foundShoppingCategory updateImpl(ShoppingCategory shoppingCategory)
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 foundShoppingCategory 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 foundjava.util.Map<java.io.Serializable,ShoppingCategory> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<ShoppingCategory>java.util.List<ShoppingCategory> findAll()
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)java.util.List<ShoppingCategory> findAll(int start, int end, com.liferay.portal.kernel.util.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)java.util.List<ShoppingCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCategory> orderByComparator, boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()