com.liferay.wsrp.service.persistence
Interface WSRPProducerPersistence

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByInstanceName(java.lang.String instanceName)
           
 int countByP_N(java.lang.String portalId, java.lang.String namespace)
           
 WSRPProducer create(long producerId)
           
 WSRPProducer fetchByInstanceName(java.lang.String instanceName)
           
 WSRPProducer fetchByPrimaryKey(long producerId)
           
 java.util.List<WSRPProducer> findAll()
           
 java.util.List<WSRPProducer> findAll(int start, int end)
           
 java.util.List<WSRPProducer> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPProducer findByInstanceName(java.lang.String instanceName)
           
 WSRPProducer findByP_N_First(java.lang.String portalId, java.lang.String namespace, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPProducer findByP_N_Last(java.lang.String portalId, java.lang.String namespace, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WSRPProducer[] findByP_N_PrevAndNext(long producerId, java.lang.String portalId, java.lang.String namespace, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WSRPProducer> findByP_N(java.lang.String portalId, java.lang.String namespace)
           
 java.util.List<WSRPProducer> findByP_N(java.lang.String portalId, java.lang.String namespace, int start, int end)
           
 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)
           
 WSRPProducer findByPrimaryKey(long producerId)
           
 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)
           
 WSRPProducer remove(long producerId)
           
 WSRPProducer remove(WSRPProducer wsrpProducer)
           
 void removeAll()
           
 void removeByInstanceName(java.lang.String instanceName)
           
 void removeByP_N(java.lang.String portalId, java.lang.String namespace)
           
 WSRPProducer update(WSRPProducer wsrpProducer)
          Deprecated. Use update(WSRPProducer wsrpProducer, boolean merge).
 WSRPProducer update(WSRPProducer wsrpProducer, boolean merge)
          Add, update, or merge, the entity.
 WSRPProducer updateImpl(WSRPProducer wsrpProducer, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

WSRPProducer create(long producerId)

remove

WSRPProducer remove(long producerId)
                    throws com.liferay.portal.SystemException,
                           NoSuchProducerException
Throws:
com.liferay.portal.SystemException
NoSuchProducerException

remove

WSRPProducer remove(WSRPProducer wsrpProducer)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

WSRPProducer update(WSRPProducer wsrpProducer)
                    throws com.liferay.portal.SystemException
Deprecated. Use update(WSRPProducer wsrpProducer, boolean merge).

Throws:
com.liferay.portal.SystemException

update

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 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 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

WSRPProducer updateImpl(WSRPProducer wsrpProducer,
                        boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPProducer findByPrimaryKey(long producerId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchProducerException
Throws:
com.liferay.portal.SystemException
NoSuchProducerException

fetchByPrimaryKey

WSRPProducer fetchByPrimaryKey(long producerId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByInstanceName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WSRPProducer findByInstanceName(java.lang.String instanceName)
                                throws com.liferay.portal.SystemException,
                                       NoSuchProducerException
Throws:
com.liferay.portal.SystemException
NoSuchProducerException

fetchByInstanceName

WSRPProducer fetchByInstanceName(java.lang.String instanceName)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

findAll

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

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

void removeByInstanceName(java.lang.String instanceName)
                          throws com.liferay.portal.SystemException,
                                 NoSuchProducerException
Throws:
com.liferay.portal.SystemException
NoSuchProducerException

removeByP_N

void removeByP_N(java.lang.String portalId,
                 java.lang.String namespace)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByInstanceName

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

countByP_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByP_N(java.lang.String portalId,
                             java.lang.String namespace)
               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