1
22
23 package com.liferay.portlet.journal.service.persistence;
24
25
31 public class JournalArticleResourceUtil {
32 public static com.liferay.portlet.journal.model.JournalArticleResource create(
33 long resourcePrimKey) {
34 return getPersistence().create(resourcePrimKey);
35 }
36
37 public static com.liferay.portlet.journal.model.JournalArticleResource remove(
38 long resourcePrimKey)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.journal.NoSuchArticleResourceException {
41 return getPersistence().remove(resourcePrimKey);
42 }
43
44 public static com.liferay.portlet.journal.model.JournalArticleResource remove(
45 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(journalArticleResource);
48 }
49
50
53 public static com.liferay.portlet.journal.model.JournalArticleResource update(
54 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(journalArticleResource);
57 }
58
59
72 public static com.liferay.portlet.journal.model.JournalArticleResource update(
73 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(journalArticleResource, merge);
76 }
77
78 public static com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
79 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(journalArticleResource, merge);
82 }
83
84 public static com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
85 long resourcePrimKey)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.journal.NoSuchArticleResourceException {
88 return getPersistence().findByPrimaryKey(resourcePrimKey);
89 }
90
91 public static com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
92 long resourcePrimKey) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(resourcePrimKey);
94 }
95
96 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByGroupId(groupId);
99 }
100
101 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
102 long groupId, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByGroupId(groupId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
108 long groupId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, start, end, obc);
112 }
113
114 public static com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
115 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.journal.NoSuchArticleResourceException {
118 return getPersistence().findByGroupId_First(groupId, obc);
119 }
120
121 public static com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
122 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.journal.NoSuchArticleResourceException {
125 return getPersistence().findByGroupId_Last(groupId, obc);
126 }
127
128 public static com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
129 long resourcePrimKey, long groupId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.journal.NoSuchArticleResourceException {
133 return getPersistence()
134 .findByGroupId_PrevAndNext(resourcePrimKey, groupId, obc);
135 }
136
137 public static com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
138 long groupId, java.lang.String articleId)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.journal.NoSuchArticleResourceException {
141 return getPersistence().findByG_A(groupId, articleId);
142 }
143
144 public static com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
145 long groupId, java.lang.String articleId)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().fetchByG_A(groupId, articleId);
148 }
149
150 public static java.util.List<Object> findWithDynamicQuery(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findWithDynamicQuery(dynamicQuery);
154 }
155
156 public static java.util.List<Object> findWithDynamicQuery(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158 int end) throws com.liferay.portal.SystemException {
159 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
163 throws com.liferay.portal.SystemException {
164 return getPersistence().findAll();
165 }
166
167 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
168 int start, int end) throws com.liferay.portal.SystemException {
169 return getPersistence().findAll(start, end);
170 }
171
172 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
173 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException {
175 return getPersistence().findAll(start, end, obc);
176 }
177
178 public static void removeByGroupId(long groupId)
179 throws com.liferay.portal.SystemException {
180 getPersistence().removeByGroupId(groupId);
181 }
182
183 public static void removeByG_A(long groupId, java.lang.String articleId)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.journal.NoSuchArticleResourceException {
186 getPersistence().removeByG_A(groupId, articleId);
187 }
188
189 public static void removeAll() throws com.liferay.portal.SystemException {
190 getPersistence().removeAll();
191 }
192
193 public static int countByGroupId(long groupId)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().countByGroupId(groupId);
196 }
197
198 public static int countByG_A(long groupId, java.lang.String articleId)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().countByG_A(groupId, articleId);
201 }
202
203 public static int countAll() throws com.liferay.portal.SystemException {
204 return getPersistence().countAll();
205 }
206
207 public static void registerListener(
208 com.liferay.portal.model.ModelListener listener) {
209 getPersistence().registerListener(listener);
210 }
211
212 public static void unregisterListener(
213 com.liferay.portal.model.ModelListener listener) {
214 getPersistence().unregisterListener(listener);
215 }
216
217 public static JournalArticleResourcePersistence getPersistence() {
218 return _persistence;
219 }
220
221 public void setPersistence(JournalArticleResourcePersistence persistence) {
222 _persistence = persistence;
223 }
224
225 private static JournalArticleResourcePersistence _persistence;
226 }