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