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 obc)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public com.liferay.portal.model.PortletItem findByG_C_First(long groupId,
71          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.NoSuchPortletItemException,
73              com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portal.model.PortletItem findByG_C_Last(long groupId,
76          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.NoSuchPortletItemException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext(
81          long portletItemId, long groupId, long classNameId,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.NoSuchPortletItemException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
87          long groupId, java.lang.String portletId, long classNameId)
88          throws com.liferay.portal.kernel.exception.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
91          long groupId, java.lang.String portletId, long classNameId, int start,
92          int end) throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
95          long groupId, java.lang.String portletId, long classNameId, int start,
96          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portal.model.PortletItem findByG_P_C_First(
100         long groupId, java.lang.String portletId, long classNameId,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.NoSuchPortletItemException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portal.model.PortletItem findByG_P_C_Last(long groupId,
106         java.lang.String portletId, long classNameId,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.NoSuchPortletItemException,
109             com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext(
112         long portletItemId, long groupId, java.lang.String portletId,
113         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchPortletItemException,
115             com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portal.model.PortletItem findByG_N_P_C(long groupId,
118         java.lang.String name, java.lang.String portletId, long classNameId)
119         throws com.liferay.portal.NoSuchPortletItemException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
123         java.lang.String name, java.lang.String portletId, long classNameId)
124         throws 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         boolean retrieveFromCache)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.PortletItem> findAll()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public java.util.List<com.liferay.portal.model.PortletItem> findAll(
135         int start, int end)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public void removeByG_C(long groupId, long classNameId)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public void removeByG_P_C(long groupId, java.lang.String portletId,
146         long classNameId)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public void removeByG_N_P_C(long groupId, java.lang.String name,
150         java.lang.String portletId, long classNameId)
151         throws com.liferay.portal.NoSuchPortletItemException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     public void removeAll()
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public int countByG_C(long groupId, long classNameId)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public int countByG_P_C(long groupId, java.lang.String portletId,
161         long classNameId)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public int countByG_N_P_C(long groupId, java.lang.String name,
165         java.lang.String portletId, long classNameId)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public int countAll()
169         throws com.liferay.portal.kernel.exception.SystemException;
170 }