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 obc)
74          throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portal.model.PluginSetting findByCompanyId_First(
77          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.NoSuchPluginSettingException,
79              com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.PluginSetting findByCompanyId_Last(
82          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.NoSuchPluginSettingException,
84              com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
87          long pluginSettingId, long companyId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchPluginSettingException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.PluginSetting findByC_I_T(long companyId,
93          java.lang.String pluginId, java.lang.String pluginType)
94          throws com.liferay.portal.NoSuchPluginSettingException,
95              com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
98          java.lang.String pluginId, java.lang.String pluginType)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.PluginSetting fetchByC_I_T(long companyId,
102         java.lang.String pluginId, java.lang.String pluginType,
103         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.PluginSetting> findAll()
106         throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
109         int start, int end) throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portal.model.PluginSetting> findAll(
112         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException;
114 
115     public void removeByCompanyId(long companyId)
116         throws com.liferay.portal.SystemException;
117 
118     public void removeByC_I_T(long companyId, java.lang.String pluginId,
119         java.lang.String pluginType)
120         throws com.liferay.portal.NoSuchPluginSettingException,
121             com.liferay.portal.SystemException;
122 
123     public void removeAll() throws com.liferay.portal.SystemException;
124 
125     public int countByCompanyId(long companyId)
126         throws com.liferay.portal.SystemException;
127 
128     public int countByC_I_T(long companyId, java.lang.String pluginId,
129         java.lang.String pluginType) throws com.liferay.portal.SystemException;
130 
131     public int countAll() throws com.liferay.portal.SystemException;
132 }