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.PortletPreferences; 018 019 /** 020 * The persistence interface for the portlet preferences service. 021 * 022 * <p> 023 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see PortletPreferencesPersistenceImpl 028 * @see PortletPreferencesUtil 029 * @generated 030 */ 031 public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> { 032 /** 033 * Caches the portlet preferences in the entity cache if it is enabled. 034 * 035 * @param portletPreferences the portlet preferences to cache 036 */ 037 public void cacheResult( 038 com.liferay.portal.model.PortletPreferences portletPreferences); 039 040 /** 041 * Caches the portlet preferenceses in the entity cache if it is enabled. 042 * 043 * @param portletPreferenceses the portlet preferenceses to cache 044 */ 045 public void cacheResult( 046 java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses); 047 048 /** 049 * Creates a new portlet preferences with the primary key. 050 * 051 * @param portletPreferencesId the primary key for the new portlet preferences 052 * @return the new portlet preferences 053 */ 054 public com.liferay.portal.model.PortletPreferences create( 055 long portletPreferencesId); 056 057 /** 058 * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param portletPreferencesId the primary key of the portlet preferences to remove 061 * @return the portlet preferences that was removed 062 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public com.liferay.portal.model.PortletPreferences remove( 066 long portletPreferencesId) 067 throws com.liferay.portal.NoSuchPortletPreferencesException, 068 com.liferay.portal.kernel.exception.SystemException; 069 070 public com.liferay.portal.model.PortletPreferences updateImpl( 071 com.liferay.portal.model.PortletPreferences portletPreferences, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found. 077 * 078 * @param portletPreferencesId the primary key of the portlet preferences to find 079 * @return the portlet preferences 080 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portal.model.PortletPreferences findByPrimaryKey( 084 long portletPreferencesId) 085 throws com.liferay.portal.NoSuchPortletPreferencesException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Finds the portlet preferences with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param portletPreferencesId the primary key of the portlet preferences to find 092 * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey( 096 long portletPreferencesId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the portlet preferenceses where plid = ?. 101 * 102 * @param plid the plid to search with 103 * @return the matching portlet preferenceses 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 107 long plid) throws com.liferay.portal.kernel.exception.SystemException; 108 109 /** 110 * Finds a range of all the portlet preferenceses where plid = ?. 111 * 112 * <p> 113 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 114 * </p> 115 * 116 * @param plid the plid to search with 117 * @param start the lower bound of the range of portlet preferenceses to return 118 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 119 * @return the range of matching portlet preferenceses 120 * @throws SystemException if a system exception occurred 121 */ 122 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 123 long plid, int start, int end) 124 throws com.liferay.portal.kernel.exception.SystemException; 125 126 /** 127 * Finds an ordered range of all the portlet preferenceses where plid = ?. 128 * 129 * <p> 130 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 131 * </p> 132 * 133 * @param plid the plid to search with 134 * @param start the lower bound of the range of portlet preferenceses to return 135 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 136 * @param orderByComparator the comparator to order the results by 137 * @return the ordered range of matching portlet preferenceses 138 * @throws SystemException if a system exception occurred 139 */ 140 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 141 long plid, int start, int end, 142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 143 throws com.liferay.portal.kernel.exception.SystemException; 144 145 /** 146 * Finds the first portlet preferences in the ordered set where plid = ?. 147 * 148 * <p> 149 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 150 * </p> 151 * 152 * @param plid the plid to search with 153 * @param orderByComparator the comparator to order the set by 154 * @return the first matching portlet preferences 155 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 156 * @throws SystemException if a system exception occurred 157 */ 158 public com.liferay.portal.model.PortletPreferences findByPlid_First( 159 long plid, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.NoSuchPortletPreferencesException, 162 com.liferay.portal.kernel.exception.SystemException; 163 164 /** 165 * Finds the last portlet preferences in the ordered set where plid = ?. 166 * 167 * <p> 168 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 169 * </p> 170 * 171 * @param plid the plid to search with 172 * @param orderByComparator the comparator to order the set by 173 * @return the last matching portlet preferences 174 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portal.model.PortletPreferences findByPlid_Last( 178 long plid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.NoSuchPortletPreferencesException, 181 com.liferay.portal.kernel.exception.SystemException; 182 183 /** 184 * Finds the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?. 185 * 186 * <p> 187 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 188 * </p> 189 * 190 * @param portletPreferencesId the primary key of the current portlet preferences 191 * @param plid the plid to search with 192 * @param orderByComparator the comparator to order the set by 193 * @return the previous, current, and next portlet preferences 194 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext( 198 long portletPreferencesId, long plid, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.NoSuchPortletPreferencesException, 201 com.liferay.portal.kernel.exception.SystemException; 202 203 /** 204 * Finds all the portlet preferenceses where plid = ? and portletId = ?. 205 * 206 * @param plid the plid to search with 207 * @param portletId the portlet id to search with 208 * @return the matching portlet preferenceses 209 * @throws SystemException if a system exception occurred 210 */ 211 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 212 long plid, java.lang.String portletId) 213 throws com.liferay.portal.kernel.exception.SystemException; 214 215 /** 216 * Finds a range of all the portlet preferenceses where plid = ? and portletId = ?. 217 * 218 * <p> 219 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 220 * </p> 221 * 222 * @param plid the plid to search with 223 * @param portletId the portlet id to search with 224 * @param start the lower bound of the range of portlet preferenceses to return 225 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 226 * @return the range of matching portlet preferenceses 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 230 long plid, java.lang.String portletId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds an ordered range of all the portlet preferenceses where plid = ? and portletId = ?. 235 * 236 * <p> 237 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 238 * </p> 239 * 240 * @param plid the plid to search with 241 * @param portletId the portlet id to search with 242 * @param start the lower bound of the range of portlet preferenceses to return 243 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 245 * @return the ordered range of matching portlet preferenceses 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 249 long plid, java.lang.String portletId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Finds the first portlet preferences in the ordered set where plid = ? and portletId = ?. 255 * 256 * <p> 257 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 258 * </p> 259 * 260 * @param plid the plid to search with 261 * @param portletId the portlet id to search with 262 * @param orderByComparator the comparator to order the set by 263 * @return the first matching portlet preferences 264 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.PortletPreferences findByP_P_First( 268 long plid, java.lang.String portletId, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.NoSuchPortletPreferencesException, 271 com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Finds the last portlet preferences in the ordered set where plid = ? and portletId = ?. 275 * 276 * <p> 277 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 278 * </p> 279 * 280 * @param plid the plid to search with 281 * @param portletId the portlet id to search with 282 * @param orderByComparator the comparator to order the set by 283 * @return the last matching portlet preferences 284 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public com.liferay.portal.model.PortletPreferences findByP_P_Last( 288 long plid, java.lang.String portletId, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.NoSuchPortletPreferencesException, 291 com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Finds the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?. 295 * 296 * <p> 297 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 298 * </p> 299 * 300 * @param portletPreferencesId the primary key of the current portlet preferences 301 * @param plid the plid to search with 302 * @param portletId the portlet id to search with 303 * @param orderByComparator the comparator to order the set by 304 * @return the previous, current, and next portlet preferences 305 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext( 309 long portletPreferencesId, long plid, java.lang.String portletId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.NoSuchPortletPreferencesException, 312 com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Finds all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 316 * 317 * @param ownerId the owner id to search with 318 * @param ownerType the owner type to search with 319 * @param plid the plid to search with 320 * @return the matching portlet preferenceses 321 * @throws SystemException if a system exception occurred 322 */ 323 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 324 long ownerId, int ownerType, long plid) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Finds a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 329 * 330 * <p> 331 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 332 * </p> 333 * 334 * @param ownerId the owner id to search with 335 * @param ownerType the owner type to search with 336 * @param plid the plid to search with 337 * @param start the lower bound of the range of portlet preferenceses to return 338 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 339 * @return the range of matching portlet preferenceses 340 * @throws SystemException if a system exception occurred 341 */ 342 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 343 long ownerId, int ownerType, long plid, int start, int end) 344 throws com.liferay.portal.kernel.exception.SystemException; 345 346 /** 347 * Finds an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 348 * 349 * <p> 350 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 351 * </p> 352 * 353 * @param ownerId the owner id to search with 354 * @param ownerType the owner type to search with 355 * @param plid the plid to search with 356 * @param start the lower bound of the range of portlet preferenceses to return 357 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 358 * @param orderByComparator the comparator to order the results by 359 * @return the ordered range of matching portlet preferenceses 360 * @throws SystemException if a system exception occurred 361 */ 362 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 363 long ownerId, int ownerType, long plid, int start, int end, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Finds the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 369 * 370 * <p> 371 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 372 * </p> 373 * 374 * @param ownerId the owner id to search with 375 * @param ownerType the owner type to search with 376 * @param plid the plid to search with 377 * @param orderByComparator the comparator to order the set by 378 * @return the first matching portlet preferences 379 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public com.liferay.portal.model.PortletPreferences findByO_O_P_First( 383 long ownerId, int ownerType, long plid, 384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 385 throws com.liferay.portal.NoSuchPortletPreferencesException, 386 com.liferay.portal.kernel.exception.SystemException; 387 388 /** 389 * Finds the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 390 * 391 * <p> 392 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 393 * </p> 394 * 395 * @param ownerId the owner id to search with 396 * @param ownerType the owner type to search with 397 * @param plid the plid to search with 398 * @param orderByComparator the comparator to order the set by 399 * @return the last matching portlet preferences 400 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 401 * @throws SystemException if a system exception occurred 402 */ 403 public com.liferay.portal.model.PortletPreferences findByO_O_P_Last( 404 long ownerId, int ownerType, long plid, 405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 406 throws com.liferay.portal.NoSuchPortletPreferencesException, 407 com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Finds the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 411 * 412 * <p> 413 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 414 * </p> 415 * 416 * @param portletPreferencesId the primary key of the current portlet preferences 417 * @param ownerId the owner id to search with 418 * @param ownerType the owner type to search with 419 * @param plid the plid to search with 420 * @param orderByComparator the comparator to order the set by 421 * @return the previous, current, and next portlet preferences 422 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext( 426 long portletPreferencesId, long ownerId, int ownerType, long plid, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.NoSuchPortletPreferencesException, 429 com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Finds the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found. 433 * 434 * @param ownerId the owner id to search with 435 * @param ownerType the owner type to search with 436 * @param plid the plid to search with 437 * @param portletId the portlet id to search with 438 * @return the matching portlet preferences 439 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public com.liferay.portal.model.PortletPreferences findByO_O_P_P( 443 long ownerId, int ownerType, long plid, java.lang.String portletId) 444 throws com.liferay.portal.NoSuchPortletPreferencesException, 445 com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Finds the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 449 * 450 * @param ownerId the owner id to search with 451 * @param ownerType the owner type to search with 452 * @param plid the plid to search with 453 * @param portletId the portlet id to search with 454 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 455 * @throws SystemException if a system exception occurred 456 */ 457 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 458 long ownerId, int ownerType, long plid, java.lang.String portletId) 459 throws com.liferay.portal.kernel.exception.SystemException; 460 461 /** 462 * Finds the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 463 * 464 * @param ownerId the owner id to search with 465 * @param ownerType the owner type to search with 466 * @param plid the plid to search with 467 * @param portletId the portlet id to search with 468 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 472 long ownerId, int ownerType, long plid, java.lang.String portletId, 473 boolean retrieveFromCache) 474 throws com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Finds all the portlet preferenceses. 478 * 479 * @return the portlet preferenceses 480 * @throws SystemException if a system exception occurred 481 */ 482 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll() 483 throws com.liferay.portal.kernel.exception.SystemException; 484 485 /** 486 * Finds a range of all the portlet preferenceses. 487 * 488 * <p> 489 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 490 * </p> 491 * 492 * @param start the lower bound of the range of portlet preferenceses to return 493 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 494 * @return the range of portlet preferenceses 495 * @throws SystemException if a system exception occurred 496 */ 497 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 498 int start, int end) 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Finds an ordered range of all the portlet preferenceses. 503 * 504 * <p> 505 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 506 * </p> 507 * 508 * @param start the lower bound of the range of portlet preferenceses to return 509 * @param end the upper bound of the range of portlet preferenceses to return (not inclusive) 510 * @param orderByComparator the comparator to order the results by 511 * @return the ordered range of portlet preferenceses 512 * @throws SystemException if a system exception occurred 513 */ 514 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 515 int start, int end, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Removes all the portlet preferenceses where plid = ? from the database. 521 * 522 * @param plid the plid to search with 523 * @throws SystemException if a system exception occurred 524 */ 525 public void removeByPlid(long plid) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Removes all the portlet preferenceses where plid = ? and portletId = ? from the database. 530 * 531 * @param plid the plid to search with 532 * @param portletId the portlet id to search with 533 * @throws SystemException if a system exception occurred 534 */ 535 public void removeByP_P(long plid, java.lang.String portletId) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database. 540 * 541 * @param ownerId the owner id to search with 542 * @param ownerType the owner type to search with 543 * @param plid the plid to search with 544 * @throws SystemException if a system exception occurred 545 */ 546 public void removeByO_O_P(long ownerId, int ownerType, long plid) 547 throws com.liferay.portal.kernel.exception.SystemException; 548 549 /** 550 * Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database. 551 * 552 * @param ownerId the owner id to search with 553 * @param ownerType the owner type to search with 554 * @param plid the plid to search with 555 * @param portletId the portlet id to search with 556 * @throws SystemException if a system exception occurred 557 */ 558 public void removeByO_O_P_P(long ownerId, int ownerType, long plid, 559 java.lang.String portletId) 560 throws com.liferay.portal.NoSuchPortletPreferencesException, 561 com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Removes all the portlet preferenceses from the database. 565 * 566 * @throws SystemException if a system exception occurred 567 */ 568 public void removeAll() 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Counts all the portlet preferenceses where plid = ?. 573 * 574 * @param plid the plid to search with 575 * @return the number of matching portlet preferenceses 576 * @throws SystemException if a system exception occurred 577 */ 578 public int countByPlid(long plid) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Counts all the portlet preferenceses where plid = ? and portletId = ?. 583 * 584 * @param plid the plid to search with 585 * @param portletId the portlet id to search with 586 * @return the number of matching portlet preferenceses 587 * @throws SystemException if a system exception occurred 588 */ 589 public int countByP_P(long plid, java.lang.String portletId) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Counts all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 594 * 595 * @param ownerId the owner id to search with 596 * @param ownerType the owner type to search with 597 * @param plid the plid to search with 598 * @return the number of matching portlet preferenceses 599 * @throws SystemException if a system exception occurred 600 */ 601 public int countByO_O_P(long ownerId, int ownerType, long plid) 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Counts all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?. 606 * 607 * @param ownerId the owner id to search with 608 * @param ownerType the owner type to search with 609 * @param plid the plid to search with 610 * @param portletId the portlet id to search with 611 * @return the number of matching portlet preferenceses 612 * @throws SystemException if a system exception occurred 613 */ 614 public int countByO_O_P_P(long ownerId, int ownerType, long plid, 615 java.lang.String portletId) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Counts all the portlet preferenceses. 620 * 621 * @return the number of portlet preferenceses 622 * @throws SystemException if a system exception occurred 623 */ 624 public int countAll() 625 throws com.liferay.portal.kernel.exception.SystemException; 626 }