001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.wiki.service.persistence;
022:
023: /**
024: * <a href="WikiPagePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface WikiPagePersistence {
030: public com.liferay.portlet.wiki.model.WikiPage create(long pageId);
031:
032: public com.liferay.portlet.wiki.model.WikiPage remove(long pageId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portlet.wiki.NoSuchPageException;
035:
036: public com.liferay.portlet.wiki.model.WikiPage remove(
037: com.liferay.portlet.wiki.model.WikiPage wikiPage)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portlet.wiki.model.WikiPage update(
041: com.liferay.portlet.wiki.model.WikiPage wikiPage)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portlet.wiki.model.WikiPage update(
045: com.liferay.portlet.wiki.model.WikiPage wikiPage,
046: boolean merge) throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portlet.wiki.model.WikiPage updateImpl(
049: com.liferay.portlet.wiki.model.WikiPage wikiPage,
050: boolean merge) throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(
053: long pageId) throws com.liferay.portal.SystemException,
054: com.liferay.portlet.wiki.NoSuchPageException;
055:
056: public com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
057: long pageId) throws com.liferay.portal.SystemException;
058:
059: public java.util.List findByUuid(java.lang.String uuid)
060: throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByUuid(java.lang.String uuid, int begin,
063: int end) throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByUuid(java.lang.String uuid, int begin,
066: int end,
067: com.liferay.portal.kernel.util.OrderByComparator obc)
068: throws com.liferay.portal.SystemException;
069:
070: public com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
071: java.lang.String uuid,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException,
074: com.liferay.portlet.wiki.NoSuchPageException;
075:
076: public com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
077: java.lang.String uuid,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException,
080: com.liferay.portlet.wiki.NoSuchPageException;
081:
082: public com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
083: long pageId, java.lang.String uuid,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portlet.wiki.NoSuchPageException;
087:
088: public java.util.List findByNodeId(long nodeId)
089: throws com.liferay.portal.SystemException;
090:
091: public java.util.List findByNodeId(long nodeId, int begin, int end)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByNodeId(long nodeId, int begin, int end,
095: com.liferay.portal.kernel.util.OrderByComparator obc)
096: throws com.liferay.portal.SystemException;
097:
098: public com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
099: long nodeId,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException,
102: com.liferay.portlet.wiki.NoSuchPageException;
103:
104: public com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
105: long nodeId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portlet.wiki.NoSuchPageException;
109:
110: public com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
111: long pageId, long nodeId,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.wiki.NoSuchPageException;
115:
116: public java.util.List findByN_T(long nodeId, java.lang.String title)
117: throws com.liferay.portal.SystemException;
118:
119: public java.util.List findByN_T(long nodeId,
120: java.lang.String title, int begin, int end)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findByN_T(long nodeId,
124: java.lang.String title, int begin, int end,
125: com.liferay.portal.kernel.util.OrderByComparator obc)
126: throws com.liferay.portal.SystemException;
127:
128: public com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
129: long nodeId, java.lang.String title,
130: com.liferay.portal.kernel.util.OrderByComparator obc)
131: throws com.liferay.portal.SystemException,
132: com.liferay.portlet.wiki.NoSuchPageException;
133:
134: public com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(
135: long nodeId, java.lang.String title,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portlet.wiki.NoSuchPageException;
139:
140: public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
141: long pageId, long nodeId, java.lang.String title,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.wiki.NoSuchPageException;
145:
146: public java.util.List findByN_H(long nodeId, boolean head)
147: throws com.liferay.portal.SystemException;
148:
149: public java.util.List findByN_H(long nodeId, boolean head,
150: int begin, int end)
151: throws com.liferay.portal.SystemException;
152:
153: public java.util.List findByN_H(long nodeId, boolean head,
154: int begin, int end,
155: com.liferay.portal.kernel.util.OrderByComparator obc)
156: throws com.liferay.portal.SystemException;
157:
158: public com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
159: long nodeId, boolean head,
160: com.liferay.portal.kernel.util.OrderByComparator obc)
161: throws com.liferay.portal.SystemException,
162: com.liferay.portlet.wiki.NoSuchPageException;
163:
164: public com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(
165: long nodeId, boolean head,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.wiki.NoSuchPageException;
169:
170: public com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
171: long pageId, long nodeId, boolean head,
172: com.liferay.portal.kernel.util.OrderByComparator obc)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portlet.wiki.NoSuchPageException;
175:
176: public com.liferay.portlet.wiki.model.WikiPage findByN_T_V(
177: long nodeId, java.lang.String title, double version)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portlet.wiki.NoSuchPageException;
180:
181: public com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(
182: long nodeId, java.lang.String title, double version)
183: throws com.liferay.portal.SystemException;
184:
185: public java.util.List findByN_T_H(long nodeId,
186: java.lang.String title, boolean head)
187: throws com.liferay.portal.SystemException;
188:
189: public java.util.List findByN_T_H(long nodeId,
190: java.lang.String title, boolean head, int begin, int end)
191: throws com.liferay.portal.SystemException;
192:
193: public java.util.List findByN_T_H(long nodeId,
194: java.lang.String title, boolean head, int begin, int end,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException;
197:
198: public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
199: long nodeId, java.lang.String title, boolean head,
200: com.liferay.portal.kernel.util.OrderByComparator obc)
201: throws com.liferay.portal.SystemException,
202: com.liferay.portlet.wiki.NoSuchPageException;
203:
204: public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
205: long nodeId, java.lang.String title, boolean head,
206: com.liferay.portal.kernel.util.OrderByComparator obc)
207: throws com.liferay.portal.SystemException,
208: com.liferay.portlet.wiki.NoSuchPageException;
209:
210: public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
211: long pageId, long nodeId, java.lang.String title,
212: boolean head,
213: com.liferay.portal.kernel.util.OrderByComparator obc)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portlet.wiki.NoSuchPageException;
216:
217: public java.util.List findWithDynamicQuery(
218: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
219: throws com.liferay.portal.SystemException;
220:
221: public java.util.List findWithDynamicQuery(
222: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
223: int begin, int end)
224: throws com.liferay.portal.SystemException;
225:
226: public java.util.List findAll()
227: throws com.liferay.portal.SystemException;
228:
229: public java.util.List findAll(int begin, int end)
230: throws com.liferay.portal.SystemException;
231:
232: public java.util.List findAll(int begin, int end,
233: com.liferay.portal.kernel.util.OrderByComparator obc)
234: throws com.liferay.portal.SystemException;
235:
236: public void removeByUuid(java.lang.String uuid)
237: throws com.liferay.portal.SystemException;
238:
239: public void removeByNodeId(long nodeId)
240: throws com.liferay.portal.SystemException;
241:
242: public void removeByN_T(long nodeId, java.lang.String title)
243: throws com.liferay.portal.SystemException;
244:
245: public void removeByN_H(long nodeId, boolean head)
246: throws com.liferay.portal.SystemException;
247:
248: public void removeByN_T_V(long nodeId, java.lang.String title,
249: double version) throws com.liferay.portal.SystemException,
250: com.liferay.portlet.wiki.NoSuchPageException;
251:
252: public void removeByN_T_H(long nodeId, java.lang.String title,
253: boolean head) throws com.liferay.portal.SystemException;
254:
255: public void removeAll() throws com.liferay.portal.SystemException;
256:
257: public int countByUuid(java.lang.String uuid)
258: throws com.liferay.portal.SystemException;
259:
260: public int countByNodeId(long nodeId)
261: throws com.liferay.portal.SystemException;
262:
263: public int countByN_T(long nodeId, java.lang.String title)
264: throws com.liferay.portal.SystemException;
265:
266: public int countByN_H(long nodeId, boolean head)
267: throws com.liferay.portal.SystemException;
268:
269: public int countByN_T_V(long nodeId, java.lang.String title,
270: double version) throws com.liferay.portal.SystemException;
271:
272: public int countByN_T_H(long nodeId, java.lang.String title,
273: boolean head) throws com.liferay.portal.SystemException;
274:
275: public int countAll() throws com.liferay.portal.SystemException;
276: }
|