1
22
23 package com.liferay.portlet.announcements.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface AnnouncementsDeliveryPersistence {
39 public com.liferay.portlet.announcements.model.AnnouncementsDelivery create(
40 long deliveryId);
41
42 public com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
43 long deliveryId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.announcements.NoSuchDeliveryException;
46
47 public com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
48 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.announcements.model.AnnouncementsDelivery update(
55 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.announcements.model.AnnouncementsDelivery update(
72 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateImpl(
76 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByPrimaryKey(
81 long deliveryId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.announcements.NoSuchDeliveryException;
84
85 public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByPrimaryKey(
86 long deliveryId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
90 long userId) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
94 long userId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
99 long userId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_First(
105 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.announcements.NoSuchDeliveryException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_Last(
111 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.announcements.NoSuchDeliveryException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.announcements.model.AnnouncementsDelivery[] findByUserId_PrevAndNext(
117 long deliveryId, long userId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.announcements.NoSuchDeliveryException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.announcements.model.AnnouncementsDelivery findByU_T(
124 long userId, java.lang.String type)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.announcements.NoSuchDeliveryException;
127
128 public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
129 long userId, java.lang.String type)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<Object> findWithDynamicQuery(
134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<Object> findWithDynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end) throws com.liferay.portal.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll()
144 throws com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
148 int start, int end) throws com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
152 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException;
154
155 public void removeByUserId(long userId)
156 throws com.liferay.portal.SystemException;
157
158 public void removeByU_T(long userId, java.lang.String type)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.announcements.NoSuchDeliveryException;
161
162 public void removeAll() throws com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public int countByUserId(long userId)
166 throws com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public int countByU_T(long userId, java.lang.String type)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int countAll() throws com.liferay.portal.SystemException;
174
175 public void registerListener(
176 com.liferay.portal.model.ModelListener listener);
177
178 public void unregisterListener(
179 com.liferay.portal.model.ModelListener listener);
180 }