com.liferay.wsrp.service.persistence
Class WSRPPortletUtil
java.lang.Object
com.liferay.wsrp.service.persistence.WSRPPortletUtil
public class WSRPPortletUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle)
|
static int |
countByPortletName(java.lang.String name)
|
static int |
countByProducerEntityId(java.lang.String producerEntityId)
|
static WSRPPortlet |
create(long portletId)
|
static WSRPPortlet |
fetchByPortletName(java.lang.String name)
|
static WSRPPortlet |
fetchByPrimaryKey(long portletId)
|
static java.util.List<WSRPPortlet> |
findAll()
|
static java.util.List<WSRPPortlet> |
findAll(int start,
int end)
|
static java.util.List<WSRPPortlet> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPPortlet |
findByP_P_First(java.lang.String producerEntityId,
java.lang.String portletHandle,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPPortlet |
findByP_P_Last(java.lang.String producerEntityId,
java.lang.String portletHandle,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPPortlet[] |
findByP_P_PrevAndNext(long portletId,
java.lang.String producerEntityId,
java.lang.String portletHandle,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<WSRPPortlet> |
findByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle)
|
static java.util.List<WSRPPortlet> |
findByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle,
int start,
int end)
|
static 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)
|
static WSRPPortlet |
findByPortletName(java.lang.String name)
|
static WSRPPortlet |
findByPrimaryKey(long portletId)
|
static WSRPPortlet |
findByProducerEntityId_First(java.lang.String producerEntityId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPPortlet |
findByProducerEntityId_Last(java.lang.String producerEntityId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPPortlet[] |
findByProducerEntityId_PrevAndNext(long portletId,
java.lang.String producerEntityId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<WSRPPortlet> |
findByProducerEntityId(java.lang.String producerEntityId)
|
static java.util.List<WSRPPortlet> |
findByProducerEntityId(java.lang.String producerEntityId,
int start,
int end)
|
static java.util.List<WSRPPortlet> |
findByProducerEntityId(java.lang.String producerEntityId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static WSRPPortletPersistence |
getPersistence()
|
static WSRPPortlet |
remove(long portletId)
|
static WSRPPortlet |
remove(WSRPPortlet wsrpPortlet)
|
static void |
removeAll()
|
static void |
removeByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle)
|
static void |
removeByPortletName(java.lang.String name)
|
static void |
removeByProducerEntityId(java.lang.String producerEntityId)
|
void |
setPersistence(WSRPPortletPersistence persistence)
|
static WSRPPortlet |
update(WSRPPortlet wsrpPortlet)
Deprecated. Use update(WSRPPortlet wsrpPortlet, boolean merge) . |
static WSRPPortlet |
update(WSRPPortlet wsrpPortlet,
boolean merge)
Add, update, or merge, the entity. |
static WSRPPortlet |
updateImpl(WSRPPortlet wsrpPortlet,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSRPPortletUtil
public WSRPPortletUtil()
create
public static WSRPPortlet create(long portletId)
remove
public static WSRPPortlet remove(long portletId)
throws com.liferay.portal.SystemException,
NoSuchPortletException
- Throws:
com.liferay.portal.SystemException
NoSuchPortletException
remove
public static WSRPPortlet remove(WSRPPortlet wsrpPortlet)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static WSRPPortlet update(WSRPPortlet wsrpPortlet)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(WSRPPortlet wsrpPortlet, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static 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 mergemerge
- 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
public static WSRPPortlet updateImpl(WSRPPortlet wsrpPortlet,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static WSRPPortlet findByPrimaryKey(long portletId)
throws com.liferay.portal.SystemException,
NoSuchPortletException
- Throws:
com.liferay.portal.SystemException
NoSuchPortletException
fetchByPrimaryKey
public static WSRPPortlet fetchByPrimaryKey(long portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPortletName
public static WSRPPortlet findByPortletName(java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchPortletException
- Throws:
com.liferay.portal.SystemException
NoSuchPortletException
fetchByPortletName
public static WSRPPortlet fetchByPortletName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByProducerEntityId
public static java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByProducerEntityId
public static java.util.List<WSRPPortlet> findByProducerEntityId(java.lang.String producerEntityId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByProducerEntityId
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static java.util.List<WSRPPortlet> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<WSRPPortlet> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static 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
public static void removeByPortletName(java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchPortletException
- Throws:
com.liferay.portal.SystemException
NoSuchPortletException
removeByProducerEntityId
public static void removeByProducerEntityId(java.lang.String producerEntityId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByP_P
public static void removeByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByPortletName
public static int countByPortletName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByProducerEntityId
public static int countByProducerEntityId(java.lang.String producerEntityId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByP_P
public static int countByP_P(java.lang.String producerEntityId,
java.lang.String portletHandle)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static WSRPPortletPersistence getPersistence()
setPersistence
public void setPersistence(WSRPPortletPersistence persistence)