com.liferay.portal.service.persistence
Interface PortletItemPersistence

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByG_C(long groupId, long classNameId)
           
 int countByG_N_P_C(long groupId, java.lang.String name, java.lang.String portletId, long classNameId)
           
 int countByG_P_C(long groupId, java.lang.String portletId, long classNameId)
           
 PortletItem create(long portletItemId)
           
 PortletItem fetchByG_N_P_C(long groupId, java.lang.String name, java.lang.String portletId, long classNameId)
           
 PortletItem fetchByPrimaryKey(long portletItemId)
           
 java.util.List<PortletItem> findAll()
           
 java.util.List<PortletItem> findAll(int start, int end)
           
 java.util.List<PortletItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem[] findByG_C_PrevAndNext(long portletItemId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PortletItem> findByG_C(long groupId, long classNameId)
           
 java.util.List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end)
           
 java.util.List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem findByG_N_P_C(long groupId, java.lang.String name, java.lang.String portletId, long classNameId)
           
 PortletItem findByG_P_C_First(long groupId, java.lang.String portletId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem findByG_P_C_Last(long groupId, java.lang.String portletId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem[] findByG_P_C_PrevAndNext(long portletItemId, long groupId, java.lang.String portletId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PortletItem> findByG_P_C(long groupId, java.lang.String portletId, long classNameId)
           
 java.util.List<PortletItem> findByG_P_C(long groupId, java.lang.String portletId, long classNameId, int start, int end)
           
 java.util.List<PortletItem> findByG_P_C(long groupId, java.lang.String portletId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletItem findByPrimaryKey(long portletItemId)
           
 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)
           
 PortletItem remove(long portletItemId)
           
 PortletItem remove(PortletItem portletItem)
           
 void removeAll()
           
 void removeByG_C(long groupId, long classNameId)
           
 void removeByG_N_P_C(long groupId, java.lang.String name, java.lang.String portletId, long classNameId)
           
 void removeByG_P_C(long groupId, java.lang.String portletId, long classNameId)
           
 PortletItem update(PortletItem portletItem)
          Deprecated. Use update(PortletItem portletItem, boolean merge).
 PortletItem update(PortletItem portletItem, boolean merge)
          Add, update, or merge, the entity.
 PortletItem updateImpl(PortletItem portletItem, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

PortletItem create(long portletItemId)

remove

PortletItem remove(long portletItemId)
                   throws NoSuchPortletItemException,
                          com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

remove

PortletItem remove(PortletItem portletItem)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

PortletItem update(PortletItem portletItem)
                   throws com.liferay.portal.SystemException
Deprecated. Use update(PortletItem portletItem, boolean merge).

Throws:
com.liferay.portal.SystemException

update

PortletItem update(PortletItem portletItem,
                   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:
portletItem - 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 portletItem 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

PortletItem updateImpl(PortletItem portletItem,
                       boolean merge)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByPrimaryKey(long portletItemId)
                             throws NoSuchPortletItemException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

fetchByPrimaryKey

PortletItem fetchByPrimaryKey(long portletItemId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_C

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

findByG_C

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

findByG_C

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

findByG_C_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByG_C_First(long groupId,
                                          long classNameId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws NoSuchPortletItemException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_C_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByG_C_Last(long groupId,
                                         long classNameId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws NoSuchPortletItemException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_C_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem[] findByG_C_PrevAndNext(long portletItemId,
                                                  long groupId,
                                                  long classNameId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws NoSuchPortletItemException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PortletItem> findByG_P_C(long groupId,
                                                      java.lang.String portletId,
                                                      long classNameId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PortletItem> findByG_P_C(long groupId,
                                                      java.lang.String portletId,
                                                      long classNameId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PortletItem> findByG_P_C(long groupId,
                                                      java.lang.String portletId,
                                                      long classNameId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_C_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByG_P_C_First(long groupId,
                                            java.lang.String portletId,
                                            long classNameId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchPortletItemException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_P_C_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByG_P_C_Last(long groupId,
                                           java.lang.String portletId,
                                           long classNameId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchPortletItemException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_P_C_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem[] findByG_P_C_PrevAndNext(long portletItemId,
                                                    long groupId,
                                                    java.lang.String portletId,
                                                    long classNameId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchPortletItemException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

findByG_N_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletItem findByG_N_P_C(long groupId,
                                        java.lang.String name,
                                        java.lang.String portletId,
                                        long classNameId)
                          throws NoSuchPortletItemException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

fetchByG_N_P_C

PortletItem fetchByG_N_P_C(long groupId,
                           java.lang.String name,
                           java.lang.String portletId,
                           long classNameId)
                           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)
                                                      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<PortletItem> findAll()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByG_C

void removeByG_C(long groupId,
                 long classNameId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_C

void removeByG_P_C(long groupId,
                   java.lang.String portletId,
                   long classNameId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_N_P_C

void removeByG_N_P_C(long groupId,
                     java.lang.String name,
                     java.lang.String portletId,
                     long classNameId)
                     throws NoSuchPortletItemException,
                            com.liferay.portal.SystemException
Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException

removeAll

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

countByG_C

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

countByG_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_P_C(long groupId,
                               java.lang.String portletId,
                               long classNameId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_N_P_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_N_P_C(long groupId,
                                 java.lang.String name,
                                 java.lang.String portletId,
                                 long classNameId)
                   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