Liferay 6.0.5

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

All Superinterfaces:
BasePersistence<AnnouncementsDelivery>
All Known Implementing Classes:
AnnouncementsDeliveryPersistenceImpl

public interface AnnouncementsDeliveryPersistence
extends BasePersistence<AnnouncementsDelivery>

The persistence interface for the announcements delivery service.

Never modify or reference this interface directly. Always use AnnouncementsDeliveryUtil to access the announcements delivery persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
AnnouncementsDeliveryPersistenceImpl, AnnouncementsDeliveryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(AnnouncementsDelivery announcementsDelivery)
          Caches the announcements delivery in the entity cache if it is enabled.
 void cacheResult(List<AnnouncementsDelivery> announcementsDeliveries)
          Caches the announcements deliveries in the entity cache if it is enabled.
 int countAll()
          Counts all the announcements deliveries.
 int countByU_T(long userId, String type)
          Counts all the announcements deliveries where userId = ? and type = ?.
 int countByUserId(long userId)
          Counts all the announcements deliveries where userId = ?.
 AnnouncementsDelivery create(long deliveryId)
          Creates a new announcements delivery with the primary key.
 AnnouncementsDelivery fetchByPrimaryKey(long deliveryId)
          Finds the announcements delivery with the primary key or returns null if it could not be found.
 AnnouncementsDelivery fetchByU_T(long userId, String type)
          Finds the announcements delivery where userId = ? and type = ? or returns null if it could not be found.
 AnnouncementsDelivery fetchByU_T(long userId, String type, boolean retrieveFromCache)
          Finds the announcements delivery where userId = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
 List<AnnouncementsDelivery> findAll()
          Finds all the announcements deliveries.
 List<AnnouncementsDelivery> findAll(int start, int end)
          Finds a range of all the announcements deliveries.
 List<AnnouncementsDelivery> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the announcements deliveries.
 AnnouncementsDelivery findByPrimaryKey(long deliveryId)
          Finds the announcements delivery with the primary key or throws a NoSuchDeliveryException if it could not be found.
 AnnouncementsDelivery findByU_T(long userId, String type)
          Finds the announcements delivery where userId = ? and type = ? or throws a NoSuchDeliveryException if it could not be found.
 AnnouncementsDelivery findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first announcements delivery in the ordered set where userId = ?.
 AnnouncementsDelivery findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last announcements delivery in the ordered set where userId = ?.
 AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId, long userId, OrderByComparator orderByComparator)
          Finds the announcements deliveries before and after the current announcements delivery in the ordered set where userId = ?.
 List<AnnouncementsDelivery> findByUserId(long userId)
          Finds all the announcements deliveries where userId = ?.
 List<AnnouncementsDelivery> findByUserId(long userId, int start, int end)
          Finds a range of all the announcements deliveries where userId = ?.
 List<AnnouncementsDelivery> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the announcements deliveries where userId = ?.
 AnnouncementsDelivery remove(long deliveryId)
          Removes the announcements delivery with the primary key from the database.
 void removeAll()
          Removes all the announcements deliveries from the database.
 void removeByU_T(long userId, String type)
          Removes the announcements delivery where userId = ? and type = ? from the database.
 void removeByUserId(long userId)
          Removes all the announcements deliveries where userId = ? from the database.
 AnnouncementsDelivery updateImpl(AnnouncementsDelivery announcementsDelivery, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(AnnouncementsDelivery announcementsDelivery)
Caches the announcements delivery in the entity cache if it is enabled.

Parameters:
announcementsDelivery - the announcements delivery to cache

cacheResult

void cacheResult(List<AnnouncementsDelivery> announcementsDeliveries)
Caches the announcements deliveries in the entity cache if it is enabled.

Parameters:
announcementsDeliveries - the announcements deliveries to cache

create

AnnouncementsDelivery create(long deliveryId)
Creates a new announcements delivery with the primary key. Does not add the announcements delivery to the database.

Parameters:
deliveryId - the primary key for the new announcements delivery
Returns:
the new announcements delivery

remove

AnnouncementsDelivery remove(long deliveryId)
                             throws SystemException,
                                    NoSuchDeliveryException
Removes the announcements delivery with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
deliveryId - the primary key of the announcements delivery to remove
Returns:
the announcements delivery that was removed
Throws:
NoSuchDeliveryException - if a announcements delivery with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

AnnouncementsDelivery updateImpl(AnnouncementsDelivery announcementsDelivery,
                                 boolean merge)
                                 throws SystemException
Throws:
SystemException

findByPrimaryKey

AnnouncementsDelivery findByPrimaryKey(long deliveryId)
                                       throws SystemException,
                                              NoSuchDeliveryException
Finds the announcements delivery with the primary key or throws a NoSuchDeliveryException if it could not be found.

Parameters:
deliveryId - the primary key of the announcements delivery to find
Returns:
the announcements delivery
Throws:
NoSuchDeliveryException - if a announcements delivery with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

AnnouncementsDelivery fetchByPrimaryKey(long deliveryId)
                                        throws SystemException
Finds the announcements delivery with the primary key or returns null if it could not be found.

Parameters:
deliveryId - the primary key of the announcements delivery to find
Returns:
the announcements delivery, or null if a announcements delivery with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserId

List<AnnouncementsDelivery> findByUserId(long userId)
                                         throws SystemException
Finds all the announcements deliveries where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the matching announcements deliveries
Throws:
SystemException - if a system exception occurred

findByUserId

List<AnnouncementsDelivery> findByUserId(long userId,
                                         int start,
                                         int end)
                                         throws SystemException
Finds a range of all the announcements deliveries where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
start - the lower bound of the range of announcements deliveries to return
end - the upper bound of the range of announcements deliveries to return (not inclusive)
Returns:
the range of matching announcements deliveries
Throws:
SystemException - if a system exception occurred

findByUserId

List<AnnouncementsDelivery> findByUserId(long userId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Finds an ordered range of all the announcements deliveries where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
start - the lower bound of the range of announcements deliveries to return
end - the upper bound of the range of announcements deliveries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching announcements deliveries
Throws:
SystemException - if a system exception occurred

findByUserId_First

AnnouncementsDelivery findByUserId_First(long userId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchDeliveryException
Finds the first announcements delivery in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching announcements delivery
Throws:
NoSuchDeliveryException - if a matching announcements delivery could not be found
SystemException - if a system exception occurred

findByUserId_Last

AnnouncementsDelivery findByUserId_Last(long userId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchDeliveryException
Finds the last announcements delivery in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching announcements delivery
Throws:
NoSuchDeliveryException - if a matching announcements delivery could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId,
                                                 long userId,
                                                 OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchDeliveryException
Finds the announcements deliveries before and after the current announcements delivery in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
deliveryId - the primary key of the current announcements delivery
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next announcements delivery
Throws:
NoSuchDeliveryException - if a announcements delivery with the primary key could not be found
SystemException - if a system exception occurred

findByU_T

AnnouncementsDelivery findByU_T(long userId,
                                String type)
                                throws SystemException,
                                       NoSuchDeliveryException
Finds the announcements delivery where userId = ? and type = ? or throws a NoSuchDeliveryException if it could not be found.

Parameters:
userId - the user id to search with
type - the type to search with
Returns:
the matching announcements delivery
Throws:
NoSuchDeliveryException - if a matching announcements delivery could not be found
SystemException - if a system exception occurred

fetchByU_T

AnnouncementsDelivery fetchByU_T(long userId,
                                 String type)
                                 throws SystemException
Finds the announcements delivery where userId = ? and type = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
userId - the user id to search with
type - the type to search with
Returns:
the matching announcements delivery, or null if a matching announcements delivery could not be found
Throws:
SystemException - if a system exception occurred

fetchByU_T

AnnouncementsDelivery fetchByU_T(long userId,
                                 String type,
                                 boolean retrieveFromCache)
                                 throws SystemException
Finds the announcements delivery where userId = ? and type = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId - the user id to search with
type - the type to search with
Returns:
the matching announcements delivery, or null if a matching announcements delivery could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<AnnouncementsDelivery> findAll()
                                    throws SystemException
Finds all the announcements deliveries.

Returns:
the announcements deliveries
Throws:
SystemException - if a system exception occurred

findAll

List<AnnouncementsDelivery> findAll(int start,
                                    int end)
                                    throws SystemException
Finds a range of all the announcements deliveries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of announcements deliveries to return
end - the upper bound of the range of announcements deliveries to return (not inclusive)
Returns:
the range of announcements deliveries
Throws:
SystemException - if a system exception occurred

findAll

List<AnnouncementsDelivery> findAll(int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Finds an ordered range of all the announcements deliveries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of announcements deliveries to return
end - the upper bound of the range of announcements deliveries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of announcements deliveries
Throws:
SystemException - if a system exception occurred

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Removes all the announcements deliveries where userId = ? from the database.

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByU_T

void removeByU_T(long userId,
                 String type)
                 throws SystemException,
                        NoSuchDeliveryException
Removes the announcements delivery where userId = ? and type = ? from the database.

Parameters:
userId - the user id to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred
NoSuchDeliveryException

removeAll

void removeAll()
               throws SystemException
Removes all the announcements deliveries from the database.

Throws:
SystemException - if a system exception occurred

countByUserId

int countByUserId(long userId)
                  throws SystemException
Counts all the announcements deliveries where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the number of matching announcements deliveries
Throws:
SystemException - if a system exception occurred

countByU_T

int countByU_T(long userId,
               String type)
               throws SystemException
Counts all the announcements deliveries where userId = ? and type = ?.

Parameters:
userId - the user id to search with
type - the type to search with
Returns:
the number of matching announcements deliveries
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the announcements deliveries.

Returns:
the number of announcements deliveries
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5