|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface ShoppingCategoryPersistence
The persistence interface for the shopping category service.
Caching information and settings can be found in portal.properties
ShoppingCategoryPersistenceImpl,
ShoppingCategoryUtil| Method Summary | |
|---|---|
abstract void |
cacheResult(List<ShoppingCategory> shoppingCategories)
Caches the shopping categories in the entity cache if it is enabled. |
abstract void |
cacheResult(ShoppingCategory shoppingCategory)
Caches the shopping category in the entity cache if it is enabled. |
abstract int |
countAll()
Returns the number of shopping categories. |
abstract int |
countByG_N(long groupId,
String name)
Returns the number of shopping categories where groupId = ? and name = ?. |
abstract int |
countByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories where groupId = ? and parentCategoryId = ?. |
abstract int |
countByGroupId(long groupId)
Returns the number of shopping categories where groupId = ?. |
abstract ShoppingCategory |
create(long categoryId)
Creates a new shopping category with the primary key. |
abstract ShoppingCategory |
fetchByG_N(long groupId,
String name)
Returns the shopping category where groupId = ? and name = ? or returns null if it could not be found. |
abstract ShoppingCategory |
fetchByG_N(long groupId,
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. |
abstract ShoppingCategory |
fetchByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory |
fetchByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?. |
abstract ShoppingCategory |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?. |
abstract ShoppingCategory |
fetchByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or returns null if it could not be found. |
abstract int |
filterCountByG_P(long groupId,
long parentCategoryId)
Returns the number of shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. |
abstract int |
filterCountByGroupId(long groupId)
Returns the number of shopping categories that the user has permission to view where groupId = ?. |
abstract ShoppingCategory[] |
filterFindByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator 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 = ?. |
abstract List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. |
abstract 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 = ?. |
abstract List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory[] |
filterFindByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator 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 = ?. |
abstract List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Returns all the shopping categories that the user has permission to view where groupId = ?. |
abstract 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 = ?. |
abstract List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ?. |
abstract List<ShoppingCategory> |
findAll()
Returns all the shopping categories. |
abstract List<ShoppingCategory> |
findAll(int start,
int end)
Returns a range of all the shopping categories. |
abstract List<ShoppingCategory> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories. |
abstract ShoppingCategory |
findByG_N(long groupId,
String name)
Returns the shopping category where groupId = ? and name = ? or throws a NoSuchCategoryException if it could not be found. |
abstract ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory[] |
findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
abstract List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories where groupId = ? and parentCategoryId = ?. |
abstract List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
abstract List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
abstract ShoppingCategory |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?. |
abstract ShoppingCategory |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?. |
abstract ShoppingCategory[] |
findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ?. |
abstract List<ShoppingCategory> |
findByGroupId(long groupId)
Returns all the shopping categories where groupId = ?. |
abstract List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ?. |
abstract List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories where groupId = ?. |
abstract ShoppingCategory |
findByPrimaryKey(long categoryId)
Returns the shopping category with the primary key or throws a NoSuchCategoryException if it could not be found. |
abstract ShoppingCategory |
remove(long categoryId)
Removes the shopping category with the primary key from the database. |
abstract void |
removeAll()
Removes all the shopping categories from the database. |
abstract ShoppingCategory |
removeByG_N(long groupId,
String name)
Removes the shopping category where groupId = ? and name = ? from the database. |
abstract void |
removeByG_P(long groupId,
long parentCategoryId)
Removes all the shopping categories where groupId = ? and parentCategoryId = ? from the database. |
abstract void |
removeByGroupId(long groupId)
Removes all the shopping categories where groupId = ? from the database. |
abstract ShoppingCategory |
updateImpl(ShoppingCategory shoppingCategory)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<ShoppingCategory> findByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
ShoppingCategory findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCategoryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
List<ShoppingCategory> filterFindByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
ShoppingCategory[] filterFindByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int filterCountByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
List<ShoppingCategory> findByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
ShoppingCategory findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
ShoppingCategory fetchByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException
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 found
SystemException - if a system exception occurred
ShoppingCategory findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
ShoppingCategory fetchByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException
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 found
SystemException - if a system exception occurred
ShoppingCategory[] findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
List<ShoppingCategory> filterFindByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
ShoppingCategory[] filterFindByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException,
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 found
SystemException - if a system exception occurred
void removeByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
int countByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
int filterCountByG_P(long groupId,
long parentCategoryId)
throws SystemException
groupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
ShoppingCategory findByG_N(long groupId,
String name)
throws SystemException,
NoSuchCategoryException
NoSuchCategoryException if it could not be found.
groupId - the group IDname - the name
NoSuchCategoryException - if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory fetchByG_N(long groupId,
String name)
throws SystemException
null if it could not be found. Uses the finder cache.
groupId - the group IDname - the name
null if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
groupId - the group IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching shopping category could not be found
SystemException - if a system exception occurred
ShoppingCategory removeByG_N(long groupId,
String name)
throws SystemException,
NoSuchCategoryException
groupId - the group IDname - the name
SystemException - if a system exception occurred
NoSuchCategoryException
int countByG_N(long groupId,
String name)
throws SystemException
groupId - the group IDname - the name
SystemException - if a system exception occurredvoid cacheResult(ShoppingCategory shoppingCategory)
shoppingCategory - the shopping categoryvoid cacheResult(List<ShoppingCategory> shoppingCategories)
shoppingCategories - the shopping categoriesShoppingCategory create(long categoryId)
categoryId - the primary key for the new shopping category
ShoppingCategory remove(long categoryId)
throws SystemException,
NoSuchCategoryException
categoryId - the primary key of the shopping category
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
ShoppingCategory updateImpl(ShoppingCategory shoppingCategory)
throws SystemException
SystemException
ShoppingCategory findByPrimaryKey(long categoryId)
throws SystemException,
NoSuchCategoryException
NoSuchCategoryException if it could not be found.
categoryId - the primary key of the shopping category
NoSuchCategoryException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
ShoppingCategory fetchByPrimaryKey(long categoryId)
throws SystemException
null if it could not be found.
categoryId - the primary key of the shopping category
null if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
List<ShoppingCategory> findAll()
throws SystemException
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
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. 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 com.liferay.portlet.shopping.model.impl.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)
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||