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.Release;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ReleasePersistenceImpl
022     * @see       ReleaseUtil
023     * @generated
024     */
025    public interface ReleasePersistence extends BasePersistence<Release> {
026            public void cacheResult(com.liferay.portal.model.Release release);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Release> releases);
030    
031            public com.liferay.portal.model.Release create(long releaseId);
032    
033            public com.liferay.portal.model.Release remove(long releaseId)
034                    throws com.liferay.portal.NoSuchReleaseException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Release updateImpl(
038                    com.liferay.portal.model.Release release, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Release findByPrimaryKey(long releaseId)
042                    throws com.liferay.portal.NoSuchReleaseException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Release fetchByPrimaryKey(long releaseId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public com.liferay.portal.model.Release findByServletContextName(
049                    java.lang.String servletContextName)
050                    throws com.liferay.portal.NoSuchReleaseException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public com.liferay.portal.model.Release fetchByServletContextName(
054                    java.lang.String servletContextName)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public com.liferay.portal.model.Release fetchByServletContextName(
058                    java.lang.String servletContextName, boolean retrieveFromCache)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portal.model.Release> findAll()
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portal.model.Release> findAll(int start,
065                    int end) throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<com.liferay.portal.model.Release> findAll(int start,
068                    int end,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            public void removeByServletContextName(java.lang.String servletContextName)
073                    throws com.liferay.portal.NoSuchReleaseException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public void removeAll()
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public int countByServletContextName(java.lang.String servletContextName)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public int countAll()
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    }