|
Liferay 6.1.10-ee-ga1 | |||||||||
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 |
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,
boolean merge)
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, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
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, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, 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_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_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=ShoppingCartPersistence.class) protected ShoppingCartPersistence shoppingCartPersistence
@BeanReference(type=ShoppingCategoryPersistence.class) protected ShoppingCategoryPersistence shoppingCategoryPersistence
@BeanReference(type=ShoppingCouponPersistence.class) protected ShoppingCouponPersistence shoppingCouponPersistence
@BeanReference(type=ShoppingItemPersistence.class) protected ShoppingItemPersistence shoppingItemPersistence
@BeanReference(type=ShoppingItemFieldPersistence.class) protected ShoppingItemFieldPersistence shoppingItemFieldPersistence
@BeanReference(type=ShoppingItemPricePersistence.class) protected ShoppingItemPricePersistence shoppingItemPricePersistence
@BeanReference(type=ShoppingOrderPersistence.class) protected ShoppingOrderPersistence shoppingOrderPersistence
@BeanReference(type=ShoppingOrderItemPersistence.class) protected ShoppingOrderItemPersistence shoppingOrderItemPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public ShoppingCategoryPersistenceImpl()
Method Detail |
---|
public 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 forpublic 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, boolean merge) 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 updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
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 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> 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.
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.
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
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.
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 findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, 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.
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[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator) throws NoSuchCategoryException, 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.
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.
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.
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 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.
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.
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
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.
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 findByG_P_Last(long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, 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.
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[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, OrderByComparator orderByComparator) throws NoSuchCategoryException, 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.
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.
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.
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 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.
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.
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 removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic 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 void removeAll() throws SystemException
removeAll
in interface ShoppingCategoryPersistence
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 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 int countAll() throws SystemException
countAll
in interface ShoppingCategoryPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |