|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingCategory>
com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistenceImpl
public class ShoppingCategoryPersistenceImpl
The persistence implementation for the shopping category service.
Caching information and settings can be found in portal.properties
ShoppingCategoryPersistence,
ShoppingCategoryUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
ShoppingCategoryPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the shopping category persistence. |
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. |
void |
clearCache()
Clears the cache for all shopping categories. |
void |
clearCache(List<ShoppingCategory> shoppingCategories)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingCategory shoppingCategory)
Clears the cache for the shopping category. |
int |
countAll()
Returns the number of shopping categories. |
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. |
void |
destroy()
|
ShoppingCategory |
fetchByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
fetchByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?. |
ShoppingCategory |
fetchByGroupId_Last(long groupId,
OrderByComparator 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. |
ShoppingCategory |
fetchByPrimaryKey(Serializable primaryKey)
Returns the shopping category with the primary key or returns null if it could not be found. |
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,
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 = ?. |
List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Returns all the shopping categories that the user has permission to view where groupId = ?. |
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 = ?. |
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 = ?. |
protected ShoppingCategory |
filterGetByG_P_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected ShoppingCategory |
filterGetByGroupId_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
List<ShoppingCategory> |
findAll()
Returns all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end)
Returns a range of all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping categories. |
ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
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 = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Returns all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Returns 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)
Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping category in the ordered set where groupId = ?. |
ShoppingCategory |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping category in the ordered set where groupId = ?. |
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 = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId)
Returns all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the shopping category with the primary key or throws a NoSuchModelException if it could not be found. |
protected ShoppingCategory |
getByG_P_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected ShoppingCategory |
getByGroupId_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
ShoppingCategory |
remove(long categoryId)
Removes the shopping category with the primary key from the database. |
ShoppingCategory |
remove(Serializable primaryKey)
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. |
protected ShoppingCategory |
removeImpl(ShoppingCategory shoppingCategory)
Removes the model instance from the database. |
protected ShoppingCategory |
toUnwrappedModel(ShoppingCategory shoppingCategory)
|
ShoppingCategory |
updateImpl(ShoppingCategory shoppingCategory)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P
public static final FinderPath FINDER_PATH_COUNT_BY_G_P
| Constructor Detail |
|---|
public ShoppingCategoryPersistenceImpl()
| Method Detail |
|---|
public List<ShoppingCategory> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface ShoppingCategoryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public 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 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.
findByGroupId in interface ShoppingCategoryPersistencegroupId - 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
public 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 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.
findByGroupId in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByGroupId_First in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_First in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByGroupId_Last in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_Last in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByGroupId_PrevAndNext in interface ShoppingCategoryPersistencecategoryId - 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
protected ShoppingCategory getByGroupId_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingCategory> filterFindByGroupId(long groupId)
throws SystemException
filterFindByGroupId in interface ShoppingCategoryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public 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 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.
filterFindByGroupId in interface ShoppingCategoryPersistencegroupId - 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
public 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 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.
filterFindByGroupId in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory[] filterFindByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
filterFindByGroupId_PrevAndNext in interface ShoppingCategoryPersistencecategoryId - 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
protected ShoppingCategory filterGetByGroupId_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface ShoppingCategoryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface ShoppingCategoryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int filterCountByGroupId(long groupId)
throws SystemException
filterCountByGroupId in interface ShoppingCategoryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public List<ShoppingCategory> findByG_P(long groupId,
long parentCategoryId)
throws SystemException
findByG_P in interface ShoppingCategoryPersistencegroupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
public 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 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.
findByG_P in interface ShoppingCategoryPersistencegroupId - 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
public 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 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.
findByG_P in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByG_P_First in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory fetchByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_P_First in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByG_P_Last in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory fetchByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_P_Last in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory[] findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
findByG_P_PrevAndNext in interface ShoppingCategoryPersistencecategoryId - 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
protected ShoppingCategory getByG_P_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingCategory> filterFindByG_P(long groupId,
long parentCategoryId)
throws SystemException
filterFindByG_P in interface ShoppingCategoryPersistencegroupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
public 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 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.
filterFindByG_P in interface ShoppingCategoryPersistencegroupId - 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
public 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 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.
filterFindByG_P in interface ShoppingCategoryPersistencegroupId - 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
public ShoppingCategory[] filterFindByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
filterFindByG_P_PrevAndNext in interface ShoppingCategoryPersistencecategoryId - 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
protected ShoppingCategory filterGetByG_P_PrevAndNext(Session session,
ShoppingCategory shoppingCategory,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByG_P(long groupId,
long parentCategoryId)
throws SystemException
removeByG_P in interface ShoppingCategoryPersistencegroupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
public int countByG_P(long groupId,
long parentCategoryId)
throws SystemException
countByG_P in interface ShoppingCategoryPersistencegroupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurred
public int filterCountByG_P(long groupId,
long parentCategoryId)
throws SystemException
filterCountByG_P in interface ShoppingCategoryPersistencegroupId - the group IDparentCategoryId - the parent category ID
SystemException - if a system exception occurredpublic void cacheResult(ShoppingCategory shoppingCategory)
cacheResult in interface ShoppingCategoryPersistenceshoppingCategory - the shopping categorypublic void cacheResult(List<ShoppingCategory> shoppingCategories)
cacheResult in interface ShoppingCategoryPersistenceshoppingCategories - the shopping categoriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ShoppingCategory>clearCache in class BasePersistenceImpl<ShoppingCategory>public void clearCache(ShoppingCategory shoppingCategory)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ShoppingCategory>clearCache in class BasePersistenceImpl<ShoppingCategory>shoppingCategory - the instance of this model to clear the cache forpublic void clearCache(List<ShoppingCategory> shoppingCategories)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<ShoppingCategory>clearCache in class BasePersistenceImpl<ShoppingCategory>shoppingCategories - the List instances of this model to clear the cache forpublic ShoppingCategory create(long categoryId)
create in interface ShoppingCategoryPersistencecategoryId - the primary key for the new shopping category
public ShoppingCategory remove(long categoryId)
throws NoSuchCategoryException,
SystemException
remove in interface ShoppingCategoryPersistencecategoryId - 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
public ShoppingCategory remove(Serializable primaryKey)
throws NoSuchCategoryException,
SystemException
remove in interface BasePersistence<ShoppingCategory>remove in class BasePersistenceImpl<ShoppingCategory>primaryKey - 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
protected ShoppingCategory removeImpl(ShoppingCategory shoppingCategory)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<ShoppingCategory>shoppingCategory - the model instance to remove
SystemException - if a system exception occurred
public ShoppingCategory updateImpl(ShoppingCategory shoppingCategory)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ShoppingCategoryPersistenceupdateImpl in class BasePersistenceImpl<ShoppingCategory>shoppingCategory - the model instance to update
SystemException - if a system exception occurredprotected ShoppingCategory toUnwrappedModel(ShoppingCategory shoppingCategory)
public ShoppingCategory findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<ShoppingCategory>findByPrimaryKey in class BasePersistenceImpl<ShoppingCategory>primaryKey - the primary key of the shopping category
NoSuchModelException - if a shopping category with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingCategory findByPrimaryKey(long categoryId)
throws NoSuchCategoryException,
SystemException
NoSuchCategoryException if it could not be found.
findByPrimaryKey in interface ShoppingCategoryPersistencecategoryId - 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
public ShoppingCategory fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<ShoppingCategory>fetchByPrimaryKey in class BasePersistenceImpl<ShoppingCategory>primaryKey - 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
public ShoppingCategory fetchByPrimaryKey(long categoryId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface ShoppingCategoryPersistencecategoryId - 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
public List<ShoppingCategory> findAll()
throws SystemException
findAll in interface ShoppingCategoryPersistenceSystemException - if a system exception occurred
public 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 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.
findAll in interface ShoppingCategoryPersistencestart - 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
public 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 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.
findAll in interface ShoppingCategoryPersistencestart - 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
public void removeAll()
throws SystemException
removeAll in interface ShoppingCategoryPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface ShoppingCategoryPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||