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