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.journal.service.persistence;
022:
023: /**
024: * <a href="JournalTemplatePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface JournalTemplatePersistence {
030: public com.liferay.portlet.journal.model.JournalTemplate create(
031: long id);
032:
033: public com.liferay.portlet.journal.model.JournalTemplate remove(
034: long id) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.journal.NoSuchTemplateException;
036:
037: public com.liferay.portlet.journal.model.JournalTemplate remove(
038: com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.journal.model.JournalTemplate update(
042: com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.journal.model.JournalTemplate update(
046: com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
050: com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
054: long id) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.journal.NoSuchTemplateException;
056:
057: public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
058: long id) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByUuid(java.lang.String uuid)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUuid(java.lang.String uuid, int begin,
064: int end) throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUuid(java.lang.String uuid, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
072: java.lang.String uuid,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.journal.NoSuchTemplateException;
076:
077: public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
078: java.lang.String uuid,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.journal.NoSuchTemplateException;
082:
083: public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
084: long id, java.lang.String uuid,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.journal.NoSuchTemplateException;
088:
089: public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
090: java.lang.String uuid, long groupId)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portlet.journal.NoSuchTemplateException;
093:
094: public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
095: java.lang.String uuid, long groupId)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByGroupId(long groupId)
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findByGroupId(long groupId, int begin, int end)
102: throws com.liferay.portal.SystemException;
103:
104: public java.util.List findByGroupId(long groupId, int begin,
105: int end,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException;
108:
109: public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
110: long groupId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.journal.NoSuchTemplateException;
114:
115: public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
116: long groupId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.journal.NoSuchTemplateException;
120:
121: public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
122: long id, long groupId,
123: com.liferay.portal.kernel.util.OrderByComparator obc)
124: throws com.liferay.portal.SystemException,
125: com.liferay.portlet.journal.NoSuchTemplateException;
126:
127: public java.util.List findByTemplateId(java.lang.String templateId)
128: throws com.liferay.portal.SystemException;
129:
130: public java.util.List findByTemplateId(java.lang.String templateId,
131: int begin, int end)
132: throws com.liferay.portal.SystemException;
133:
134: public java.util.List findByTemplateId(java.lang.String templateId,
135: int begin, int end,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException;
138:
139: public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
140: java.lang.String templateId,
141: com.liferay.portal.kernel.util.OrderByComparator obc)
142: throws com.liferay.portal.SystemException,
143: com.liferay.portlet.journal.NoSuchTemplateException;
144:
145: public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
146: java.lang.String templateId,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portlet.journal.NoSuchTemplateException;
150:
151: public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
152: long id, java.lang.String templateId,
153: com.liferay.portal.kernel.util.OrderByComparator obc)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portlet.journal.NoSuchTemplateException;
156:
157: public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
158: long smallImageId)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.journal.NoSuchTemplateException;
161:
162: public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
163: long smallImageId)
164: throws com.liferay.portal.SystemException;
165:
166: public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
167: long groupId, java.lang.String templateId)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.journal.NoSuchTemplateException;
170:
171: public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
172: long groupId, java.lang.String templateId)
173: throws com.liferay.portal.SystemException;
174:
175: public java.util.List findByG_S(long groupId,
176: java.lang.String structureId)
177: throws com.liferay.portal.SystemException;
178:
179: public java.util.List findByG_S(long groupId,
180: java.lang.String structureId, int begin, int end)
181: throws com.liferay.portal.SystemException;
182:
183: public java.util.List findByG_S(long groupId,
184: java.lang.String structureId, int begin, int end,
185: com.liferay.portal.kernel.util.OrderByComparator obc)
186: throws com.liferay.portal.SystemException;
187:
188: public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
189: long groupId, java.lang.String structureId,
190: com.liferay.portal.kernel.util.OrderByComparator obc)
191: throws com.liferay.portal.SystemException,
192: com.liferay.portlet.journal.NoSuchTemplateException;
193:
194: public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
195: long groupId, java.lang.String structureId,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portlet.journal.NoSuchTemplateException;
199:
200: public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
201: long id, long groupId, java.lang.String structureId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.journal.NoSuchTemplateException;
205:
206: public java.util.List findWithDynamicQuery(
207: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
208: throws com.liferay.portal.SystemException;
209:
210: public java.util.List findWithDynamicQuery(
211: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
212: int begin, int end)
213: throws com.liferay.portal.SystemException;
214:
215: public java.util.List findAll()
216: throws com.liferay.portal.SystemException;
217:
218: public java.util.List findAll(int begin, int end)
219: throws com.liferay.portal.SystemException;
220:
221: public java.util.List findAll(int begin, int end,
222: com.liferay.portal.kernel.util.OrderByComparator obc)
223: throws com.liferay.portal.SystemException;
224:
225: public void removeByUuid(java.lang.String uuid)
226: throws com.liferay.portal.SystemException;
227:
228: public void removeByUUID_G(java.lang.String uuid, long groupId)
229: throws com.liferay.portal.SystemException,
230: com.liferay.portlet.journal.NoSuchTemplateException;
231:
232: public void removeByGroupId(long groupId)
233: throws com.liferay.portal.SystemException;
234:
235: public void removeByTemplateId(java.lang.String templateId)
236: throws com.liferay.portal.SystemException;
237:
238: public void removeBySmallImageId(long smallImageId)
239: throws com.liferay.portal.SystemException,
240: com.liferay.portlet.journal.NoSuchTemplateException;
241:
242: public void removeByG_T(long groupId, java.lang.String templateId)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portlet.journal.NoSuchTemplateException;
245:
246: public void removeByG_S(long groupId, java.lang.String structureId)
247: throws com.liferay.portal.SystemException;
248:
249: public void removeAll() throws com.liferay.portal.SystemException;
250:
251: public int countByUuid(java.lang.String uuid)
252: throws com.liferay.portal.SystemException;
253:
254: public int countByUUID_G(java.lang.String uuid, long groupId)
255: throws com.liferay.portal.SystemException;
256:
257: public int countByGroupId(long groupId)
258: throws com.liferay.portal.SystemException;
259:
260: public int countByTemplateId(java.lang.String templateId)
261: throws com.liferay.portal.SystemException;
262:
263: public int countBySmallImageId(long smallImageId)
264: throws com.liferay.portal.SystemException;
265:
266: public int countByG_T(long groupId, java.lang.String templateId)
267: throws com.liferay.portal.SystemException;
268:
269: public int countByG_S(long groupId, java.lang.String structureId)
270: throws com.liferay.portal.SystemException;
271:
272: public int countAll() throws com.liferay.portal.SystemException;
273: }
|