001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.PortletItem;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       PortletItemPersistenceImpl
022     * @see       PortletItemUtil
023     * @generated
024     */
025    public interface PortletItemPersistence extends BasePersistence<PortletItem> {
026            public void cacheResult(com.liferay.portal.model.PortletItem portletItem);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.PortletItem> portletItems);
030    
031            public com.liferay.portal.model.PortletItem create(long portletItemId);
032    
033            public com.liferay.portal.model.PortletItem remove(long portletItemId)
034                    throws com.liferay.portal.NoSuchPortletItemException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.PortletItem updateImpl(
038                    com.liferay.portal.model.PortletItem portletItem, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.PortletItem findByPrimaryKey(
042                    long portletItemId)
043                    throws com.liferay.portal.NoSuchPortletItemException,
044                            com.liferay.portal.kernel.exception.SystemException;
045    
046            public com.liferay.portal.model.PortletItem fetchByPrimaryKey(
047                    long portletItemId)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
051                    long groupId, long classNameId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
055                    long groupId, long classNameId, int start, int end)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
059                    long groupId, long classNameId, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portal.model.PortletItem findByG_C_First(long groupId,
064                    long classNameId,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.NoSuchPortletItemException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portal.model.PortletItem findByG_C_Last(long groupId,
070                    long classNameId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.NoSuchPortletItemException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext(
076                    long portletItemId, long groupId, long classNameId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.NoSuchPortletItemException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
082                    long groupId, java.lang.String portletId, long classNameId)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
086                    long groupId, java.lang.String portletId, long classNameId, int start,
087                    int end) throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
090                    long groupId, java.lang.String portletId, long classNameId, int start,
091                    int end,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portal.model.PortletItem findByG_P_C_First(
096                    long groupId, java.lang.String portletId, long classNameId,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.NoSuchPortletItemException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portal.model.PortletItem findByG_P_C_Last(long groupId,
102                    java.lang.String portletId, long classNameId,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.NoSuchPortletItemException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            public com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext(
108                    long portletItemId, long groupId, java.lang.String portletId,
109                    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_N_P_C(long groupId,
115                    java.lang.String name, java.lang.String portletId, long classNameId)
116                    throws com.liferay.portal.NoSuchPortletItemException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    
119            public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
120                    java.lang.String name, java.lang.String portletId, long classNameId)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId,
124                    java.lang.String name, java.lang.String portletId, long classNameId,
125                    boolean retrieveFromCache)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portal.model.PortletItem> findAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portal.model.PortletItem> findAll(
132                    int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portal.model.PortletItem> findAll(
136                    int start, int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public void removeByG_C(long groupId, long classNameId)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public void removeByG_P_C(long groupId, java.lang.String portletId,
144                    long classNameId)
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            public void removeByG_N_P_C(long groupId, java.lang.String name,
148                    java.lang.String portletId, long classNameId)
149                    throws com.liferay.portal.NoSuchPortletItemException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    
152            public void removeAll()
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public int countByG_C(long groupId, long classNameId)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            public int countByG_P_C(long groupId, java.lang.String portletId,
159                    long classNameId)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countByG_N_P_C(long groupId, java.lang.String name,
163                    java.lang.String portletId, long classNameId)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public int countAll()
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    }