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