com.liferay.portlet.announcements.service.persistence
Interface AnnouncementsDeliveryPersistence


public interface AnnouncementsDeliveryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByU_T(long userId, java.lang.String type)
           
 int countByUserId(long userId)
           
 AnnouncementsDelivery create(long deliveryId)
           
 AnnouncementsDelivery fetchByPrimaryKey(long deliveryId)
           
 AnnouncementsDelivery fetchByU_T(long userId, java.lang.String type)
           
 java.util.List<AnnouncementsDelivery> findAll()
           
 java.util.List<AnnouncementsDelivery> findAll(int start, int end)
           
 java.util.List<AnnouncementsDelivery> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 AnnouncementsDelivery findByPrimaryKey(long deliveryId)
           
 AnnouncementsDelivery findByU_T(long userId, java.lang.String type)
           
 AnnouncementsDelivery findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 AnnouncementsDelivery findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<AnnouncementsDelivery> findByUserId(long userId)
           
 java.util.List<AnnouncementsDelivery> findByUserId(long userId, int start, int end)
           
 java.util.List<AnnouncementsDelivery> findByUserId(long userId, 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)
           
 void registerListener(ModelListener listener)
           
 AnnouncementsDelivery remove(AnnouncementsDelivery announcementsDelivery)
           
 AnnouncementsDelivery remove(long deliveryId)
           
 void removeAll()
           
 void removeByU_T(long userId, java.lang.String type)
           
 void removeByUserId(long userId)
           
 void unregisterListener(ModelListener listener)
           
 AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery)
          Deprecated. Use update(AnnouncementsDelivery announcementsDelivery, boolean merge).
 AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery, boolean merge)
          Add, update, or merge, the entity.
 AnnouncementsDelivery updateImpl(AnnouncementsDelivery announcementsDelivery, boolean merge)
           
 

Method Detail

create

AnnouncementsDelivery create(long deliveryId)

remove

AnnouncementsDelivery remove(long deliveryId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

remove

AnnouncementsDelivery remove(AnnouncementsDelivery announcementsDelivery)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery)
                             throws com.liferay.portal.SystemException
Deprecated. Use update(AnnouncementsDelivery announcementsDelivery, boolean merge).

Throws:
com.liferay.portal.SystemException

update

AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery,
                             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:
announcementsDelivery - 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 announcementsDelivery 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

AnnouncementsDelivery updateImpl(AnnouncementsDelivery announcementsDelivery,
                                 boolean merge)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

AnnouncementsDelivery findByPrimaryKey(long deliveryId)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

fetchByPrimaryKey

AnnouncementsDelivery fetchByPrimaryKey(long deliveryId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<AnnouncementsDelivery> findByUserId(long userId)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<AnnouncementsDelivery> findByUserId(long userId,
                                                   int start,
                                                   int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<AnnouncementsDelivery> findByUserId(long userId,
                                                   int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

AnnouncementsDelivery findByUserId_First(long userId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

findByUserId_Last

AnnouncementsDelivery findByUserId_Last(long userId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

findByUserId_PrevAndNext

AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId,
                                                 long userId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

findByU_T

AnnouncementsDelivery findByU_T(long userId,
                                java.lang.String type)
                                throws com.liferay.portal.SystemException,
                                       NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

fetchByU_T

AnnouncementsDelivery fetchByU_T(long userId,
                                 java.lang.String type)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

java.util.List<AnnouncementsDelivery> findAll()
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<AnnouncementsDelivery> findAll(int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<AnnouncementsDelivery> findAll(int start,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

void removeByUserId(long userId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_T

void removeByU_T(long userId,
                 java.lang.String type)
                 throws com.liferay.portal.SystemException,
                        NoSuchDeliveryException
Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException

removeAll

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

countByUserId

int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_T

int countByU_T(long userId,
               java.lang.String type)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)