1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="PluginSettingPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       PluginSettingPersistenceImpl
36   * @see       PluginSettingUtil
37   * @generated
38   */
39  public interface PluginSettingPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.PluginSetting pluginSetting);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.PluginSetting> pluginSettings);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.PluginSetting create(long pluginSettingId);
49  
50      public com.liferay.portal.model.PluginSetting remove(long pluginSettingId)
51          throws com.liferay.portal.NoSuchPluginSettingException,
52              com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.PluginSetting remove(
55          com.liferay.portal.model.PluginSetting pluginSetting)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(PluginSetting, boolean merge)}.
60       */
61      public com.liferay.portal.model.PluginSetting update(
62          com.liferay.portal.model.PluginSetting pluginSetting)
63          throws com.liferay.portal.SystemException;
64  
65      /**
66       * Add, update, or merge, the entity. This method also calls the model
67       * listeners to trigger the proper events associated with adding, deleting,
68       * or updating an entity.
69       *
70       * @param  pluginSetting the entity to add, update, or merge
71       * @param  merge boolean value for whether to merge the entity. The default
72       *         value is false. Setting merge to true is more expensive and
73       *         should only be true when pluginSetting is transient. See
74       *         LEP-5473 for a detailed discussion of this method.
75       * @return the entity that was added, updated, or merged
76       */
77      public com.liferay.portal.model.PluginSetting update(
78          com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.PluginSetting updateImpl(
82          com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.PluginSetting findByPrimaryKey(
86          long pluginSettingId)
87          throws com.liferay.portal.NoSuchPluginSettingException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
91          long pluginSettingId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
94          long companyId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
97          long companyId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
101         long companyId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.PluginSetting findByCompanyId_First(
106         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.NoSuchPluginSettingException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.PluginSetting findByCompanyId_Last(
111         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.NoSuchPluginSettingException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
116         long pluginSettingId, long companyId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchPluginSettingException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portal.model.PluginSetting findByC_I_T(long companyId,
122         java.lang.String pluginId, java.lang.String pluginType)
123         throws com.liferay.portal.NoSuchPluginSettingException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
127         java.lang.String pluginId, java.lang.String pluginType)
128         throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
131         java.lang.String pluginId, java.lang.String pluginType,
132         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
133 
134     public java.util.List<Object> findWithDynamicQuery(
135         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<Object> findWithDynamicQuery(
139         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140         int end) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portal.model.PluginSetting> findAll()
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
146         int start, int end) throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
149         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException;
151 
152     public void removeByCompanyId(long companyId)
153         throws com.liferay.portal.SystemException;
154 
155     public void removeByC_I_T(long companyId, java.lang.String pluginId,
156         java.lang.String pluginType)
157         throws com.liferay.portal.NoSuchPluginSettingException,
158             com.liferay.portal.SystemException;
159 
160     public void removeAll() throws com.liferay.portal.SystemException;
161 
162     public int countByCompanyId(long companyId)
163         throws com.liferay.portal.SystemException;
164 
165     public int countByC_I_T(long companyId, java.lang.String pluginId,
166         java.lang.String pluginType) throws com.liferay.portal.SystemException;
167 
168     public int countAll() throws com.liferay.portal.SystemException;
169 }