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