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.portal.service.persistence;
022:
023: /**
024: * <a href="ImagePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ImagePersistence {
030: public com.liferay.portal.model.Image create(long imageId);
031:
032: public com.liferay.portal.model.Image remove(long imageId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchImageException;
035:
036: public com.liferay.portal.model.Image remove(
037: com.liferay.portal.model.Image image)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Image update(
041: com.liferay.portal.model.Image image)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Image update(
045: com.liferay.portal.model.Image image, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Image updateImpl(
049: com.liferay.portal.model.Image image, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
053: throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchImageException;
055:
056: public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
057: throws com.liferay.portal.SystemException;
058:
059: public java.util.List findBySize(int size)
060: throws com.liferay.portal.SystemException;
061:
062: public java.util.List findBySize(int size, int begin, int end)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findBySize(int size, int begin, int end,
066: com.liferay.portal.kernel.util.OrderByComparator obc)
067: throws com.liferay.portal.SystemException;
068:
069: public com.liferay.portal.model.Image findBySize_First(int size,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException,
072: com.liferay.portal.NoSuchImageException;
073:
074: public com.liferay.portal.model.Image findBySize_Last(int size,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.NoSuchImageException;
078:
079: public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
080: long imageId, int size,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.NoSuchImageException;
084:
085: public java.util.List findWithDynamicQuery(
086: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
087: throws com.liferay.portal.SystemException;
088:
089: public java.util.List findWithDynamicQuery(
090: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
091: int begin, int end)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findAll()
095: throws com.liferay.portal.SystemException;
096:
097: public java.util.List findAll(int begin, int end)
098: throws com.liferay.portal.SystemException;
099:
100: public java.util.List findAll(int begin, int end,
101: com.liferay.portal.kernel.util.OrderByComparator obc)
102: throws com.liferay.portal.SystemException;
103:
104: public void removeBySize(int size)
105: throws com.liferay.portal.SystemException;
106:
107: public void removeAll() throws com.liferay.portal.SystemException;
108:
109: public int countBySize(int size)
110: throws com.liferay.portal.SystemException;
111:
112: public int countAll() throws com.liferay.portal.SystemException;
113: }
|