|
Liferay 6.0.5 | |||||||||
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.
Never modify or reference this class directly. Always use ShoppingCategoryUtil
to access the shopping category persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
ShoppingCategoryPersistence
,
ShoppingCategoryUtil
Field Summary | |
---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_G_P
|
static FinderPath |
FINDER_PATH_COUNT_BY_GROUPID
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_G_P
|
static FinderPath |
FINDER_PATH_FIND_BY_GROUPID
|
protected ResourcePersistence |
resourcePersistence
|
protected ShoppingCartPersistence |
shoppingCartPersistence
|
protected ShoppingCategoryPersistence |
shoppingCategoryPersistence
|
protected ShoppingCouponPersistence |
shoppingCouponPersistence
|
protected ShoppingItemFieldPersistence |
shoppingItemFieldPersistence
|
protected ShoppingItemPersistence |
shoppingItemPersistence
|
protected ShoppingItemPricePersistence |
shoppingItemPricePersistence
|
protected ShoppingOrderItemPersistence |
shoppingOrderItemPersistence
|
protected ShoppingOrderPersistence |
shoppingOrderPersistence
|
protected UserPersistence |
userPersistence
|
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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(ShoppingCategory shoppingCategory)
Clears the cache for the shopping category. |
int |
countAll()
Counts all the shopping categories. |
int |
countByG_P(long groupId,
long parentCategoryId)
Counts all the shopping categories where groupId = ? and parentCategoryId = ?. |
int |
countByGroupId(long groupId)
Counts all the shopping categories where groupId = ?. |
ShoppingCategory |
create(long categoryId)
Creates a new shopping category with the primary key. |
ShoppingCategory |
fetchByPrimaryKey(long categoryId)
Finds the shopping category with the primary key or returns null if it could not be found. |
ShoppingCategory |
fetchByPrimaryKey(Serializable primaryKey)
Finds the shopping category with the primary key or returns null if it could not be found. |
int |
filterCountByG_P(long groupId,
long parentCategoryId)
Filters by the user's permissions and counts all the shopping categories where groupId = ? and parentCategoryId = ?. |
int |
filterCountByGroupId(long groupId)
Filters by the user's permissions and counts all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId)
Filters by the user's permissions and finds all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Filters by the user's permissions and finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
filterFindByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
filterFindByGroupId(long groupId)
Filters by the user's permissions and finds all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end)
Filters by the user's permissions and finds a range of all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findAll()
Finds all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end)
Finds a range of all the shopping categories. |
List<ShoppingCategory> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping categories. |
ShoppingCategory |
findByG_P_First(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Finds the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
findByG_P_Last(long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Finds the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
ShoppingCategory[] |
findByG_P_PrevAndNext(long categoryId,
long groupId,
long parentCategoryId,
OrderByComparator orderByComparator)
Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId)
Finds all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end)
Finds a range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
List<ShoppingCategory> |
findByG_P(long groupId,
long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?. |
ShoppingCategory |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first shopping category in the ordered set where groupId = ?. |
ShoppingCategory |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last shopping category in the ordered set where groupId = ?. |
ShoppingCategory[] |
findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
Finds the shopping categories before and after the current shopping category in the ordered set where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId)
Finds all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the shopping categories where groupId = ?. |
List<ShoppingCategory> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping categories where groupId = ?. |
ShoppingCategory |
findByPrimaryKey(long categoryId)
Finds the shopping category with the primary key or throws a NoSuchCategoryException if it could not be found. |
ShoppingCategory |
findByPrimaryKey(Serializable primaryKey)
Finds 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, 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 |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FIND_BY_G_P
public static final FinderPath FINDER_PATH_COUNT_BY_G_P
public static final FinderPath FINDER_PATH_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 category to cachepublic void cacheResult(List<ShoppingCategory> shoppingCategories)
cacheResult
in interface ShoppingCategoryPersistence
shoppingCategories
- the shopping categories to cachepublic 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 ShoppingCategory create(long categoryId)
create
in interface ShoppingCategoryPersistence
categoryId
- the primary key for the new shopping category
public ShoppingCategory remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<ShoppingCategory>
remove
in class BasePersistenceImpl<ShoppingCategory>
primaryKey
- the primary key of the shopping category to remove
NoSuchModelException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingCategory remove(long categoryId) throws NoSuchCategoryException, SystemException
remove
in interface ShoppingCategoryPersistence
categoryId
- the primary key of the shopping category to remove
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception 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 to find
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 to find
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 to find
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 to find
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 to search with
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 id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)
SystemException
- if a system exception 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 id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a matching shopping category could not be found
SystemException
- if a system exception 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a matching shopping category could not be found
SystemException
- if a system exception 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception 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 to search with
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 id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)
SystemException
- if a system exception 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 id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId) throws SystemException
findByG_P
in interface ShoppingCategoryPersistence
groupId
- the group id to search withparentCategoryId
- the parent category id to search with
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 id to search withparentCategoryId
- the parent category id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a matching shopping category could not be found
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a matching shopping category could not be found
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryException
- if a shopping category with the primary key could not be found
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search with
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 id to search withparentCategoryId
- the parent category id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)
SystemException
- if a system exception 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 id to search withparentCategoryId
- the parent category id to search withstart
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception 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.
findAll
in interface ShoppingCategoryPersistence
start
- the lower bound of the range of shopping categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)
SystemException
- if a system exception 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 categories to returnend
- the upper bound of the range of shopping categories to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic void removeByG_P(long groupId, long parentCategoryId) throws SystemException
removeByG_P
in interface ShoppingCategoryPersistence
groupId
- the group id to search withparentCategoryId
- the parent category id to search with
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 to search with
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface ShoppingCategoryPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int countByG_P(long groupId, long parentCategoryId) throws SystemException
countByG_P
in interface ShoppingCategoryPersistence
groupId
- the group id to search withparentCategoryId
- the parent category id to search with
SystemException
- if a system exception occurredpublic int filterCountByG_P(long groupId, long parentCategoryId) throws SystemException
filterCountByG_P
in interface ShoppingCategoryPersistence
groupId
- the group id to search withparentCategoryId
- the parent category id to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingCategoryPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |