1
22
23 package com.liferay.portlet.wiki.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.wiki.model.WikiPageResource;
30
31 import java.util.List;
32
33
46 public class WikiPageResourceUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static WikiPageResource remove(WikiPageResource wikiPageResource)
74 throws SystemException {
75 return getPersistence().remove(wikiPageResource);
76 }
77
78
81 public static WikiPageResource update(WikiPageResource wikiPageResource,
82 boolean merge) throws SystemException {
83 return getPersistence().update(wikiPageResource, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
88 getPersistence().cacheResult(wikiPageResource);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources) {
93 getPersistence().cacheResult(wikiPageResources);
94 }
95
96 public static com.liferay.portlet.wiki.model.WikiPageResource create(
97 long resourcePrimKey) {
98 return getPersistence().create(resourcePrimKey);
99 }
100
101 public static com.liferay.portlet.wiki.model.WikiPageResource remove(
102 long resourcePrimKey)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.wiki.NoSuchPageResourceException {
105 return getPersistence().remove(resourcePrimKey);
106 }
107
108
111 public static com.liferay.portlet.wiki.model.WikiPageResource update(
112 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(wikiPageResource);
115 }
116
117 public static com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
118 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(wikiPageResource, merge);
121 }
122
123 public static com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
124 long resourcePrimKey)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.wiki.NoSuchPageResourceException {
127 return getPersistence().findByPrimaryKey(resourcePrimKey);
128 }
129
130 public static com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
131 long resourcePrimKey) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(resourcePrimKey);
133 }
134
135 public static com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
136 long nodeId, java.lang.String title)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.wiki.NoSuchPageResourceException {
139 return getPersistence().findByN_T(nodeId, title);
140 }
141
142 public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
143 long nodeId, java.lang.String title)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().fetchByN_T(nodeId, title);
146 }
147
148 public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
149 long nodeId, java.lang.String title, boolean retrieveFromCache)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().fetchByN_T(nodeId, title, retrieveFromCache);
152 }
153
154 public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findAll();
157 }
158
159 public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
160 int start, int end) throws com.liferay.portal.SystemException {
161 return getPersistence().findAll(start, end);
162 }
163
164 public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
165 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException {
167 return getPersistence().findAll(start, end, obc);
168 }
169
170 public static void removeByN_T(long nodeId, java.lang.String title)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.wiki.NoSuchPageResourceException {
173 getPersistence().removeByN_T(nodeId, title);
174 }
175
176 public static void removeAll() throws com.liferay.portal.SystemException {
177 getPersistence().removeAll();
178 }
179
180 public static int countByN_T(long nodeId, java.lang.String title)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().countByN_T(nodeId, title);
183 }
184
185 public static int countAll() throws com.liferay.portal.SystemException {
186 return getPersistence().countAll();
187 }
188
189 public static WikiPageResourcePersistence getPersistence() {
190 if (_persistence == null) {
191 _persistence = (WikiPageResourcePersistence)PortalBeanLocatorUtil.locate(WikiPageResourcePersistence.class.getName());
192 }
193
194 return _persistence;
195 }
196
197 public void setPersistence(WikiPageResourcePersistence persistence) {
198 _persistence = persistence;
199 }
200
201 private static WikiPageResourcePersistence _persistence;
202 }