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