001 /** 002 * Copyright (c) 2000-2012 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 * Caching information and settings can be found in <code>portal.properties</code> 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 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link PortletPreferencesUtil} to access the portlet preferences persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the portlet preferences in the entity cache if it is enabled. 040 * 041 * @param portletPreferences the portlet preferences 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.PortletPreferences portletPreferences); 045 046 /** 047 * Caches the portlet preferenceses in the entity cache if it is enabled. 048 * 049 * @param portletPreferenceses the portlet preferenceses 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses); 053 054 /** 055 * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database. 056 * 057 * @param portletPreferencesId the primary key for the new portlet preferences 058 * @return the new portlet preferences 059 */ 060 public com.liferay.portal.model.PortletPreferences create( 061 long portletPreferencesId); 062 063 /** 064 * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param portletPreferencesId the primary key of the portlet preferences 067 * @return the portlet preferences that was removed 068 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.PortletPreferences remove( 072 long portletPreferencesId) 073 throws com.liferay.portal.NoSuchPortletPreferencesException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.PortletPreferences updateImpl( 077 com.liferay.portal.model.PortletPreferences portletPreferences) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found. 082 * 083 * @param portletPreferencesId the primary key of the portlet preferences 084 * @return the portlet preferences 085 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portal.model.PortletPreferences findByPrimaryKey( 089 long portletPreferencesId) 090 throws com.liferay.portal.NoSuchPortletPreferencesException, 091 com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param portletPreferencesId the primary key of the portlet preferences 097 * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey( 101 long portletPreferencesId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the portlet preferenceses where plid = ?. 106 * 107 * @param plid the plid 108 * @return the matching portlet preferenceses 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 112 long plid) throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns a range of all the portlet preferenceses where plid = ?. 116 * 117 * <p> 118 * 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. 119 * </p> 120 * 121 * @param plid the plid 122 * @param start the lower bound of the range of portlet preferenceses 123 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 124 * @return the range of matching portlet preferenceses 125 * @throws SystemException if a system exception occurred 126 */ 127 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 128 long plid, int start, int end) 129 throws com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns an ordered range of all the portlet preferenceses where plid = ?. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param plid the plid 139 * @param start the lower bound of the range of portlet preferenceses 140 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 142 * @return the ordered range of matching portlet preferenceses 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 146 long plid, int start, int end, 147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 /** 151 * Returns the first portlet preferences in the ordered set where plid = ?. 152 * 153 * @param plid the plid 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the first matching portlet preferences 156 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.PortletPreferences findByPlid_First( 160 long plid, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchPortletPreferencesException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Returns the first portlet preferences in the ordered set where plid = ?. 167 * 168 * @param plid the plid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public com.liferay.portal.model.PortletPreferences fetchByPlid_First( 174 long plid, 175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the last portlet preferences in the ordered set where plid = ?. 180 * 181 * @param plid the plid 182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 183 * @return the last matching portlet preferences 184 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portal.model.PortletPreferences findByPlid_Last( 188 long plid, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.NoSuchPortletPreferencesException, 191 com.liferay.portal.kernel.exception.SystemException; 192 193 /** 194 * Returns the last portlet preferences in the ordered set where plid = ?. 195 * 196 * @param plid the plid 197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 198 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portal.model.PortletPreferences fetchByPlid_Last( 202 long plid, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?. 208 * 209 * @param portletPreferencesId the primary key of the current portlet preferences 210 * @param plid the plid 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next portlet preferences 213 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext( 217 long portletPreferencesId, long plid, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.NoSuchPortletPreferencesException, 220 com.liferay.portal.kernel.exception.SystemException; 221 222 /** 223 * Returns all the portlet preferenceses where portletId = ?. 224 * 225 * @param portletId the portlet ID 226 * @return the matching portlet preferenceses 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 230 java.lang.String portletId) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Returns a range of all the portlet preferenceses where 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 portletId the portlet ID 241 * @param start the lower bound of the range of portlet preferenceses 242 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 243 * @return the range of matching portlet preferenceses 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 247 java.lang.String portletId, int start, int end) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns an ordered range of all the portlet preferenceses where portletId = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param portletId the portlet ID 258 * @param start the lower bound of the range of portlet preferenceses 259 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 260 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 261 * @return the ordered range of matching portlet preferenceses 262 * @throws SystemException if a system exception occurred 263 */ 264 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 265 java.lang.String portletId, int start, int end, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Returns the first portlet preferences in the ordered set where portletId = ?. 271 * 272 * @param portletId the portlet ID 273 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 274 * @return the first matching portlet preferences 275 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 276 * @throws SystemException if a system exception occurred 277 */ 278 public com.liferay.portal.model.PortletPreferences findByPortletId_First( 279 java.lang.String portletId, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.NoSuchPortletPreferencesException, 282 com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Returns the first portlet preferences in the ordered set where portletId = ?. 286 * 287 * @param portletId the portlet ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 290 * @throws SystemException if a system exception occurred 291 */ 292 public com.liferay.portal.model.PortletPreferences fetchByPortletId_First( 293 java.lang.String portletId, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.kernel.exception.SystemException; 296 297 /** 298 * Returns the last portlet preferences in the ordered set where portletId = ?. 299 * 300 * @param portletId the portlet ID 301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 302 * @return the last matching portlet preferences 303 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public com.liferay.portal.model.PortletPreferences findByPortletId_Last( 307 java.lang.String portletId, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.NoSuchPortletPreferencesException, 310 com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns the last portlet preferences in the ordered set where portletId = ?. 314 * 315 * @param portletId the portlet ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public com.liferay.portal.model.PortletPreferences fetchByPortletId_Last( 321 java.lang.String portletId, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?. 327 * 328 * @param portletPreferencesId the primary key of the current portlet preferences 329 * @param portletId the portlet ID 330 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 331 * @return the previous, current, and next portlet preferences 332 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portal.model.PortletPreferences[] findByPortletId_PrevAndNext( 336 long portletPreferencesId, java.lang.String portletId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.NoSuchPortletPreferencesException, 339 com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns all the portlet preferenceses where plid = ? and portletId = ?. 343 * 344 * @param plid the plid 345 * @param portletId the portlet ID 346 * @return the matching portlet preferenceses 347 * @throws SystemException if a system exception occurred 348 */ 349 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 350 long plid, java.lang.String portletId) 351 throws com.liferay.portal.kernel.exception.SystemException; 352 353 /** 354 * Returns a range of all the portlet preferenceses where plid = ? and portletId = ?. 355 * 356 * <p> 357 * 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. 358 * </p> 359 * 360 * @param plid the plid 361 * @param portletId the portlet ID 362 * @param start the lower bound of the range of portlet preferenceses 363 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 364 * @return the range of matching portlet preferenceses 365 * @throws SystemException if a system exception occurred 366 */ 367 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 368 long plid, java.lang.String portletId, int start, int end) 369 throws com.liferay.portal.kernel.exception.SystemException; 370 371 /** 372 * Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param plid the plid 379 * @param portletId the portlet ID 380 * @param start the lower bound of the range of portlet preferenceses 381 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 382 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 383 * @return the ordered range of matching portlet preferenceses 384 * @throws SystemException if a system exception occurred 385 */ 386 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 387 long plid, java.lang.String portletId, int start, int end, 388 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 389 throws com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. 393 * 394 * @param plid the plid 395 * @param portletId the portlet ID 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the first matching portlet preferences 398 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portal.model.PortletPreferences findByP_P_First( 402 long plid, java.lang.String portletId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.NoSuchPortletPreferencesException, 405 com.liferay.portal.kernel.exception.SystemException; 406 407 /** 408 * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. 409 * 410 * @param plid the plid 411 * @param portletId the portlet ID 412 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 413 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public com.liferay.portal.model.PortletPreferences fetchByP_P_First( 417 long plid, java.lang.String portletId, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. 423 * 424 * @param plid the plid 425 * @param portletId the portlet ID 426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 427 * @return the last matching portlet preferences 428 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public com.liferay.portal.model.PortletPreferences findByP_P_Last( 432 long plid, java.lang.String portletId, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.NoSuchPortletPreferencesException, 435 com.liferay.portal.kernel.exception.SystemException; 436 437 /** 438 * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. 439 * 440 * @param plid the plid 441 * @param portletId the portlet ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portal.model.PortletPreferences fetchByP_P_Last( 447 long plid, java.lang.String portletId, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException; 450 451 /** 452 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?. 453 * 454 * @param portletPreferencesId the primary key of the current portlet preferences 455 * @param plid the plid 456 * @param portletId the portlet ID 457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 458 * @return the previous, current, and next portlet preferences 459 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext( 463 long portletPreferencesId, long plid, java.lang.String portletId, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.NoSuchPortletPreferencesException, 466 com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 470 * 471 * @param ownerId the owner ID 472 * @param ownerType the owner type 473 * @param plid the plid 474 * @return the matching portlet preferenceses 475 * @throws SystemException if a system exception occurred 476 */ 477 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 478 long ownerId, int ownerType, long plid) 479 throws com.liferay.portal.kernel.exception.SystemException; 480 481 /** 482 * Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 483 * 484 * <p> 485 * 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. 486 * </p> 487 * 488 * @param ownerId the owner ID 489 * @param ownerType the owner type 490 * @param plid the plid 491 * @param start the lower bound of the range of portlet preferenceses 492 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 493 * @return the range of matching portlet preferenceses 494 * @throws SystemException if a system exception occurred 495 */ 496 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 497 long ownerId, int ownerType, long plid, int start, int end) 498 throws com.liferay.portal.kernel.exception.SystemException; 499 500 /** 501 * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 502 * 503 * <p> 504 * 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. 505 * </p> 506 * 507 * @param ownerId the owner ID 508 * @param ownerType the owner type 509 * @param plid the plid 510 * @param start the lower bound of the range of portlet preferenceses 511 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 512 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 513 * @return the ordered range of matching portlet preferenceses 514 * @throws SystemException if a system exception occurred 515 */ 516 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 517 long ownerId, int ownerType, long plid, int start, int end, 518 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 519 throws com.liferay.portal.kernel.exception.SystemException; 520 521 /** 522 * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 523 * 524 * @param ownerId the owner ID 525 * @param ownerType the owner type 526 * @param plid the plid 527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 528 * @return the first matching portlet preferences 529 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public com.liferay.portal.model.PortletPreferences findByO_O_P_First( 533 long ownerId, int ownerType, long plid, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.NoSuchPortletPreferencesException, 536 com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 540 * 541 * @param ownerId the owner ID 542 * @param ownerType the owner type 543 * @param plid the plid 544 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 545 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_First( 549 long ownerId, int ownerType, long plid, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException; 552 553 /** 554 * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 555 * 556 * @param ownerId the owner ID 557 * @param ownerType the owner type 558 * @param plid the plid 559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 560 * @return the last matching portlet preferences 561 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portal.model.PortletPreferences findByO_O_P_Last( 565 long ownerId, int ownerType, long plid, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.NoSuchPortletPreferencesException, 568 com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 572 * 573 * @param ownerId the owner ID 574 * @param ownerType the owner type 575 * @param plid the plid 576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 577 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_Last( 581 long ownerId, int ownerType, long plid, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.kernel.exception.SystemException; 584 585 /** 586 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 587 * 588 * @param portletPreferencesId the primary key of the current portlet preferences 589 * @param ownerId the owner ID 590 * @param ownerType the owner type 591 * @param plid the plid 592 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 593 * @return the previous, current, and next portlet preferences 594 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext( 598 long portletPreferencesId, long ownerId, int ownerType, long plid, 599 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 600 throws com.liferay.portal.NoSuchPortletPreferencesException, 601 com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 605 * 606 * @param ownerType the owner type 607 * @param plid the plid 608 * @param portletId the portlet ID 609 * @return the matching portlet preferenceses 610 * @throws SystemException if a system exception occurred 611 */ 612 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 613 int ownerType, long plid, java.lang.String portletId) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns a range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 618 * 619 * <p> 620 * 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. 621 * </p> 622 * 623 * @param ownerType the owner type 624 * @param plid the plid 625 * @param portletId the portlet ID 626 * @param start the lower bound of the range of portlet preferenceses 627 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 628 * @return the range of matching portlet preferenceses 629 * @throws SystemException if a system exception occurred 630 */ 631 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 632 int ownerType, long plid, java.lang.String portletId, int start, int end) 633 throws com.liferay.portal.kernel.exception.SystemException; 634 635 /** 636 * Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 637 * 638 * <p> 639 * 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. 640 * </p> 641 * 642 * @param ownerType the owner type 643 * @param plid the plid 644 * @param portletId the portlet ID 645 * @param start the lower bound of the range of portlet preferenceses 646 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 647 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 648 * @return the ordered range of matching portlet preferenceses 649 * @throws SystemException if a system exception occurred 650 */ 651 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 652 int ownerType, long plid, java.lang.String portletId, int start, 653 int end, 654 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 659 * 660 * @param ownerType the owner type 661 * @param plid the plid 662 * @param portletId the portlet ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching portlet preferences 665 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portal.model.PortletPreferences findByO_P_P_First( 669 int ownerType, long plid, java.lang.String portletId, 670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 671 throws com.liferay.portal.NoSuchPortletPreferencesException, 672 com.liferay.portal.kernel.exception.SystemException; 673 674 /** 675 * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 676 * 677 * @param ownerType the owner type 678 * @param plid the plid 679 * @param portletId the portlet ID 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public com.liferay.portal.model.PortletPreferences fetchByO_P_P_First( 685 int ownerType, long plid, java.lang.String portletId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException; 688 689 /** 690 * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 691 * 692 * @param ownerType the owner type 693 * @param plid the plid 694 * @param portletId the portlet ID 695 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 696 * @return the last matching portlet preferences 697 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 698 * @throws SystemException if a system exception occurred 699 */ 700 public com.liferay.portal.model.PortletPreferences findByO_P_P_Last( 701 int ownerType, long plid, java.lang.String portletId, 702 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 703 throws com.liferay.portal.NoSuchPortletPreferencesException, 704 com.liferay.portal.kernel.exception.SystemException; 705 706 /** 707 * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 708 * 709 * @param ownerType the owner type 710 * @param plid the plid 711 * @param portletId the portlet ID 712 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 713 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last( 717 int ownerType, long plid, java.lang.String portletId, 718 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 719 throws com.liferay.portal.kernel.exception.SystemException; 720 721 /** 722 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 723 * 724 * @param portletPreferencesId the primary key of the current portlet preferences 725 * @param ownerType the owner type 726 * @param plid the plid 727 * @param portletId the portlet ID 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the previous, current, and next portlet preferences 730 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext( 734 long portletPreferencesId, int ownerType, long plid, 735 java.lang.String portletId, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.NoSuchPortletPreferencesException, 738 com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Returns 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. 742 * 743 * @param ownerId the owner ID 744 * @param ownerType the owner type 745 * @param plid the plid 746 * @param portletId the portlet ID 747 * @return the matching portlet preferences 748 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public com.liferay.portal.model.PortletPreferences findByO_O_P_P( 752 long ownerId, int ownerType, long plid, java.lang.String portletId) 753 throws com.liferay.portal.NoSuchPortletPreferencesException, 754 com.liferay.portal.kernel.exception.SystemException; 755 756 /** 757 * Returns 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. 758 * 759 * @param ownerId the owner ID 760 * @param ownerType the owner type 761 * @param plid the plid 762 * @param portletId the portlet ID 763 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 764 * @throws SystemException if a system exception occurred 765 */ 766 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 767 long ownerId, int ownerType, long plid, java.lang.String portletId) 768 throws com.liferay.portal.kernel.exception.SystemException; 769 770 /** 771 * Returns 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. 772 * 773 * @param ownerId the owner ID 774 * @param ownerType the owner type 775 * @param plid the plid 776 * @param portletId the portlet ID 777 * @param retrieveFromCache whether to use the finder cache 778 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 779 * @throws SystemException if a system exception occurred 780 */ 781 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 782 long ownerId, int ownerType, long plid, java.lang.String portletId, 783 boolean retrieveFromCache) 784 throws com.liferay.portal.kernel.exception.SystemException; 785 786 /** 787 * Returns all the portlet preferenceses. 788 * 789 * @return the portlet preferenceses 790 * @throws SystemException if a system exception occurred 791 */ 792 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll() 793 throws com.liferay.portal.kernel.exception.SystemException; 794 795 /** 796 * Returns a range of all the portlet preferenceses. 797 * 798 * <p> 799 * 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. 800 * </p> 801 * 802 * @param start the lower bound of the range of portlet preferenceses 803 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 804 * @return the range of portlet preferenceses 805 * @throws SystemException if a system exception occurred 806 */ 807 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 808 int start, int end) 809 throws com.liferay.portal.kernel.exception.SystemException; 810 811 /** 812 * Returns an ordered range of all the portlet preferenceses. 813 * 814 * <p> 815 * 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. 816 * </p> 817 * 818 * @param start the lower bound of the range of portlet preferenceses 819 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 820 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 821 * @return the ordered range of portlet preferenceses 822 * @throws SystemException if a system exception occurred 823 */ 824 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 825 int start, int end, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Removes all the portlet preferenceses where plid = ? from the database. 831 * 832 * @param plid the plid 833 * @throws SystemException if a system exception occurred 834 */ 835 public void removeByPlid(long plid) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Removes all the portlet preferenceses where portletId = ? from the database. 840 * 841 * @param portletId the portlet ID 842 * @throws SystemException if a system exception occurred 843 */ 844 public void removeByPortletId(java.lang.String portletId) 845 throws com.liferay.portal.kernel.exception.SystemException; 846 847 /** 848 * Removes all the portlet preferenceses where plid = ? and portletId = ? from the database. 849 * 850 * @param plid the plid 851 * @param portletId the portlet ID 852 * @throws SystemException if a system exception occurred 853 */ 854 public void removeByP_P(long plid, java.lang.String portletId) 855 throws com.liferay.portal.kernel.exception.SystemException; 856 857 /** 858 * Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database. 859 * 860 * @param ownerId the owner ID 861 * @param ownerType the owner type 862 * @param plid the plid 863 * @throws SystemException if a system exception occurred 864 */ 865 public void removeByO_O_P(long ownerId, int ownerType, long plid) 866 throws com.liferay.portal.kernel.exception.SystemException; 867 868 /** 869 * Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database. 870 * 871 * @param ownerType the owner type 872 * @param plid the plid 873 * @param portletId the portlet ID 874 * @throws SystemException if a system exception occurred 875 */ 876 public void removeByO_P_P(int ownerType, long plid, 877 java.lang.String portletId) 878 throws com.liferay.portal.kernel.exception.SystemException; 879 880 /** 881 * Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database. 882 * 883 * @param ownerId the owner ID 884 * @param ownerType the owner type 885 * @param plid the plid 886 * @param portletId the portlet ID 887 * @return the portlet preferences that was removed 888 * @throws SystemException if a system exception occurred 889 */ 890 public com.liferay.portal.model.PortletPreferences removeByO_O_P_P( 891 long ownerId, int ownerType, long plid, java.lang.String portletId) 892 throws com.liferay.portal.NoSuchPortletPreferencesException, 893 com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Removes all the portlet preferenceses from the database. 897 * 898 * @throws SystemException if a system exception occurred 899 */ 900 public void removeAll() 901 throws com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Returns the number of portlet preferenceses where plid = ?. 905 * 906 * @param plid the plid 907 * @return the number of matching portlet preferenceses 908 * @throws SystemException if a system exception occurred 909 */ 910 public int countByPlid(long plid) 911 throws com.liferay.portal.kernel.exception.SystemException; 912 913 /** 914 * Returns the number of portlet preferenceses where portletId = ?. 915 * 916 * @param portletId the portlet ID 917 * @return the number of matching portlet preferenceses 918 * @throws SystemException if a system exception occurred 919 */ 920 public int countByPortletId(java.lang.String portletId) 921 throws com.liferay.portal.kernel.exception.SystemException; 922 923 /** 924 * Returns the number of portlet preferenceses where plid = ? and portletId = ?. 925 * 926 * @param plid the plid 927 * @param portletId the portlet ID 928 * @return the number of matching portlet preferenceses 929 * @throws SystemException if a system exception occurred 930 */ 931 public int countByP_P(long plid, java.lang.String portletId) 932 throws com.liferay.portal.kernel.exception.SystemException; 933 934 /** 935 * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 936 * 937 * @param ownerId the owner ID 938 * @param ownerType the owner type 939 * @param plid the plid 940 * @return the number of matching portlet preferenceses 941 * @throws SystemException if a system exception occurred 942 */ 943 public int countByO_O_P(long ownerId, int ownerType, long plid) 944 throws com.liferay.portal.kernel.exception.SystemException; 945 946 /** 947 * Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 948 * 949 * @param ownerType the owner type 950 * @param plid the plid 951 * @param portletId the portlet ID 952 * @return the number of matching portlet preferenceses 953 * @throws SystemException if a system exception occurred 954 */ 955 public int countByO_P_P(int ownerType, long plid, java.lang.String portletId) 956 throws com.liferay.portal.kernel.exception.SystemException; 957 958 /** 959 * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?. 960 * 961 * @param ownerId the owner ID 962 * @param ownerType the owner type 963 * @param plid the plid 964 * @param portletId the portlet ID 965 * @return the number of matching portlet preferenceses 966 * @throws SystemException if a system exception occurred 967 */ 968 public int countByO_O_P_P(long ownerId, int ownerType, long plid, 969 java.lang.String portletId) 970 throws com.liferay.portal.kernel.exception.SystemException; 971 972 /** 973 * Returns the number of portlet preferenceses. 974 * 975 * @return the number of portlet preferenceses 976 * @throws SystemException if a system exception occurred 977 */ 978 public int countAll() 979 throws com.liferay.portal.kernel.exception.SystemException; 980 }