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.imagegallery.service.persistence;
022:
023: /**
024: * <a href="IGImagePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface IGImagePersistence {
030: public com.liferay.portlet.imagegallery.model.IGImage create(
031: long imageId);
032:
033: public com.liferay.portlet.imagegallery.model.IGImage remove(
034: long imageId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.imagegallery.NoSuchImageException;
036:
037: public com.liferay.portlet.imagegallery.model.IGImage remove(
038: com.liferay.portlet.imagegallery.model.IGImage igImage)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.imagegallery.model.IGImage update(
042: com.liferay.portlet.imagegallery.model.IGImage igImage)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.imagegallery.model.IGImage update(
046: com.liferay.portlet.imagegallery.model.IGImage igImage,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.imagegallery.model.IGImage updateImpl(
050: com.liferay.portlet.imagegallery.model.IGImage igImage,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
054: long imageId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.imagegallery.NoSuchImageException;
056:
057: public com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
058: long imageId) 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.imagegallery.model.IGImage 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.imagegallery.NoSuchImageException;
076:
077: public com.liferay.portlet.imagegallery.model.IGImage 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.imagegallery.NoSuchImageException;
082:
083: public com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
084: long imageId, java.lang.String uuid,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.imagegallery.NoSuchImageException;
088:
089: public java.util.List findByFolderId(long folderId)
090: throws com.liferay.portal.SystemException;
091:
092: public java.util.List findByFolderId(long folderId, int begin,
093: int end) throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByFolderId(long folderId, int begin,
096: int end,
097: com.liferay.portal.kernel.util.OrderByComparator obc)
098: throws com.liferay.portal.SystemException;
099:
100: public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
101: long folderId,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.imagegallery.NoSuchImageException;
105:
106: public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
107: long folderId,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portlet.imagegallery.NoSuchImageException;
111:
112: public com.liferay.portlet.imagegallery.model.IGImage[] findByFolderId_PrevAndNext(
113: long imageId, long folderId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.imagegallery.NoSuchImageException;
117:
118: public com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
119: long smallImageId)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.imagegallery.NoSuchImageException;
122:
123: public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
124: long smallImageId)
125: throws com.liferay.portal.SystemException;
126:
127: public com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
128: long largeImageId)
129: throws com.liferay.portal.SystemException,
130: com.liferay.portlet.imagegallery.NoSuchImageException;
131:
132: public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
133: long largeImageId)
134: throws com.liferay.portal.SystemException;
135:
136: public java.util.List findWithDynamicQuery(
137: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
138: throws com.liferay.portal.SystemException;
139:
140: public java.util.List findWithDynamicQuery(
141: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
142: int begin, int end)
143: throws com.liferay.portal.SystemException;
144:
145: public java.util.List findAll()
146: throws com.liferay.portal.SystemException;
147:
148: public java.util.List findAll(int begin, int end)
149: throws com.liferay.portal.SystemException;
150:
151: public java.util.List findAll(int begin, int end,
152: com.liferay.portal.kernel.util.OrderByComparator obc)
153: throws com.liferay.portal.SystemException;
154:
155: public void removeByUuid(java.lang.String uuid)
156: throws com.liferay.portal.SystemException;
157:
158: public void removeByFolderId(long folderId)
159: throws com.liferay.portal.SystemException;
160:
161: public void removeBySmallImageId(long smallImageId)
162: throws com.liferay.portal.SystemException,
163: com.liferay.portlet.imagegallery.NoSuchImageException;
164:
165: public void removeByLargeImageId(long largeImageId)
166: throws com.liferay.portal.SystemException,
167: com.liferay.portlet.imagegallery.NoSuchImageException;
168:
169: public void removeAll() throws com.liferay.portal.SystemException;
170:
171: public int countByUuid(java.lang.String uuid)
172: throws com.liferay.portal.SystemException;
173:
174: public int countByFolderId(long folderId)
175: throws com.liferay.portal.SystemException;
176:
177: public int countBySmallImageId(long smallImageId)
178: throws com.liferay.portal.SystemException;
179:
180: public int countByLargeImageId(long largeImageId)
181: throws com.liferay.portal.SystemException;
182:
183: public int countAll() throws com.liferay.portal.SystemException;
184: }
|