1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="PortletItemPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       PortletItemPersistenceImpl
36   * @see       PortletItemUtil
37   * @generated
38   */
39  public interface PortletItemPersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.PortletItem portletItem);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.PortletItem> portletItems);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.PortletItem create(long portletItemId);
48  
49      public com.liferay.portal.model.PortletItem remove(long portletItemId)
50          throws com.liferay.portal.NoSuchPortletItemException,
51              com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.PortletItem remove(
54          com.liferay.portal.model.PortletItem portletItem)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * @deprecated Use {@link #update(PortletItem, boolean merge)}.
59       */
60      public com.liferay.portal.model.PortletItem update(
61          com.liferay.portal.model.PortletItem portletItem)
62          throws com.liferay.portal.SystemException;
63  
64      /**
65       * Add, update, or merge, the entity. This method also calls the model
66       * listeners to trigger the proper events associated with adding, deleting,
67       * or updating an entity.
68       *
69       * @param  portletItem the entity to add, update, or merge
70       * @param  merge boolean value for whether to merge the entity. The default
71       *         value is false. Setting merge to true is more expensive and
72       *         should only be true when portletItem is transient. See
73       *         LEP-5473 for a detailed discussion of this method.
74       * @return the entity that was added, updated, or merged
75       */
76      public com.liferay.portal.model.PortletItem update(
77          com.liferay.portal.model.PortletItem portletItem, boolean merge)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.PortletItem updateImpl(
81          com.liferay.portal.model.PortletItem portletItem, boolean merge)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.PortletItem findByPrimaryKey(
85          long portletItemId)
86          throws com.liferay.portal.NoSuchPortletItemException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.PortletItem fetchByPrimaryKey(
90          long portletItemId) throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
93          long groupId, long classNameId)
94          throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
97          long groupId, long classNameId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
101         long groupId, long classNameId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.PortletItem findByG_C_First(long groupId,
106         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.NoSuchPortletItemException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.PortletItem findByG_C_Last(long groupId,
111         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.NoSuchPortletItemException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext(
116         long portletItemId, long groupId, long classNameId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchPortletItemException,
119             com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
122         long groupId, java.lang.String portletId, long classNameId)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
126         long groupId, java.lang.String portletId, long classNameId, int start,
127         int end) throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
130         long groupId, java.lang.String portletId, long classNameId, int start,
131         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portal.model.PortletItem findByG_P_C_First(
135         long groupId, java.lang.String portletId, long classNameId,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.NoSuchPortletItemException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.PortletItem findByG_P_C_Last(long groupId,
141         java.lang.String portletId, long classNameId,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.NoSuchPortletItemException,
144             com.liferay.portal.SystemException;
145 
146     public com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext(
147         long portletItemId, long groupId, java.lang.String portletId,
148         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.NoSuchPortletItemException,
150             com.liferay.portal.SystemException;
151 
152     public com.liferay.portal.model.PortletItem findByG_N_P_C(long groupId,
153         java.lang.String name, java.lang.String portletId, long classNameId)
154         throws com.liferay.portal.NoSuchPortletItemException,
155             com.liferay.portal.SystemException;
156 
157     public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
158         java.lang.String name, java.lang.String portletId, long classNameId)
159         throws com.liferay.portal.SystemException;
160 
161     public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
162         java.lang.String name, java.lang.String portletId, long classNameId,
163         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
164 
165     public java.util.List<Object> findWithDynamicQuery(
166         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List<Object> findWithDynamicQuery(
170         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
171         int end) throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portal.model.PortletItem> findAll()
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portal.model.PortletItem> findAll(
177         int start, int end) throws com.liferay.portal.SystemException;
178 
179     public java.util.List<com.liferay.portal.model.PortletItem> findAll(
180         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException;
182 
183     public void removeByG_C(long groupId, long classNameId)
184         throws com.liferay.portal.SystemException;
185 
186     public void removeByG_P_C(long groupId, java.lang.String portletId,
187         long classNameId) throws com.liferay.portal.SystemException;
188 
189     public void removeByG_N_P_C(long groupId, java.lang.String name,
190         java.lang.String portletId, long classNameId)
191         throws com.liferay.portal.NoSuchPortletItemException,
192             com.liferay.portal.SystemException;
193 
194     public void removeAll() throws com.liferay.portal.SystemException;
195 
196     public int countByG_C(long groupId, long classNameId)
197         throws com.liferay.portal.SystemException;
198 
199     public int countByG_P_C(long groupId, java.lang.String portletId,
200         long classNameId) throws com.liferay.portal.SystemException;
201 
202     public int countByG_N_P_C(long groupId, java.lang.String name,
203         java.lang.String portletId, long classNameId)
204         throws com.liferay.portal.SystemException;
205 
206     public int countAll() throws com.liferay.portal.SystemException;
207 }