001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.announcements.model.AnnouncementsDelivery;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AnnouncementsDeliveryPersistenceImpl
024     * @see       AnnouncementsDeliveryUtil
025     * @generated
026     */
027    public interface AnnouncementsDeliveryPersistence extends BasePersistence<AnnouncementsDelivery> {
028            public void cacheResult(
029                    com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries);
033    
034            public com.liferay.portlet.announcements.model.AnnouncementsDelivery create(
035                    long deliveryId);
036    
037            public com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
038                    long deliveryId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.announcements.NoSuchDeliveryException;
041    
042            public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateImpl(
043                    com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByPrimaryKey(
048                    long deliveryId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.announcements.NoSuchDeliveryException;
051    
052            public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByPrimaryKey(
053                    long deliveryId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
057                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
060                    long userId, int start, int end)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
064                    long userId, int start, int end,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_First(
069                    long userId,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException,
072                            com.liferay.portlet.announcements.NoSuchDeliveryException;
073    
074            public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_Last(
075                    long userId,
076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077                    throws com.liferay.portal.kernel.exception.SystemException,
078                            com.liferay.portlet.announcements.NoSuchDeliveryException;
079    
080            public com.liferay.portlet.announcements.model.AnnouncementsDelivery[] findByUserId_PrevAndNext(
081                    long deliveryId, long userId,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException,
084                            com.liferay.portlet.announcements.NoSuchDeliveryException;
085    
086            public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByU_T(
087                    long userId, java.lang.String type)
088                    throws com.liferay.portal.kernel.exception.SystemException,
089                            com.liferay.portlet.announcements.NoSuchDeliveryException;
090    
091            public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
092                    long userId, java.lang.String type)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
096                    long userId, java.lang.String type, boolean retrieveFromCache)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll()
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
103                    int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
107                    int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public void removeByUserId(long userId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            public void removeByU_T(long userId, java.lang.String type)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.announcements.NoSuchDeliveryException;
117    
118            public void removeAll()
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public int countByUserId(long userId)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public int countByU_T(long userId, java.lang.String type)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            public int countAll()
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    }