com.liferay.wsrp.service.persistence
Interface WSRPPortletPersistence

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByP_P(java.lang.String producerEntityId, java.lang.String portletHandle)
           
 int countByPortletName(java.lang.String name)
           
 int countByProducerEntityId(java.lang.String producerEntityId)
           
 WSRPPortlet create(long portletId)
           
 WSRPPortlet fetchByPortletName(java.lang.String name)
           
 WSRPPortlet fetchByPrimaryKey(long portletId)
           
 java.util.List<WSRPPortlet> findAll()
           
 java.util.List<WSRPPortlet> findAll(int start, int end)
           
 java.util.List<WSRPPortlet> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet findByP_P_First(java.lang.String producerEntityId, java.lang.String portletHandle, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet findByP_P_Last(java.lang.String producerEntityId, java.lang.String portletHandle, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet[] findByP_P_PrevAndNext(long portletId, java.lang.String producerEntityId, java.lang.String portletHandle, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId, java.lang.String portletHandle)
           
 java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId, java.lang.String portletHandle, int start, int end)
           
 java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId, java.lang.String portletHandle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet findByPortletName(java.lang.String name)
           
 WSRPPortlet findByPrimaryKey(long portletId)
           
 WSRPPortlet findByProducerEntityId_First(java.lang.String producerEntityId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet findByProducerEntityId_Last(java.lang.String producerEntityId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPPortlet[] findByProducerEntityId_PrevAndNext(long portletId, java.lang.String producerEntityId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId)
           
 java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId, int start, int end)
           
 java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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)
           
 WSRPPortlet remove(long portletId)
           
 WSRPPortlet remove(WSRPPortlet wsrpPortlet)
           
 void removeAll()
           
 void removeByP_P(java.lang.String producerEntityId, java.lang.String portletHandle)
           
 void removeByPortletName(java.lang.String name)
           
 void removeByProducerEntityId(java.lang.String producerEntityId)
           
 WSRPPortlet update(WSRPPortlet wsrpPortlet)
          Deprecated. Use update(WSRPPortlet wsrpPortlet, boolean merge).
 WSRPPortlet update(WSRPPortlet wsrpPortlet, boolean merge)
          Add, update, or merge, the entity.
 WSRPPortlet updateImpl(WSRPPortlet wsrpPortlet, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

WSRPPortlet create(long portletId)

remove

WSRPPortlet remove(long portletId)
                   throws com.liferay.portal.SystemException,
                          NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

remove

WSRPPortlet remove(WSRPPortlet wsrpPortlet)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

WSRPPortlet update(WSRPPortlet wsrpPortlet)
                   throws com.liferay.portal.SystemException
Deprecated. Use update(WSRPPortlet wsrpPortlet, boolean merge).

Throws:
com.liferay.portal.SystemException

update

WSRPPortlet update(WSRPPortlet wsrpPortlet,
                   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:
wsrpPortlet - 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 wsrpPortlet 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

WSRPPortlet updateImpl(WSRPPortlet wsrpPortlet,
                       boolean merge)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByPrimaryKey(long portletId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

fetchByPrimaryKey

WSRPPortlet fetchByPrimaryKey(long portletId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPortletName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByPortletName(java.lang.String name)
                              throws com.liferay.portal.SystemException,
                                     NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

fetchByPortletName

WSRPPortlet fetchByPortletName(java.lang.String name)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProducerEntityId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProducerEntityId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId,
                                                                 int start,
                                                                 int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProducerEntityId

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

findByProducerEntityId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByProducerEntityId_First(java.lang.String producerEntityId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

findByProducerEntityId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByProducerEntityId_Last(java.lang.String producerEntityId,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

findByProducerEntityId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet[] findByProducerEntityId_PrevAndNext(long portletId,
                                                               java.lang.String producerEntityId,
                                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

findByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId,
                                                    java.lang.String portletHandle)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId,
                                                    java.lang.String portletHandle,
                                                    int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WSRPPortlet> findByP_P(java.lang.String producerEntityId,
                                                    java.lang.String portletHandle,
                                                    int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByP_P_First(java.lang.String producerEntityId,
                                          java.lang.String portletHandle,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

findByP_P_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet findByP_P_Last(java.lang.String producerEntityId,
                                         java.lang.String portletHandle,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

findByP_P_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPPortlet[] findByP_P_PrevAndNext(long portletId,
                                                  java.lang.String producerEntityId,
                                                  java.lang.String portletHandle,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

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<WSRPPortlet> findAll()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByPortletName

void removeByPortletName(java.lang.String name)
                         throws com.liferay.portal.SystemException,
                                NoSuchPortletException
Throws:
com.liferay.portal.SystemException
NoSuchPortletException

removeByProducerEntityId

void removeByProducerEntityId(java.lang.String producerEntityId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByP_P

void removeByP_P(java.lang.String producerEntityId,
                 java.lang.String portletHandle)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByPortletName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByPortletName(java.lang.String name)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByProducerEntityId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByProducerEntityId(java.lang.String producerEntityId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByP_P(java.lang.String producerEntityId,
                             java.lang.String portletHandle)
               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