|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShoppingCategoryPersistence
The persistence interface for the shopping category service.
Never modify or reference this interface directly. Always use ShoppingCategoryUtil
to access the shopping category persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
ShoppingCategoryPersistenceImpl
,
ShoppingCategoryUtil
Method Summary | |
---|---|
void |
cacheResult(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()
Counts all the shopping categories. |
int |
countByG_P(long groupId,
long parentCategoryId)
Counts all the shopping categories where groupId = ? and parentCategoryId = ?. |
int |
countByGroupId(long groupId)
Counts all the shopping categories where groupId = ?. |
ShoppingCategory |
create(long categoryId)
Creates a new shopping category with the primary key. |
ShoppingCategory |
fetchByPrimaryKey(long categoryId)
Finds the shopping category with the primary key or returns null if it could not be found. |
int |
filterCountByG_P(long groupId,
long parentCategoryId)
Filters by the user's permissions and counts all the shopping categories where groupId = ? and parentCategoryId = ?. |
int |
filterCountByGroupId(long groupId)
Filters by the user's permissions and counts all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId)
Filters by the user's permissions and finds all the shopping categories where groupId = ? and parentCategoryId = ?. |
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 = ?. |
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 = ?. |
List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Filters by the user's permissions and finds all the shopping categories where groupId = ?. |
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 = ?. |
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 = ?. |
List<ShoppingCategory> |
findAll()
Finds all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end)
Finds a range of all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping categories. |
ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Finds the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Finds the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
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 = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Finds all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
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 = ?. |
ShoppingCategory |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first shopping category in the ordered set where groupId = ?. |
ShoppingCategory |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last shopping category in the ordered set where groupId = ?. |
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 = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId)
Finds all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping categories where groupId = ?. |
ShoppingCategory |
findByPrimaryKey(long categoryId)
Finds 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. |
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,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(ShoppingCategory shoppingCategory)
shoppingCategory
- the shopping category to cachevoid cacheResult(List<ShoppingCategory> shoppingCategories)
shoppingCategories
- the shopping categories to cacheShoppingCategory 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 to remove
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception occurredShoppingCategory updateImpl(ShoppingCategory shoppingCategory, boolean merge) 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 to find
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception occurredShoppingCategory 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 occurredList<ShoppingCategory> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredList<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 occurredList<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 occurredShoppingCategory 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 occurredShoppingCategory 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 occurredShoppingCategory[] 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 occurredList<ShoppingCategory> filterFindByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredList<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 occurredList<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 occurredList<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 occurredList<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 occurredList<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 occurredShoppingCategory 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 occurredShoppingCategory 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 occurredShoppingCategory[] 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 occurredList<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 occurredList<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 occurredList<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 occurredList<ShoppingCategory> findAll() throws SystemException
SystemException
- if a system exception occurredList<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 occurredList<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 occurredvoid removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredvoid 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 occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredint filterCountByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredint 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 occurredint 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 occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |