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  import com.liferay.portal.model.PluginSetting;
26  
27  /**
28   * <a href="PluginSettingPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       PluginSettingPersistenceImpl
37   * @see       PluginSettingUtil
38   * @generated
39   */
40  public interface PluginSettingPersistence extends BasePersistence<PluginSetting> {
41      public void cacheResult(
42          com.liferay.portal.model.PluginSetting pluginSetting);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.PluginSetting> pluginSettings);
46  
47      public com.liferay.portal.model.PluginSetting create(long pluginSettingId);
48  
49      public com.liferay.portal.model.PluginSetting remove(long pluginSettingId)
50          throws com.liferay.portal.NoSuchPluginSettingException,
51              com.liferay.portal.SystemException;
52  
53      /**
54       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
55       */
56      public com.liferay.portal.model.PluginSetting update(
57          com.liferay.portal.model.PluginSetting pluginSetting)
58          throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.PluginSetting updateImpl(
61          com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portal.model.PluginSetting findByPrimaryKey(
65          long pluginSettingId)
66          throws com.liferay.portal.NoSuchPluginSettingException,
67              com.liferay.portal.SystemException;
68  
69      public com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
70          long pluginSettingId) throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
73          long companyId) throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
76          long companyId, int start, int end)
77          throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
80          long companyId, int start, int end,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.PluginSetting findByCompanyId_First(
85          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchPluginSettingException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.PluginSetting findByCompanyId_Last(
90          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.NoSuchPluginSettingException,
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
95          long pluginSettingId, long companyId,
96          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 findByC_I_T(long companyId,
101         java.lang.String pluginId, java.lang.String pluginType)
102         throws com.liferay.portal.NoSuchPluginSettingException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
106         java.lang.String pluginId, java.lang.String pluginType)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
110         java.lang.String pluginId, java.lang.String pluginType,
111         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portal.model.PluginSetting> findAll()
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
117         int start, int end) throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
120         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException;
122 
123     public void removeByCompanyId(long companyId)
124         throws com.liferay.portal.SystemException;
125 
126     public void removeByC_I_T(long companyId, java.lang.String pluginId,
127         java.lang.String pluginType)
128         throws com.liferay.portal.NoSuchPluginSettingException,
129             com.liferay.portal.SystemException;
130 
131     public void removeAll() throws com.liferay.portal.SystemException;
132 
133     public int countByCompanyId(long companyId)
134         throws com.liferay.portal.SystemException;
135 
136     public int countByC_I_T(long companyId, java.lang.String pluginId,
137         java.lang.String pluginType) throws com.liferay.portal.SystemException;
138 
139     public int countAll() throws com.liferay.portal.SystemException;
140 }