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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.PortletPreferences; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the portlet preferences service. This utility wraps {@link PortletPreferencesPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see PortletPreferencesPersistence 036 * @see PortletPreferencesPersistenceImpl 037 * @generated 038 */ 039 public class PortletPreferencesUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(PortletPreferences portletPreferences) { 057 getPersistence().clearCache(portletPreferences); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<PortletPreferences> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<PortletPreferences> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<PortletPreferences> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static PortletPreferences update( 100 PortletPreferences portletPreferences) throws SystemException { 101 return getPersistence().update(portletPreferences); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static PortletPreferences update( 108 PortletPreferences portletPreferences, ServiceContext serviceContext) 109 throws SystemException { 110 return getPersistence().update(portletPreferences, serviceContext); 111 } 112 113 /** 114 * Caches the portlet preferences in the entity cache if it is enabled. 115 * 116 * @param portletPreferences the portlet preferences 117 */ 118 public static void cacheResult( 119 com.liferay.portal.model.PortletPreferences portletPreferences) { 120 getPersistence().cacheResult(portletPreferences); 121 } 122 123 /** 124 * Caches the portlet preferenceses in the entity cache if it is enabled. 125 * 126 * @param portletPreferenceses the portlet preferenceses 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses) { 130 getPersistence().cacheResult(portletPreferenceses); 131 } 132 133 /** 134 * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database. 135 * 136 * @param portletPreferencesId the primary key for the new portlet preferences 137 * @return the new portlet preferences 138 */ 139 public static com.liferay.portal.model.PortletPreferences create( 140 long portletPreferencesId) { 141 return getPersistence().create(portletPreferencesId); 142 } 143 144 /** 145 * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param portletPreferencesId the primary key of the portlet preferences 148 * @return the portlet preferences that was removed 149 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portal.model.PortletPreferences remove( 153 long portletPreferencesId) 154 throws com.liferay.portal.NoSuchPortletPreferencesException, 155 com.liferay.portal.kernel.exception.SystemException { 156 return getPersistence().remove(portletPreferencesId); 157 } 158 159 public static com.liferay.portal.model.PortletPreferences updateImpl( 160 com.liferay.portal.model.PortletPreferences portletPreferences) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(portletPreferences); 163 } 164 165 /** 166 * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found. 167 * 168 * @param portletPreferencesId the primary key of the portlet preferences 169 * @return the portlet preferences 170 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portal.model.PortletPreferences findByPrimaryKey( 174 long portletPreferencesId) 175 throws com.liferay.portal.NoSuchPortletPreferencesException, 176 com.liferay.portal.kernel.exception.SystemException { 177 return getPersistence().findByPrimaryKey(portletPreferencesId); 178 } 179 180 /** 181 * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param portletPreferencesId the primary key of the portlet preferences 184 * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portal.model.PortletPreferences fetchByPrimaryKey( 188 long portletPreferencesId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(portletPreferencesId); 191 } 192 193 /** 194 * Returns all the portlet preferenceses where plid = ?. 195 * 196 * @param plid the plid 197 * @return the matching portlet preferenceses 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 201 long plid) throws com.liferay.portal.kernel.exception.SystemException { 202 return getPersistence().findByPlid(plid); 203 } 204 205 /** 206 * Returns a range of all the portlet preferenceses where plid = ?. 207 * 208 * <p> 209 * 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. 210 * </p> 211 * 212 * @param plid the plid 213 * @param start the lower bound of the range of portlet preferenceses 214 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 215 * @return the range of matching portlet preferenceses 216 * @throws SystemException if a system exception occurred 217 */ 218 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 219 long plid, int start, int end) 220 throws com.liferay.portal.kernel.exception.SystemException { 221 return getPersistence().findByPlid(plid, start, end); 222 } 223 224 /** 225 * Returns an ordered range of all the portlet preferenceses where plid = ?. 226 * 227 * <p> 228 * 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. 229 * </p> 230 * 231 * @param plid the plid 232 * @param start the lower bound of the range of portlet preferenceses 233 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 234 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 235 * @return the ordered range of matching portlet preferenceses 236 * @throws SystemException if a system exception occurred 237 */ 238 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid( 239 long plid, int start, int end, 240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 241 throws com.liferay.portal.kernel.exception.SystemException { 242 return getPersistence().findByPlid(plid, start, end, orderByComparator); 243 } 244 245 /** 246 * Returns the first portlet preferences in the ordered set where plid = ?. 247 * 248 * @param plid the plid 249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 250 * @return the first matching portlet preferences 251 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 252 * @throws SystemException if a system exception occurred 253 */ 254 public static com.liferay.portal.model.PortletPreferences findByPlid_First( 255 long plid, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.NoSuchPortletPreferencesException, 258 com.liferay.portal.kernel.exception.SystemException { 259 return getPersistence().findByPlid_First(plid, orderByComparator); 260 } 261 262 /** 263 * Returns the first portlet preferences in the ordered set where plid = ?. 264 * 265 * @param plid the plid 266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 267 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public static com.liferay.portal.model.PortletPreferences fetchByPlid_First( 271 long plid, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.kernel.exception.SystemException { 274 return getPersistence().fetchByPlid_First(plid, orderByComparator); 275 } 276 277 /** 278 * Returns the last portlet preferences in the ordered set where plid = ?. 279 * 280 * @param plid the plid 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching portlet preferences 283 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 284 * @throws SystemException if a system exception occurred 285 */ 286 public static com.liferay.portal.model.PortletPreferences findByPlid_Last( 287 long plid, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.NoSuchPortletPreferencesException, 290 com.liferay.portal.kernel.exception.SystemException { 291 return getPersistence().findByPlid_Last(plid, orderByComparator); 292 } 293 294 /** 295 * Returns the last portlet preferences in the ordered set where plid = ?. 296 * 297 * @param plid the plid 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public static com.liferay.portal.model.PortletPreferences fetchByPlid_Last( 303 long plid, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.kernel.exception.SystemException { 306 return getPersistence().fetchByPlid_Last(plid, orderByComparator); 307 } 308 309 /** 310 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?. 311 * 312 * @param portletPreferencesId the primary key of the current portlet preferences 313 * @param plid the plid 314 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 315 * @return the previous, current, and next portlet preferences 316 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public static com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext( 320 long portletPreferencesId, long plid, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.NoSuchPortletPreferencesException, 323 com.liferay.portal.kernel.exception.SystemException { 324 return getPersistence() 325 .findByPlid_PrevAndNext(portletPreferencesId, plid, 326 orderByComparator); 327 } 328 329 /** 330 * Returns all the portlet preferenceses where portletId = ?. 331 * 332 * @param portletId the portlet ID 333 * @return the matching portlet preferenceses 334 * @throws SystemException if a system exception occurred 335 */ 336 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 337 java.lang.String portletId) 338 throws com.liferay.portal.kernel.exception.SystemException { 339 return getPersistence().findByPortletId(portletId); 340 } 341 342 /** 343 * Returns a range of all the portlet preferenceses where portletId = ?. 344 * 345 * <p> 346 * 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. 347 * </p> 348 * 349 * @param portletId the portlet ID 350 * @param start the lower bound of the range of portlet preferenceses 351 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 352 * @return the range of matching portlet preferenceses 353 * @throws SystemException if a system exception occurred 354 */ 355 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 356 java.lang.String portletId, int start, int end) 357 throws com.liferay.portal.kernel.exception.SystemException { 358 return getPersistence().findByPortletId(portletId, start, end); 359 } 360 361 /** 362 * Returns an ordered range of all the portlet preferenceses where portletId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param portletId the portlet ID 369 * @param start the lower bound of the range of portlet preferenceses 370 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 371 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 372 * @return the ordered range of matching portlet preferenceses 373 * @throws SystemException if a system exception occurred 374 */ 375 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId( 376 java.lang.String portletId, int start, int end, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException { 379 return getPersistence() 380 .findByPortletId(portletId, start, end, orderByComparator); 381 } 382 383 /** 384 * Returns the first portlet preferences in the ordered set where portletId = ?. 385 * 386 * @param portletId the portlet ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching portlet preferences 389 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 390 * @throws SystemException if a system exception occurred 391 */ 392 public static com.liferay.portal.model.PortletPreferences findByPortletId_First( 393 java.lang.String portletId, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.NoSuchPortletPreferencesException, 396 com.liferay.portal.kernel.exception.SystemException { 397 return getPersistence() 398 .findByPortletId_First(portletId, orderByComparator); 399 } 400 401 /** 402 * Returns the first portlet preferences in the ordered set where portletId = ?. 403 * 404 * @param portletId the portlet ID 405 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 406 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public static com.liferay.portal.model.PortletPreferences fetchByPortletId_First( 410 java.lang.String portletId, 411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 412 throws com.liferay.portal.kernel.exception.SystemException { 413 return getPersistence() 414 .fetchByPortletId_First(portletId, orderByComparator); 415 } 416 417 /** 418 * Returns the last portlet preferences in the ordered set where portletId = ?. 419 * 420 * @param portletId the portlet ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the last matching portlet preferences 423 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public static com.liferay.portal.model.PortletPreferences findByPortletId_Last( 427 java.lang.String portletId, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.NoSuchPortletPreferencesException, 430 com.liferay.portal.kernel.exception.SystemException { 431 return getPersistence() 432 .findByPortletId_Last(portletId, orderByComparator); 433 } 434 435 /** 436 * Returns the last portlet preferences in the ordered set where portletId = ?. 437 * 438 * @param portletId the portlet ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public static com.liferay.portal.model.PortletPreferences fetchByPortletId_Last( 444 java.lang.String portletId, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.kernel.exception.SystemException { 447 return getPersistence() 448 .fetchByPortletId_Last(portletId, orderByComparator); 449 } 450 451 /** 452 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?. 453 * 454 * @param portletPreferencesId the primary key of the current portlet preferences 455 * @param portletId the portlet ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the previous, current, and next portlet preferences 458 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public static com.liferay.portal.model.PortletPreferences[] findByPortletId_PrevAndNext( 462 long portletPreferencesId, java.lang.String portletId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.NoSuchPortletPreferencesException, 465 com.liferay.portal.kernel.exception.SystemException { 466 return getPersistence() 467 .findByPortletId_PrevAndNext(portletPreferencesId, 468 portletId, orderByComparator); 469 } 470 471 /** 472 * Returns all the portlet preferenceses where plid = ? and portletId = ?. 473 * 474 * @param plid the plid 475 * @param portletId the portlet ID 476 * @return the matching portlet preferenceses 477 * @throws SystemException if a system exception occurred 478 */ 479 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 480 long plid, java.lang.String portletId) 481 throws com.liferay.portal.kernel.exception.SystemException { 482 return getPersistence().findByP_P(plid, portletId); 483 } 484 485 /** 486 * Returns a range of all the portlet preferenceses where plid = ? and portletId = ?. 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 plid the plid 493 * @param portletId the portlet ID 494 * @param start the lower bound of the range of portlet preferenceses 495 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 496 * @return the range of matching portlet preferenceses 497 * @throws SystemException if a system exception occurred 498 */ 499 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 500 long plid, java.lang.String portletId, int start, int end) 501 throws com.liferay.portal.kernel.exception.SystemException { 502 return getPersistence().findByP_P(plid, portletId, start, end); 503 } 504 505 /** 506 * Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param plid the plid 513 * @param portletId the portlet ID 514 * @param start the lower bound of the range of portlet preferenceses 515 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 516 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 517 * @return the ordered range of matching portlet preferenceses 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P( 521 long plid, java.lang.String portletId, int start, int end, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.kernel.exception.SystemException { 524 return getPersistence() 525 .findByP_P(plid, portletId, start, end, orderByComparator); 526 } 527 528 /** 529 * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. 530 * 531 * @param plid the plid 532 * @param portletId the portlet ID 533 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 534 * @return the first matching portlet preferences 535 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 536 * @throws SystemException if a system exception occurred 537 */ 538 public static com.liferay.portal.model.PortletPreferences findByP_P_First( 539 long plid, java.lang.String portletId, 540 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 541 throws com.liferay.portal.NoSuchPortletPreferencesException, 542 com.liferay.portal.kernel.exception.SystemException { 543 return getPersistence() 544 .findByP_P_First(plid, portletId, orderByComparator); 545 } 546 547 /** 548 * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. 549 * 550 * @param plid the plid 551 * @param portletId the portlet ID 552 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 553 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public static com.liferay.portal.model.PortletPreferences fetchByP_P_First( 557 long plid, java.lang.String portletId, 558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence() 561 .fetchByP_P_First(plid, portletId, orderByComparator); 562 } 563 564 /** 565 * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. 566 * 567 * @param plid the plid 568 * @param portletId the portlet ID 569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 570 * @return the last matching portlet preferences 571 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 572 * @throws SystemException if a system exception occurred 573 */ 574 public static com.liferay.portal.model.PortletPreferences findByP_P_Last( 575 long plid, java.lang.String portletId, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.NoSuchPortletPreferencesException, 578 com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence() 580 .findByP_P_Last(plid, portletId, orderByComparator); 581 } 582 583 /** 584 * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. 585 * 586 * @param plid the plid 587 * @param portletId the portlet ID 588 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 589 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public static com.liferay.portal.model.PortletPreferences fetchByP_P_Last( 593 long plid, java.lang.String portletId, 594 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 595 throws com.liferay.portal.kernel.exception.SystemException { 596 return getPersistence() 597 .fetchByP_P_Last(plid, portletId, orderByComparator); 598 } 599 600 /** 601 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?. 602 * 603 * @param portletPreferencesId the primary key of the current portlet preferences 604 * @param plid the plid 605 * @param portletId the portlet ID 606 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 607 * @return the previous, current, and next portlet preferences 608 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 609 * @throws SystemException if a system exception occurred 610 */ 611 public static com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext( 612 long portletPreferencesId, long plid, java.lang.String portletId, 613 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 614 throws com.liferay.portal.NoSuchPortletPreferencesException, 615 com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence() 617 .findByP_P_PrevAndNext(portletPreferencesId, plid, 618 portletId, orderByComparator); 619 } 620 621 /** 622 * Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 623 * 624 * @param ownerId the owner ID 625 * @param ownerType the owner type 626 * @param plid the plid 627 * @return the matching portlet preferenceses 628 * @throws SystemException if a system exception occurred 629 */ 630 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 631 long ownerId, int ownerType, long plid) 632 throws com.liferay.portal.kernel.exception.SystemException { 633 return getPersistence().findByO_O_P(ownerId, ownerType, plid); 634 } 635 636 /** 637 * Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 638 * 639 * <p> 640 * 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. 641 * </p> 642 * 643 * @param ownerId the owner ID 644 * @param ownerType the owner type 645 * @param plid the plid 646 * @param start the lower bound of the range of portlet preferenceses 647 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 648 * @return the range of matching portlet preferenceses 649 * @throws SystemException if a system exception occurred 650 */ 651 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 652 long ownerId, int ownerType, long plid, int start, int end) 653 throws com.liferay.portal.kernel.exception.SystemException { 654 return getPersistence().findByO_O_P(ownerId, ownerType, plid, start, end); 655 } 656 657 /** 658 * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 659 * 660 * <p> 661 * 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. 662 * </p> 663 * 664 * @param ownerId the owner ID 665 * @param ownerType the owner type 666 * @param plid the plid 667 * @param start the lower bound of the range of portlet preferenceses 668 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 669 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 670 * @return the ordered range of matching portlet preferenceses 671 * @throws SystemException if a system exception occurred 672 */ 673 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P( 674 long ownerId, int ownerType, long plid, int start, int end, 675 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 676 throws com.liferay.portal.kernel.exception.SystemException { 677 return getPersistence() 678 .findByO_O_P(ownerId, ownerType, plid, start, end, 679 orderByComparator); 680 } 681 682 /** 683 * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 684 * 685 * @param ownerId the owner ID 686 * @param ownerType the owner type 687 * @param plid the plid 688 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 689 * @return the first matching portlet preferences 690 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 691 * @throws SystemException if a system exception occurred 692 */ 693 public static com.liferay.portal.model.PortletPreferences findByO_O_P_First( 694 long ownerId, int ownerType, long plid, 695 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 696 throws com.liferay.portal.NoSuchPortletPreferencesException, 697 com.liferay.portal.kernel.exception.SystemException { 698 return getPersistence() 699 .findByO_O_P_First(ownerId, ownerType, plid, 700 orderByComparator); 701 } 702 703 /** 704 * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 705 * 706 * @param ownerId the owner ID 707 * @param ownerType the owner type 708 * @param plid the plid 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 711 * @throws SystemException if a system exception occurred 712 */ 713 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_First( 714 long ownerId, int ownerType, long plid, 715 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 716 throws com.liferay.portal.kernel.exception.SystemException { 717 return getPersistence() 718 .fetchByO_O_P_First(ownerId, ownerType, plid, 719 orderByComparator); 720 } 721 722 /** 723 * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 724 * 725 * @param ownerId the owner ID 726 * @param ownerType the owner type 727 * @param plid the plid 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the last matching portlet preferences 730 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public static com.liferay.portal.model.PortletPreferences findByO_O_P_Last( 734 long ownerId, int ownerType, long plid, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.NoSuchPortletPreferencesException, 737 com.liferay.portal.kernel.exception.SystemException { 738 return getPersistence() 739 .findByO_O_P_Last(ownerId, ownerType, plid, orderByComparator); 740 } 741 742 /** 743 * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 744 * 745 * @param ownerId the owner ID 746 * @param ownerType the owner type 747 * @param plid the plid 748 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 749 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 750 * @throws SystemException if a system exception occurred 751 */ 752 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_Last( 753 long ownerId, int ownerType, long plid, 754 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 755 throws com.liferay.portal.kernel.exception.SystemException { 756 return getPersistence() 757 .fetchByO_O_P_Last(ownerId, ownerType, plid, 758 orderByComparator); 759 } 760 761 /** 762 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. 763 * 764 * @param portletPreferencesId the primary key of the current portlet preferences 765 * @param ownerId the owner ID 766 * @param ownerType the owner type 767 * @param plid the plid 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the previous, current, and next portlet preferences 770 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public static com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext( 774 long portletPreferencesId, long ownerId, int ownerType, long plid, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.NoSuchPortletPreferencesException, 777 com.liferay.portal.kernel.exception.SystemException { 778 return getPersistence() 779 .findByO_O_P_PrevAndNext(portletPreferencesId, ownerId, 780 ownerType, plid, orderByComparator); 781 } 782 783 /** 784 * Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 785 * 786 * @param ownerType the owner type 787 * @param plid the plid 788 * @param portletId the portlet ID 789 * @return the matching portlet preferenceses 790 * @throws SystemException if a system exception occurred 791 */ 792 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 793 int ownerType, long plid, java.lang.String portletId) 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().findByO_P_P(ownerType, plid, portletId); 796 } 797 798 /** 799 * Returns a range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 800 * 801 * <p> 802 * 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. 803 * </p> 804 * 805 * @param ownerType the owner type 806 * @param plid the plid 807 * @param portletId the portlet ID 808 * @param start the lower bound of the range of portlet preferenceses 809 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 810 * @return the range of matching portlet preferenceses 811 * @throws SystemException if a system exception occurred 812 */ 813 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 814 int ownerType, long plid, java.lang.String portletId, int start, int end) 815 throws com.liferay.portal.kernel.exception.SystemException { 816 return getPersistence() 817 .findByO_P_P(ownerType, plid, portletId, start, end); 818 } 819 820 /** 821 * Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 822 * 823 * <p> 824 * 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. 825 * </p> 826 * 827 * @param ownerType the owner type 828 * @param plid the plid 829 * @param portletId the portlet ID 830 * @param start the lower bound of the range of portlet preferenceses 831 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 832 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 833 * @return the ordered range of matching portlet preferenceses 834 * @throws SystemException if a system exception occurred 835 */ 836 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P( 837 int ownerType, long plid, java.lang.String portletId, int start, 838 int end, 839 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 840 throws com.liferay.portal.kernel.exception.SystemException { 841 return getPersistence() 842 .findByO_P_P(ownerType, plid, portletId, start, end, 843 orderByComparator); 844 } 845 846 /** 847 * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 848 * 849 * @param ownerType the owner type 850 * @param plid the plid 851 * @param portletId the portlet ID 852 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 853 * @return the first matching portlet preferences 854 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 855 * @throws SystemException if a system exception occurred 856 */ 857 public static com.liferay.portal.model.PortletPreferences findByO_P_P_First( 858 int ownerType, long plid, java.lang.String portletId, 859 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 860 throws com.liferay.portal.NoSuchPortletPreferencesException, 861 com.liferay.portal.kernel.exception.SystemException { 862 return getPersistence() 863 .findByO_P_P_First(ownerType, plid, portletId, 864 orderByComparator); 865 } 866 867 /** 868 * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 869 * 870 * @param ownerType the owner type 871 * @param plid the plid 872 * @param portletId the portlet ID 873 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 874 * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 875 * @throws SystemException if a system exception occurred 876 */ 877 public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_First( 878 int ownerType, long plid, java.lang.String portletId, 879 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 880 throws com.liferay.portal.kernel.exception.SystemException { 881 return getPersistence() 882 .fetchByO_P_P_First(ownerType, plid, portletId, 883 orderByComparator); 884 } 885 886 /** 887 * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 888 * 889 * @param ownerType the owner type 890 * @param plid the plid 891 * @param portletId the portlet ID 892 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 893 * @return the last matching portlet preferences 894 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 895 * @throws SystemException if a system exception occurred 896 */ 897 public static com.liferay.portal.model.PortletPreferences findByO_P_P_Last( 898 int ownerType, long plid, java.lang.String portletId, 899 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 900 throws com.liferay.portal.NoSuchPortletPreferencesException, 901 com.liferay.portal.kernel.exception.SystemException { 902 return getPersistence() 903 .findByO_P_P_Last(ownerType, plid, portletId, 904 orderByComparator); 905 } 906 907 /** 908 * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 909 * 910 * @param ownerType the owner type 911 * @param plid the plid 912 * @param portletId the portlet ID 913 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 914 * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 915 * @throws SystemException if a system exception occurred 916 */ 917 public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last( 918 int ownerType, long plid, java.lang.String portletId, 919 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 920 throws com.liferay.portal.kernel.exception.SystemException { 921 return getPersistence() 922 .fetchByO_P_P_Last(ownerType, plid, portletId, 923 orderByComparator); 924 } 925 926 /** 927 * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. 928 * 929 * @param portletPreferencesId the primary key of the current portlet preferences 930 * @param ownerType the owner type 931 * @param plid the plid 932 * @param portletId the portlet ID 933 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 934 * @return the previous, current, and next portlet preferences 935 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found 936 * @throws SystemException if a system exception occurred 937 */ 938 public static com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext( 939 long portletPreferencesId, int ownerType, long plid, 940 java.lang.String portletId, 941 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 942 throws com.liferay.portal.NoSuchPortletPreferencesException, 943 com.liferay.portal.kernel.exception.SystemException { 944 return getPersistence() 945 .findByO_P_P_PrevAndNext(portletPreferencesId, ownerType, 946 plid, portletId, orderByComparator); 947 } 948 949 /** 950 * 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. 951 * 952 * @param ownerId the owner ID 953 * @param ownerType the owner type 954 * @param plid the plid 955 * @param portletId the portlet ID 956 * @return the matching portlet preferences 957 * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found 958 * @throws SystemException if a system exception occurred 959 */ 960 public static com.liferay.portal.model.PortletPreferences findByO_O_P_P( 961 long ownerId, int ownerType, long plid, java.lang.String portletId) 962 throws com.liferay.portal.NoSuchPortletPreferencesException, 963 com.liferay.portal.kernel.exception.SystemException { 964 return getPersistence() 965 .findByO_O_P_P(ownerId, ownerType, plid, portletId); 966 } 967 968 /** 969 * 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. 970 * 971 * @param ownerId the owner ID 972 * @param ownerType the owner type 973 * @param plid the plid 974 * @param portletId the portlet ID 975 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 976 * @throws SystemException if a system exception occurred 977 */ 978 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 979 long ownerId, int ownerType, long plid, java.lang.String portletId) 980 throws com.liferay.portal.kernel.exception.SystemException { 981 return getPersistence() 982 .fetchByO_O_P_P(ownerId, ownerType, plid, portletId); 983 } 984 985 /** 986 * 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. 987 * 988 * @param ownerId the owner ID 989 * @param ownerType the owner type 990 * @param plid the plid 991 * @param portletId the portlet ID 992 * @param retrieveFromCache whether to use the finder cache 993 * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found 994 * @throws SystemException if a system exception occurred 995 */ 996 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P( 997 long ownerId, int ownerType, long plid, java.lang.String portletId, 998 boolean retrieveFromCache) 999 throws com.liferay.portal.kernel.exception.SystemException { 1000 return getPersistence() 1001 .fetchByO_O_P_P(ownerId, ownerType, plid, portletId, 1002 retrieveFromCache); 1003 } 1004 1005 /** 1006 * Returns all the portlet preferenceses. 1007 * 1008 * @return the portlet preferenceses 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll() 1012 throws com.liferay.portal.kernel.exception.SystemException { 1013 return getPersistence().findAll(); 1014 } 1015 1016 /** 1017 * Returns a range of all the portlet preferenceses. 1018 * 1019 * <p> 1020 * 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. 1021 * </p> 1022 * 1023 * @param start the lower bound of the range of portlet preferenceses 1024 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 1025 * @return the range of portlet preferenceses 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 1029 int start, int end) 1030 throws com.liferay.portal.kernel.exception.SystemException { 1031 return getPersistence().findAll(start, end); 1032 } 1033 1034 /** 1035 * Returns an ordered range of all the portlet preferenceses. 1036 * 1037 * <p> 1038 * 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. 1039 * </p> 1040 * 1041 * @param start the lower bound of the range of portlet preferenceses 1042 * @param end the upper bound of the range of portlet preferenceses (not inclusive) 1043 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1044 * @return the ordered range of portlet preferenceses 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll( 1048 int start, int end, 1049 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1050 throws com.liferay.portal.kernel.exception.SystemException { 1051 return getPersistence().findAll(start, end, orderByComparator); 1052 } 1053 1054 /** 1055 * Removes all the portlet preferenceses where plid = ? from the database. 1056 * 1057 * @param plid the plid 1058 * @throws SystemException if a system exception occurred 1059 */ 1060 public static void removeByPlid(long plid) 1061 throws com.liferay.portal.kernel.exception.SystemException { 1062 getPersistence().removeByPlid(plid); 1063 } 1064 1065 /** 1066 * Removes all the portlet preferenceses where portletId = ? from the database. 1067 * 1068 * @param portletId the portlet ID 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public static void removeByPortletId(java.lang.String portletId) 1072 throws com.liferay.portal.kernel.exception.SystemException { 1073 getPersistence().removeByPortletId(portletId); 1074 } 1075 1076 /** 1077 * Removes all the portlet preferenceses where plid = ? and portletId = ? from the database. 1078 * 1079 * @param plid the plid 1080 * @param portletId the portlet ID 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public static void removeByP_P(long plid, java.lang.String portletId) 1084 throws com.liferay.portal.kernel.exception.SystemException { 1085 getPersistence().removeByP_P(plid, portletId); 1086 } 1087 1088 /** 1089 * Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database. 1090 * 1091 * @param ownerId the owner ID 1092 * @param ownerType the owner type 1093 * @param plid the plid 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public static void removeByO_O_P(long ownerId, int ownerType, long plid) 1097 throws com.liferay.portal.kernel.exception.SystemException { 1098 getPersistence().removeByO_O_P(ownerId, ownerType, plid); 1099 } 1100 1101 /** 1102 * Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database. 1103 * 1104 * @param ownerType the owner type 1105 * @param plid the plid 1106 * @param portletId the portlet ID 1107 * @throws SystemException if a system exception occurred 1108 */ 1109 public static void removeByO_P_P(int ownerType, long plid, 1110 java.lang.String portletId) 1111 throws com.liferay.portal.kernel.exception.SystemException { 1112 getPersistence().removeByO_P_P(ownerType, plid, portletId); 1113 } 1114 1115 /** 1116 * Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database. 1117 * 1118 * @param ownerId the owner ID 1119 * @param ownerType the owner type 1120 * @param plid the plid 1121 * @param portletId the portlet ID 1122 * @return the portlet preferences that was removed 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static com.liferay.portal.model.PortletPreferences removeByO_O_P_P( 1126 long ownerId, int ownerType, long plid, java.lang.String portletId) 1127 throws com.liferay.portal.NoSuchPortletPreferencesException, 1128 com.liferay.portal.kernel.exception.SystemException { 1129 return getPersistence() 1130 .removeByO_O_P_P(ownerId, ownerType, plid, portletId); 1131 } 1132 1133 /** 1134 * Removes all the portlet preferenceses from the database. 1135 * 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public static void removeAll() 1139 throws com.liferay.portal.kernel.exception.SystemException { 1140 getPersistence().removeAll(); 1141 } 1142 1143 /** 1144 * Returns the number of portlet preferenceses where plid = ?. 1145 * 1146 * @param plid the plid 1147 * @return the number of matching portlet preferenceses 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public static int countByPlid(long plid) 1151 throws com.liferay.portal.kernel.exception.SystemException { 1152 return getPersistence().countByPlid(plid); 1153 } 1154 1155 /** 1156 * Returns the number of portlet preferenceses where portletId = ?. 1157 * 1158 * @param portletId the portlet ID 1159 * @return the number of matching portlet preferenceses 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public static int countByPortletId(java.lang.String portletId) 1163 throws com.liferay.portal.kernel.exception.SystemException { 1164 return getPersistence().countByPortletId(portletId); 1165 } 1166 1167 /** 1168 * Returns the number of portlet preferenceses where plid = ? and portletId = ?. 1169 * 1170 * @param plid the plid 1171 * @param portletId the portlet ID 1172 * @return the number of matching portlet preferenceses 1173 * @throws SystemException if a system exception occurred 1174 */ 1175 public static int countByP_P(long plid, java.lang.String portletId) 1176 throws com.liferay.portal.kernel.exception.SystemException { 1177 return getPersistence().countByP_P(plid, portletId); 1178 } 1179 1180 /** 1181 * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. 1182 * 1183 * @param ownerId the owner ID 1184 * @param ownerType the owner type 1185 * @param plid the plid 1186 * @return the number of matching portlet preferenceses 1187 * @throws SystemException if a system exception occurred 1188 */ 1189 public static int countByO_O_P(long ownerId, int ownerType, long plid) 1190 throws com.liferay.portal.kernel.exception.SystemException { 1191 return getPersistence().countByO_O_P(ownerId, ownerType, plid); 1192 } 1193 1194 /** 1195 * Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. 1196 * 1197 * @param ownerType the owner type 1198 * @param plid the plid 1199 * @param portletId the portlet ID 1200 * @return the number of matching portlet preferenceses 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public static int countByO_P_P(int ownerType, long plid, 1204 java.lang.String portletId) 1205 throws com.liferay.portal.kernel.exception.SystemException { 1206 return getPersistence().countByO_P_P(ownerType, plid, portletId); 1207 } 1208 1209 /** 1210 * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?. 1211 * 1212 * @param ownerId the owner ID 1213 * @param ownerType the owner type 1214 * @param plid the plid 1215 * @param portletId the portlet ID 1216 * @return the number of matching portlet preferenceses 1217 * @throws SystemException if a system exception occurred 1218 */ 1219 public static int countByO_O_P_P(long ownerId, int ownerType, long plid, 1220 java.lang.String portletId) 1221 throws com.liferay.portal.kernel.exception.SystemException { 1222 return getPersistence() 1223 .countByO_O_P_P(ownerId, ownerType, plid, portletId); 1224 } 1225 1226 /** 1227 * Returns the number of portlet preferenceses. 1228 * 1229 * @return the number of portlet preferenceses 1230 * @throws SystemException if a system exception occurred 1231 */ 1232 public static int countAll() 1233 throws com.liferay.portal.kernel.exception.SystemException { 1234 return getPersistence().countAll(); 1235 } 1236 1237 public static PortletPreferencesPersistence getPersistence() { 1238 if (_persistence == null) { 1239 _persistence = (PortletPreferencesPersistence)PortalBeanLocatorUtil.locate(PortletPreferencesPersistence.class.getName()); 1240 1241 ReferenceRegistry.registerReference(PortletPreferencesUtil.class, 1242 "_persistence"); 1243 } 1244 1245 return _persistence; 1246 } 1247 1248 /** 1249 * @deprecated 1250 */ 1251 public void setPersistence(PortletPreferencesPersistence persistence) { 1252 } 1253 1254 private static PortletPreferencesPersistence _persistence; 1255 }