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