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