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  import com.liferay.portal.model.PortletItem;
26  
27  /**
28   * <a href="PortletItemPersistence.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       PortletItemPersistenceImpl
37   * @see       PortletItemUtil
38   * @generated
39   */
40  public interface PortletItemPersistence extends BasePersistence<PortletItem> {
41      public void cacheResult(com.liferay.portal.model.PortletItem portletItem);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.PortletItem> portletItems);
45  
46      public com.liferay.portal.model.PortletItem create(long portletItemId);
47  
48      public com.liferay.portal.model.PortletItem remove(long portletItemId)
49          throws com.liferay.portal.NoSuchPortletItemException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.PortletItem update(
56          com.liferay.portal.model.PortletItem portletItem)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.PortletItem updateImpl(
60          com.liferay.portal.model.PortletItem portletItem, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.PortletItem findByPrimaryKey(
64          long portletItemId)
65          throws com.liferay.portal.NoSuchPortletItemException,
66              com.liferay.portal.SystemException;
67  
68      public com.liferay.portal.model.PortletItem fetchByPrimaryKey(
69          long portletItemId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
72          long groupId, long classNameId)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
76          long groupId, long classNameId, int start, int end)
77          throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
80          long groupId, long classNameId, 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.PortletItem findByG_C_First(long groupId,
85          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchPortletItemException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.PortletItem findByG_C_Last(long groupId,
90          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.NoSuchPortletItemException,
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext(
95          long portletItemId, long groupId, long classNameId,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.NoSuchPortletItemException,
98              com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
101         long groupId, java.lang.String portletId, long classNameId)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
105         long groupId, java.lang.String portletId, long classNameId, int start,
106         int end) throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
109         long groupId, java.lang.String portletId, long classNameId, int start,
110         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.PortletItem findByG_P_C_First(
114         long groupId, java.lang.String portletId, long classNameId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchPortletItemException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.PortletItem findByG_P_C_Last(long groupId,
120         java.lang.String portletId, long classNameId,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.NoSuchPortletItemException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext(
126         long portletItemId, long groupId, java.lang.String portletId,
127         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.NoSuchPortletItemException,
129             com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.PortletItem findByG_N_P_C(long groupId,
132         java.lang.String name, java.lang.String portletId, long classNameId)
133         throws com.liferay.portal.NoSuchPortletItemException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
137         java.lang.String name, java.lang.String portletId, long classNameId)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
141         java.lang.String name, java.lang.String portletId, long classNameId,
142         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portal.model.PortletItem> findAll()
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.PortletItem> findAll(
148         int start, int end) throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portal.model.PortletItem> findAll(
151         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException;
153 
154     public void removeByG_C(long groupId, long classNameId)
155         throws com.liferay.portal.SystemException;
156 
157     public void removeByG_P_C(long groupId, java.lang.String portletId,
158         long classNameId) throws com.liferay.portal.SystemException;
159 
160     public void removeByG_N_P_C(long groupId, java.lang.String name,
161         java.lang.String portletId, long classNameId)
162         throws com.liferay.portal.NoSuchPortletItemException,
163             com.liferay.portal.SystemException;
164 
165     public void removeAll() throws com.liferay.portal.SystemException;
166 
167     public int countByG_C(long groupId, long classNameId)
168         throws com.liferay.portal.SystemException;
169 
170     public int countByG_P_C(long groupId, java.lang.String portletId,
171         long classNameId) throws com.liferay.portal.SystemException;
172 
173     public int countByG_N_P_C(long groupId, java.lang.String name,
174         java.lang.String portletId, long classNameId)
175         throws com.liferay.portal.SystemException;
176 
177     public int countAll() throws com.liferay.portal.SystemException;
178 }