|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
protected void |
cacheUniqueFindersCache(ShoppingCategory shoppingCategory)
|
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. |
protected void |
clearUniqueFindersCache(ShoppingCategory shoppingCategory)
|
int |
countAll()
Returns the number of shopping categories. |
int |
countByG_N(long groupId,
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. |
void |
destroy()
|
ShoppingCategory |
fetchByG_N(long groupId,
String name)
Returns the shopping category where groupId = ? and name = ? or returns null if it could not be found. |
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. |
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_N(long groupId,
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,
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. |
ShoppingCategory |
removeByG_N(long groupId,
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. |
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, 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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, 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
public static final FinderPath FINDER_PATH_FETCH_BY_G_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_N
Constructor Detail |
---|
public ShoppingCategoryPersistenceImpl()
Method Detail |
---|
public List<ShoppingCategory> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByGroupId_First
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByGroupId_Last
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByGroupId_PrevAndNext
in interface ShoppingCategoryPersistence
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 occurredprotected ShoppingCategory getByGroupId_PrevAndNext(Session session, ShoppingCategory shoppingCategory, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingCategory> filterFindByGroupId(long groupId) throws SystemException
filterFindByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory[] filterFindByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
filterFindByGroupId_PrevAndNext
in interface ShoppingCategoryPersistence
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 occurredprotected ShoppingCategory filterGetByGroupId_PrevAndNext(Session session, ShoppingCategory shoppingCategory, long groupId, OrderByComparator orderByComparator, boolean previous)
public void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId) throws SystemException
findByG_P
in interface ShoppingCategoryPersistence
groupId
- the group IDparentCategoryId
- the parent category ID
SystemException
- if a system exception occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory findByG_P_First(long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByG_P_First
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory fetchByG_P_First(long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws SystemException
fetchByG_P_First
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory findByG_P_Last(long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByG_P_Last
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory fetchByG_P_Last(long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws SystemException
fetchByG_P_Last
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
findByG_P_PrevAndNext
in interface ShoppingCategoryPersistence
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 occurredprotected 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 ShoppingCategoryPersistence
groupId
- the group IDparentCategoryId
- the parent category ID
SystemException
- if a system exception occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory[] filterFindByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, SystemException
filterFindByG_P_PrevAndNext
in interface ShoppingCategoryPersistence
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 occurredprotected 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 ShoppingCategoryPersistence
groupId
- the group IDparentCategoryId
- the parent category ID
SystemException
- if a system exception occurredpublic int countByG_P(long groupId, long parentCategoryId) throws SystemException
countByG_P
in interface ShoppingCategoryPersistence
groupId
- the group IDparentCategoryId
- the parent category ID
SystemException
- if a system exception occurredpublic int filterCountByG_P(long groupId, long parentCategoryId) throws SystemException
filterCountByG_P
in interface ShoppingCategoryPersistence
groupId
- the group IDparentCategoryId
- the parent category ID
SystemException
- if a system exception occurredpublic ShoppingCategory findByG_N(long groupId, String name) throws NoSuchCategoryException, SystemException
NoSuchCategoryException
if it could not be found.
findByG_N
in interface ShoppingCategoryPersistence
groupId
- the group IDname
- the name
NoSuchCategoryException
- if a matching shopping category could not be found
SystemException
- if a system exception occurredpublic ShoppingCategory fetchByG_N(long groupId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_N
in interface ShoppingCategoryPersistence
groupId
- the group IDname
- the name
null
if a matching shopping category could not be found
SystemException
- if a system exception occurredpublic ShoppingCategory fetchByG_N(long groupId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_N
in interface ShoppingCategoryPersistence
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 occurredpublic ShoppingCategory removeByG_N(long groupId, String name) throws NoSuchCategoryException, SystemException
removeByG_N
in interface ShoppingCategoryPersistence
groupId
- the group IDname
- the name
SystemException
- if a system exception occurred
NoSuchCategoryException
public int countByG_N(long groupId, String name) throws SystemException
countByG_N
in interface ShoppingCategoryPersistence
groupId
- the group IDname
- the name
SystemException
- if a system exception occurredpublic void cacheResult(ShoppingCategory shoppingCategory)
cacheResult
in interface ShoppingCategoryPersistence
shoppingCategory
- the shopping categorypublic void cacheResult(List<ShoppingCategory> shoppingCategories)
cacheResult
in interface ShoppingCategoryPersistence
shoppingCategories
- 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 forprotected void cacheUniqueFindersCache(ShoppingCategory shoppingCategory)
protected void clearUniqueFindersCache(ShoppingCategory shoppingCategory)
public ShoppingCategory create(long categoryId)
create
in interface ShoppingCategoryPersistence
categoryId
- the primary key for the new shopping category
public ShoppingCategory remove(long categoryId) throws NoSuchCategoryException, SystemException
remove
in interface ShoppingCategoryPersistence
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 occurredpublic 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 occurredprotected ShoppingCategory removeImpl(ShoppingCategory shoppingCategory) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.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 occurredpublic ShoppingCategory updateImpl(ShoppingCategory shoppingCategory) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface ShoppingCategoryPersistence
updateImpl
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 NoSuchCategoryException, 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
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingCategory findByPrimaryKey(long categoryId) throws NoSuchCategoryException, SystemException
NoSuchCategoryException
if it could not be found.
findByPrimaryKey
in interface ShoppingCategoryPersistence
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 occurredpublic 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 occurredpublic ShoppingCategory fetchByPrimaryKey(long categoryId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface ShoppingCategoryPersistence
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 occurredpublic List<ShoppingCategory> findAll() throws SystemException
findAll
in interface ShoppingCategoryPersistence
SystemException
- if a system exception occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic 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 ShoppingCategoryPersistence
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 occurredpublic void removeAll() throws SystemException
removeAll
in interface ShoppingCategoryPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingCategoryPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |