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 * The persistence interface for the release service. 021 * 022 * <p> 023 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see ReleasePersistenceImpl 028 * @see ReleaseUtil 029 * @generated 030 */ 031 public interface ReleasePersistence extends BasePersistence<Release> { 032 /** 033 * Caches the release in the entity cache if it is enabled. 034 * 035 * @param release the release to cache 036 */ 037 public void cacheResult(com.liferay.portal.model.Release release); 038 039 /** 040 * Caches the releases in the entity cache if it is enabled. 041 * 042 * @param releases the releases to cache 043 */ 044 public void cacheResult( 045 java.util.List<com.liferay.portal.model.Release> releases); 046 047 /** 048 * Creates a new release with the primary key. 049 * 050 * @param releaseId the primary key for the new release 051 * @return the new release 052 */ 053 public com.liferay.portal.model.Release create(long releaseId); 054 055 /** 056 * Removes the release with the primary key from the database. Also notifies the appropriate model listeners. 057 * 058 * @param releaseId the primary key of the release to remove 059 * @return the release that was removed 060 * @throws com.liferay.portal.NoSuchReleaseException if a release with the primary key could not be found 061 * @throws SystemException if a system exception occurred 062 */ 063 public com.liferay.portal.model.Release remove(long releaseId) 064 throws com.liferay.portal.NoSuchReleaseException, 065 com.liferay.portal.kernel.exception.SystemException; 066 067 public com.liferay.portal.model.Release updateImpl( 068 com.liferay.portal.model.Release release, boolean merge) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Finds the release with the primary key or throws a {@link com.liferay.portal.NoSuchReleaseException} if it could not be found. 073 * 074 * @param releaseId the primary key of the release to find 075 * @return the release 076 * @throws com.liferay.portal.NoSuchReleaseException if a release with the primary key could not be found 077 * @throws SystemException if a system exception occurred 078 */ 079 public com.liferay.portal.model.Release findByPrimaryKey(long releaseId) 080 throws com.liferay.portal.NoSuchReleaseException, 081 com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Finds the release with the primary key or returns <code>null</code> if it could not be found. 085 * 086 * @param releaseId the primary key of the release to find 087 * @return the release, or <code>null</code> if a release with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portal.model.Release fetchByPrimaryKey(long releaseId) 091 throws com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Finds the release where servletContextName = ? or throws a {@link com.liferay.portal.NoSuchReleaseException} if it could not be found. 095 * 096 * @param servletContextName the servlet context name to search with 097 * @return the matching release 098 * @throws com.liferay.portal.NoSuchReleaseException if a matching release could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portal.model.Release findByServletContextName( 102 java.lang.String servletContextName) 103 throws com.liferay.portal.NoSuchReleaseException, 104 com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Finds the release where servletContextName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 108 * 109 * @param servletContextName the servlet context name to search with 110 * @return the matching release, or <code>null</code> if a matching release could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portal.model.Release fetchByServletContextName( 114 java.lang.String servletContextName) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Finds the release where servletContextName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 119 * 120 * @param servletContextName the servlet context name to search with 121 * @return the matching release, or <code>null</code> if a matching release could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portal.model.Release fetchByServletContextName( 125 java.lang.String servletContextName, boolean retrieveFromCache) 126 throws com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Finds all the releases. 130 * 131 * @return the releases 132 * @throws SystemException if a system exception occurred 133 */ 134 public java.util.List<com.liferay.portal.model.Release> findAll() 135 throws com.liferay.portal.kernel.exception.SystemException; 136 137 /** 138 * Finds a range of all the releases. 139 * 140 * <p> 141 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 142 * </p> 143 * 144 * @param start the lower bound of the range of releases to return 145 * @param end the upper bound of the range of releases to return (not inclusive) 146 * @return the range of releases 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portal.model.Release> findAll(int start, 150 int end) throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Finds an ordered range of all the releases. 154 * 155 * <p> 156 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 157 * </p> 158 * 159 * @param start the lower bound of the range of releases to return 160 * @param end the upper bound of the range of releases to return (not inclusive) 161 * @param orderByComparator the comparator to order the results by 162 * @return the ordered range of releases 163 * @throws SystemException if a system exception occurred 164 */ 165 public java.util.List<com.liferay.portal.model.Release> findAll(int start, 166 int end, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException; 169 170 /** 171 * Removes the release where servletContextName = ? from the database. 172 * 173 * @param servletContextName the servlet context name to search with 174 * @throws SystemException if a system exception occurred 175 */ 176 public void removeByServletContextName(java.lang.String servletContextName) 177 throws com.liferay.portal.NoSuchReleaseException, 178 com.liferay.portal.kernel.exception.SystemException; 179 180 /** 181 * Removes all the releases from the database. 182 * 183 * @throws SystemException if a system exception occurred 184 */ 185 public void removeAll() 186 throws com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Counts all the releases where servletContextName = ?. 190 * 191 * @param servletContextName the servlet context name to search with 192 * @return the number of matching releases 193 * @throws SystemException if a system exception occurred 194 */ 195 public int countByServletContextName(java.lang.String servletContextName) 196 throws com.liferay.portal.kernel.exception.SystemException; 197 198 /** 199 * Counts all the releases. 200 * 201 * @return the number of releases 202 * @throws SystemException if a system exception occurred 203 */ 204 public int countAll() 205 throws com.liferay.portal.kernel.exception.SystemException; 206 }