com.liferay.portlet.shopping.service.persistence
Interface ShoppingCategoryPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ShoppingCategoryPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByG_P(long groupId, long parentCategoryId)
           
 int countByGroupId(long groupId)
           
 ShoppingCategory create(long categoryId)
           
 ShoppingCategory fetchByPrimaryKey(long categoryId)
           
 java.util.List<ShoppingCategory> findAll()
           
 java.util.List<ShoppingCategory> findAll(int start, int end)
           
 java.util.List<ShoppingCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory findByG_P_First(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory findByG_P_Last(long groupId, long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory[] findByG_P_PrevAndNext(long categoryId, long groupId, long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId)
           
 java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end)
           
 java.util.List<ShoppingCategory> findByG_P(long groupId, long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ShoppingCategory> findByGroupId(long groupId)
           
 java.util.List<ShoppingCategory> findByGroupId(long groupId, int start, int end)
           
 java.util.List<ShoppingCategory> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCategory findByPrimaryKey(long categoryId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 ShoppingCategory remove(long categoryId)
           
 ShoppingCategory remove(ShoppingCategory shoppingCategory)
           
 void removeAll()
           
 void removeByG_P(long groupId, long parentCategoryId)
           
 void removeByGroupId(long groupId)
           
 ShoppingCategory update(ShoppingCategory shoppingCategory)
          Deprecated. Use update(ShoppingCategory shoppingCategory, boolean merge).
 ShoppingCategory update(ShoppingCategory shoppingCategory, boolean merge)
          Add, update, or merge, the entity.
 ShoppingCategory updateImpl(ShoppingCategory shoppingCategory, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

ShoppingCategory create(long categoryId)

remove

ShoppingCategory remove(long categoryId)
                        throws com.liferay.portal.SystemException,
                               NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

remove

ShoppingCategory remove(ShoppingCategory shoppingCategory)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

ShoppingCategory update(ShoppingCategory shoppingCategory)
                        throws com.liferay.portal.SystemException
Deprecated. Use update(ShoppingCategory shoppingCategory, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ShoppingCategory update(ShoppingCategory shoppingCategory,
                        boolean merge)
                        throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
shoppingCategory - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when shoppingCategory is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

ShoppingCategory updateImpl(ShoppingCategory shoppingCategory,
                            boolean merge)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory findByPrimaryKey(long categoryId)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

fetchByPrimaryKey

ShoppingCategory fetchByPrimaryKey(long categoryId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByGroupId(long groupId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByGroupId(long groupId,
                                                             int start,
                                                             int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByGroupId(long groupId,
                                                             int start,
                                                             int end,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory findByGroupId_First(long groupId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory findByGroupId_Last(long groupId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory[] findByGroupId_PrevAndNext(long categoryId,
                                                           long groupId,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByG_P(long groupId,
                                                         long parentCategoryId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByG_P(long groupId,
                                                         long parentCategoryId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findByG_P(long groupId,
                                                         long parentCategoryId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory findByG_P_First(long groupId,
                                               long parentCategoryId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findByG_P_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory findByG_P_Last(long groupId,
                                              long parentCategoryId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findByG_P_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory[] findByG_P_PrevAndNext(long categoryId,
                                                       long groupId,
                                                       long parentCategoryId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchCategoryException
Throws:
com.liferay.portal.SystemException
NoSuchCategoryException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findAll()
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findAll(int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> findAll(int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P

void removeByG_P(long groupId,
                 long parentCategoryId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_P(long groupId,
                             long parentCategoryId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException