1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.announcements.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.announcements.model.AnnouncementsDelivery;
20  
21  /**
22   * <a href="AnnouncementsDeliveryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       AnnouncementsDeliveryPersistenceImpl
31   * @see       AnnouncementsDeliveryUtil
32   * @generated
33   */
34  public interface AnnouncementsDeliveryPersistence extends BasePersistence<AnnouncementsDelivery> {
35      public void cacheResult(
36          com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries);
40  
41      public com.liferay.portlet.announcements.model.AnnouncementsDelivery create(
42          long deliveryId);
43  
44      public com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
45          long deliveryId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.announcements.NoSuchDeliveryException;
48  
49      public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateImpl(
50          com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByPrimaryKey(
55          long deliveryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.announcements.NoSuchDeliveryException;
58  
59      public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByPrimaryKey(
60          long deliveryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
64          long userId) throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_First(
76          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.announcements.NoSuchDeliveryException;
79  
80      public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_Last(
81          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.announcements.NoSuchDeliveryException;
84  
85      public com.liferay.portlet.announcements.model.AnnouncementsDelivery[] findByUserId_PrevAndNext(
86          long deliveryId, long userId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.announcements.NoSuchDeliveryException;
90  
91      public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByU_T(
92          long userId, java.lang.String type)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.announcements.NoSuchDeliveryException;
95  
96      public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
97          long userId, java.lang.String type)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
101         long userId, java.lang.String type, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
112         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public void removeByUserId(long userId)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public void removeByU_T(long userId, java.lang.String type)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.announcements.NoSuchDeliveryException;
121 
122     public void removeAll()
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public int countByUserId(long userId)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countByU_T(long userId, java.lang.String type)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public int countAll()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 }