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="WikiNodePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface WikiNodePersistence {
030: public com.liferay.portlet.wiki.model.WikiNode create(long nodeId);
031:
032: public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portlet.wiki.NoSuchNodeException;
035:
036: public com.liferay.portlet.wiki.model.WikiNode remove(
037: com.liferay.portlet.wiki.model.WikiNode wikiNode)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portlet.wiki.model.WikiNode update(
041: com.liferay.portlet.wiki.model.WikiNode wikiNode)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portlet.wiki.model.WikiNode update(
045: com.liferay.portlet.wiki.model.WikiNode wikiNode,
046: boolean merge) throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portlet.wiki.model.WikiNode updateImpl(
049: com.liferay.portlet.wiki.model.WikiNode wikiNode,
050: boolean merge) throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
053: long nodeId) throws com.liferay.portal.SystemException,
054: com.liferay.portlet.wiki.NoSuchNodeException;
055:
056: public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
057: long nodeId) 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.WikiNode 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.NoSuchNodeException;
075:
076: public com.liferay.portlet.wiki.model.WikiNode 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.NoSuchNodeException;
081:
082: public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
083: long nodeId, java.lang.String uuid,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portlet.wiki.NoSuchNodeException;
087:
088: public com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
089: java.lang.String uuid, long groupId)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portlet.wiki.NoSuchNodeException;
092:
093: public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
094: java.lang.String uuid, long groupId)
095: throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByGroupId(long groupId)
098: throws com.liferay.portal.SystemException;
099:
100: public java.util.List findByGroupId(long groupId, int begin, int end)
101: throws com.liferay.portal.SystemException;
102:
103: public java.util.List findByGroupId(long groupId, int begin,
104: int end,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException;
107:
108: public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
109: long groupId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portlet.wiki.NoSuchNodeException;
113:
114: public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
115: long groupId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portlet.wiki.NoSuchNodeException;
119:
120: public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
121: long nodeId, long groupId,
122: com.liferay.portal.kernel.util.OrderByComparator obc)
123: throws com.liferay.portal.SystemException,
124: com.liferay.portlet.wiki.NoSuchNodeException;
125:
126: public java.util.List findByCompanyId(long companyId)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findByCompanyId(long companyId, int begin,
130: int end) throws com.liferay.portal.SystemException;
131:
132: public java.util.List findByCompanyId(long companyId, int begin,
133: int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException;
136:
137: public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
138: long companyId,
139: com.liferay.portal.kernel.util.OrderByComparator obc)
140: throws com.liferay.portal.SystemException,
141: com.liferay.portlet.wiki.NoSuchNodeException;
142:
143: public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
144: long companyId,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portlet.wiki.NoSuchNodeException;
148:
149: public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
150: long nodeId, long companyId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.wiki.NoSuchNodeException;
154:
155: public java.util.List findWithDynamicQuery(
156: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
157: throws com.liferay.portal.SystemException;
158:
159: public java.util.List findWithDynamicQuery(
160: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
161: int begin, int end)
162: throws com.liferay.portal.SystemException;
163:
164: public java.util.List findAll()
165: throws com.liferay.portal.SystemException;
166:
167: public java.util.List findAll(int begin, int end)
168: throws com.liferay.portal.SystemException;
169:
170: public java.util.List findAll(int begin, int end,
171: com.liferay.portal.kernel.util.OrderByComparator obc)
172: throws com.liferay.portal.SystemException;
173:
174: public void removeByUuid(java.lang.String uuid)
175: throws com.liferay.portal.SystemException;
176:
177: public void removeByUUID_G(java.lang.String uuid, long groupId)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portlet.wiki.NoSuchNodeException;
180:
181: public void removeByGroupId(long groupId)
182: throws com.liferay.portal.SystemException;
183:
184: public void removeByCompanyId(long companyId)
185: throws com.liferay.portal.SystemException;
186:
187: public void removeAll() throws com.liferay.portal.SystemException;
188:
189: public int countByUuid(java.lang.String uuid)
190: throws com.liferay.portal.SystemException;
191:
192: public int countByUUID_G(java.lang.String uuid, long groupId)
193: throws com.liferay.portal.SystemException;
194:
195: public int countByGroupId(long groupId)
196: throws com.liferay.portal.SystemException;
197:
198: public int countByCompanyId(long companyId)
199: throws com.liferay.portal.SystemException;
200:
201: public int countAll() throws com.liferay.portal.SystemException;
202: }
|