001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Image;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ImagePersistenceImpl
022     * @see       ImageUtil
023     * @generated
024     */
025    public interface ImagePersistence extends BasePersistence<Image> {
026            public void cacheResult(com.liferay.portal.model.Image image);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Image> images);
030    
031            public com.liferay.portal.model.Image create(long imageId);
032    
033            public com.liferay.portal.model.Image remove(long imageId)
034                    throws com.liferay.portal.NoSuchImageException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Image updateImpl(
038                    com.liferay.portal.model.Image image, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
042                    throws com.liferay.portal.NoSuchImageException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Image> findByLtSize(int size)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.Image> findByLtSize(
052                    int size, int start, int end)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.Image> findByLtSize(
056                    int size, int start, int end,
057                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public com.liferay.portal.model.Image findByLtSize_First(int size,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.NoSuchImageException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            public com.liferay.portal.model.Image findByLtSize_Last(int size,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.NoSuchImageException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public com.liferay.portal.model.Image[] findByLtSize_PrevAndNext(
071                    long imageId, int size,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.NoSuchImageException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public java.util.List<com.liferay.portal.model.Image> findAll()
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.Image> findAll(int start,
080                    int end) throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.Image> findAll(int start,
083                    int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            public void removeByLtSize(int size)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public void removeAll()
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public int countByLtSize(int size)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public int countAll()
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    }