com.liferay.wsrp.service.persistence
Class WSRPProducerUtil
java.lang.Object
com.liferay.wsrp.service.persistence.WSRPProducerUtil
public class WSRPProducerUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByInstanceName(java.lang.String instanceName)
|
static int |
countByP_N(java.lang.String portalId,
java.lang.String namespace)
|
static WSRPProducer |
create(long producerId)
|
static WSRPProducer |
fetchByInstanceName(java.lang.String instanceName)
|
static WSRPProducer |
fetchByPrimaryKey(long producerId)
|
static java.util.List<WSRPProducer> |
findAll()
|
static java.util.List<WSRPProducer> |
findAll(int start,
int end)
|
static java.util.List<WSRPProducer> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPProducer |
findByInstanceName(java.lang.String instanceName)
|
static WSRPProducer |
findByP_N_First(java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPProducer |
findByP_N_Last(java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPProducer[] |
findByP_N_PrevAndNext(long producerId,
java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<WSRPProducer> |
findByP_N(java.lang.String portalId,
java.lang.String namespace)
|
static java.util.List<WSRPProducer> |
findByP_N(java.lang.String portalId,
java.lang.String namespace,
int start,
int end)
|
static java.util.List<WSRPProducer> |
findByP_N(java.lang.String portalId,
java.lang.String namespace,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static WSRPProducer |
findByPrimaryKey(long producerId)
|
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 WSRPProducerPersistence |
getPersistence()
|
static WSRPProducer |
remove(long producerId)
|
static WSRPProducer |
remove(WSRPProducer wsrpProducer)
|
static void |
removeAll()
|
static void |
removeByInstanceName(java.lang.String instanceName)
|
static void |
removeByP_N(java.lang.String portalId,
java.lang.String namespace)
|
void |
setPersistence(WSRPProducerPersistence persistence)
|
static WSRPProducer |
update(WSRPProducer wsrpProducer)
Deprecated. Use update(WSRPProducer wsrpProducer, boolean merge) . |
static WSRPProducer |
update(WSRPProducer wsrpProducer,
boolean merge)
Add, update, or merge, the entity. |
static WSRPProducer |
updateImpl(WSRPProducer wsrpProducer,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSRPProducerUtil
public WSRPProducerUtil()
create
public static WSRPProducer create(long producerId)
remove
public static WSRPProducer remove(long producerId)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
remove
public static WSRPProducer remove(WSRPProducer wsrpProducer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static WSRPProducer update(WSRPProducer wsrpProducer)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(WSRPProducer wsrpProducer, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static WSRPProducer update(WSRPProducer wsrpProducer,
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:
wsrpProducer
- 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 wsrpProducer 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 WSRPProducer updateImpl(WSRPProducer wsrpProducer,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static WSRPProducer findByPrimaryKey(long producerId)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
fetchByPrimaryKey
public static WSRPProducer fetchByPrimaryKey(long producerId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByInstanceName
public static WSRPProducer findByInstanceName(java.lang.String instanceName)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
fetchByInstanceName
public static WSRPProducer fetchByInstanceName(java.lang.String instanceName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_N
public static java.util.List<WSRPProducer> findByP_N(java.lang.String portalId,
java.lang.String namespace)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_N
public static java.util.List<WSRPProducer> findByP_N(java.lang.String portalId,
java.lang.String namespace,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_N
public static java.util.List<WSRPProducer> findByP_N(java.lang.String portalId,
java.lang.String namespace,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_N_First
public static WSRPProducer findByP_N_First(java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
findByP_N_Last
public static WSRPProducer findByP_N_Last(java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
findByP_N_PrevAndNext
public static WSRPProducer[] findByP_N_PrevAndNext(long producerId,
java.lang.String portalId,
java.lang.String namespace,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
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<WSRPProducer> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<WSRPProducer> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<WSRPProducer> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByInstanceName
public static void removeByInstanceName(java.lang.String instanceName)
throws com.liferay.portal.SystemException,
NoSuchProducerException
- Throws:
com.liferay.portal.SystemException
NoSuchProducerException
removeByP_N
public static void removeByP_N(java.lang.String portalId,
java.lang.String namespace)
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
countByInstanceName
public static int countByInstanceName(java.lang.String instanceName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByP_N
public static int countByP_N(java.lang.String portalId,
java.lang.String namespace)
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 WSRPProducerPersistence getPersistence()
setPersistence
public void setPersistence(WSRPProducerPersistence persistence)