1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.PortletPreferences;
18  
19  /**
20   * <a href="PortletPreferencesPersistence.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       PortletPreferencesPersistenceImpl
29   * @see       PortletPreferencesUtil
30   * @generated
31   */
32  public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> {
33      public void cacheResult(
34          com.liferay.portal.model.PortletPreferences portletPreferences);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
38  
39      public com.liferay.portal.model.PortletPreferences create(
40          long portletPreferencesId);
41  
42      public com.liferay.portal.model.PortletPreferences remove(
43          long portletPreferencesId)
44          throws com.liferay.portal.NoSuchPortletPreferencesException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.PortletPreferences updateImpl(
48          com.liferay.portal.model.PortletPreferences portletPreferences,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
53          long portletPreferencesId)
54          throws com.liferay.portal.NoSuchPortletPreferencesException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
58          long portletPreferencesId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
62          long plid) throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
65          long plid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
69          long plid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.PortletPreferences findByPlid_First(
74          long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchPortletPreferencesException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.PortletPreferences findByPlid_Last(
79          long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchPortletPreferencesException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
84          long portletPreferencesId, long plid,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchPortletPreferencesException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
90          long plid, java.lang.String portletId)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
94          long plid, java.lang.String portletId, int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
98          long plid, java.lang.String portletId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portal.model.PortletPreferences findByP_P_First(
103         long plid, java.lang.String portletId,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchPortletPreferencesException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.PortletPreferences findByP_P_Last(
109         long plid, java.lang.String portletId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchPortletPreferencesException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
115         long portletPreferencesId, long plid, java.lang.String portletId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchPortletPreferencesException,
118             com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
121         long ownerId, int ownerType, long plid)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
125         long ownerId, int ownerType, long plid, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
129         long ownerId, int ownerType, long plid, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
134         long ownerId, int ownerType, long plid,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.NoSuchPortletPreferencesException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
140         long ownerId, int ownerType, long plid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchPortletPreferencesException,
143             com.liferay.portal.kernel.exception.SystemException;
144 
145     public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
146         long portletPreferencesId, long ownerId, int ownerType, long plid,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchPortletPreferencesException,
149             com.liferay.portal.kernel.exception.SystemException;
150 
151     public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
152         long ownerId, int ownerType, long plid, java.lang.String portletId)
153         throws com.liferay.portal.NoSuchPortletPreferencesException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
157         long ownerId, int ownerType, long plid, java.lang.String portletId)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
161         long ownerId, int ownerType, long plid, java.lang.String portletId,
162         boolean retrieveFromCache)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
169         int start, int end)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
173         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public void removeByPlid(long plid)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public void removeByP_P(long plid, java.lang.String portletId)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     public void removeByO_O_P(long ownerId, int ownerType, long plid)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
186         java.lang.String portletId)
187         throws com.liferay.portal.NoSuchPortletPreferencesException,
188             com.liferay.portal.kernel.exception.SystemException;
189 
190     public void removeAll()
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public int countByPlid(long plid)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     public int countByP_P(long plid, java.lang.String portletId)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public int countByO_O_P(long ownerId, int ownerType, long plid)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public int countByO_O_P_P(long ownerId, int ownerType, long plid,
203         java.lang.String portletId)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public int countAll()
207         throws com.liferay.portal.kernel.exception.SystemException;
208 }