001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="PortletPreferencesPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface PortletPreferencesPersistence {
030: public com.liferay.portal.model.PortletPreferences create(
031: long portletPreferencesId);
032:
033: public com.liferay.portal.model.PortletPreferences remove(
034: long portletPreferencesId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchPortletPreferencesException;
037:
038: public com.liferay.portal.model.PortletPreferences remove(
039: com.liferay.portal.model.PortletPreferences portletPreferences)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.PortletPreferences update(
043: com.liferay.portal.model.PortletPreferences portletPreferences)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.PortletPreferences update(
047: com.liferay.portal.model.PortletPreferences portletPreferences,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.PortletPreferences updateImpl(
051: com.liferay.portal.model.PortletPreferences portletPreferences,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
055: long portletPreferencesId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchPortletPreferencesException;
058:
059: public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
060: long portletPreferencesId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByPlid(long plid)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByPlid(long plid, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByPlid(long plid, int begin, int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portal.model.PortletPreferences findByPlid_First(
074: long plid,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.NoSuchPortletPreferencesException;
078:
079: public com.liferay.portal.model.PortletPreferences findByPlid_Last(
080: long plid,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.NoSuchPortletPreferencesException;
084:
085: public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
086: long portletPreferencesId, long plid,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portal.NoSuchPortletPreferencesException;
090:
091: public java.util.List findByP_P(long plid,
092: java.lang.String portletId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByP_P(long plid,
096: java.lang.String portletId, int begin, int end)
097: throws com.liferay.portal.SystemException;
098:
099: public java.util.List findByP_P(long plid,
100: java.lang.String portletId, int begin, int end,
101: com.liferay.portal.kernel.util.OrderByComparator obc)
102: throws com.liferay.portal.SystemException;
103:
104: public com.liferay.portal.model.PortletPreferences findByP_P_First(
105: long plid, java.lang.String portletId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchPortletPreferencesException;
109:
110: public com.liferay.portal.model.PortletPreferences findByP_P_Last(
111: long plid, java.lang.String portletId,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portal.NoSuchPortletPreferencesException;
115:
116: public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
117: long portletPreferencesId, long plid,
118: java.lang.String portletId,
119: com.liferay.portal.kernel.util.OrderByComparator obc)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portal.NoSuchPortletPreferencesException;
122:
123: public java.util.List findByO_O_P(long ownerId, int ownerType,
124: long plid) throws com.liferay.portal.SystemException;
125:
126: public java.util.List findByO_O_P(long ownerId, int ownerType,
127: long plid, int begin, int end)
128: throws com.liferay.portal.SystemException;
129:
130: public java.util.List findByO_O_P(long ownerId, int ownerType,
131: long plid, int begin, int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException;
134:
135: public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
136: long ownerId, int ownerType, long plid,
137: com.liferay.portal.kernel.util.OrderByComparator obc)
138: throws com.liferay.portal.SystemException,
139: com.liferay.portal.NoSuchPortletPreferencesException;
140:
141: public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
142: long ownerId, int ownerType, long plid,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException,
145: com.liferay.portal.NoSuchPortletPreferencesException;
146:
147: public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
148: long portletPreferencesId, long ownerId, int ownerType,
149: long plid,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portal.NoSuchPortletPreferencesException;
153:
154: public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
155: long ownerId, int ownerType, long plid,
156: java.lang.String portletId)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portal.NoSuchPortletPreferencesException;
159:
160: public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
161: long ownerId, int ownerType, long plid,
162: java.lang.String portletId)
163: throws com.liferay.portal.SystemException;
164:
165: public java.util.List findWithDynamicQuery(
166: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
167: throws com.liferay.portal.SystemException;
168:
169: public java.util.List findWithDynamicQuery(
170: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
171: int begin, int end)
172: throws com.liferay.portal.SystemException;
173:
174: public java.util.List findAll()
175: throws com.liferay.portal.SystemException;
176:
177: public java.util.List findAll(int begin, int end)
178: throws com.liferay.portal.SystemException;
179:
180: public java.util.List findAll(int begin, int end,
181: com.liferay.portal.kernel.util.OrderByComparator obc)
182: throws com.liferay.portal.SystemException;
183:
184: public void removeByPlid(long plid)
185: throws com.liferay.portal.SystemException;
186:
187: public void removeByP_P(long plid, java.lang.String portletId)
188: throws com.liferay.portal.SystemException;
189:
190: public void removeByO_O_P(long ownerId, int ownerType, long plid)
191: throws com.liferay.portal.SystemException;
192:
193: public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
194: java.lang.String portletId)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portal.NoSuchPortletPreferencesException;
197:
198: public void removeAll() throws com.liferay.portal.SystemException;
199:
200: public int countByPlid(long plid)
201: throws com.liferay.portal.SystemException;
202:
203: public int countByP_P(long plid, java.lang.String portletId)
204: throws com.liferay.portal.SystemException;
205:
206: public int countByO_O_P(long ownerId, int ownerType, long plid)
207: throws com.liferay.portal.SystemException;
208:
209: public int countByO_O_P_P(long ownerId, int ownerType, long plid,
210: java.lang.String portletId)
211: throws com.liferay.portal.SystemException;
212:
213: public int countAll() throws com.liferay.portal.SystemException;
214: }
|