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