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.portlet.wiki.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.service.ServiceContext; 023 024 import com.liferay.portlet.wiki.model.WikiPage; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the wiki page service. This utility wraps {@link WikiPagePersistenceImpl} 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. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see WikiPagePersistence 037 * @see WikiPagePersistenceImpl 038 * @generated 039 */ 040 public class WikiPageUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(WikiPage wikiPage) { 058 getPersistence().clearCache(wikiPage); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<WikiPage> findWithDynamicQuery(DynamicQuery dynamicQuery) 073 throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<WikiPage> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<WikiPage> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static WikiPage update(WikiPage wikiPage) throws SystemException { 101 return getPersistence().update(wikiPage); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static WikiPage update(WikiPage wikiPage, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(wikiPage, serviceContext); 110 } 111 112 /** 113 * Returns all the wiki pages where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @return the matching wiki pages 117 * @throws SystemException if a system exception occurred 118 */ 119 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid( 120 java.lang.String uuid) 121 throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByUuid(uuid); 123 } 124 125 /** 126 * Returns a range of all the wiki pages where uuid = ?. 127 * 128 * <p> 129 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 130 * </p> 131 * 132 * @param uuid the uuid 133 * @param start the lower bound of the range of wiki pages 134 * @param end the upper bound of the range of wiki pages (not inclusive) 135 * @return the range of matching wiki pages 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid( 139 java.lang.String uuid, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByUuid(uuid, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the wiki pages where uuid = ?. 146 * 147 * <p> 148 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 149 * </p> 150 * 151 * @param uuid the uuid 152 * @param start the lower bound of the range of wiki pages 153 * @param end the upper bound of the range of wiki pages (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching wiki pages 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid( 159 java.lang.String uuid, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 163 } 164 165 /** 166 * Returns the first wiki page in the ordered set where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching wiki page 171 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.wiki.model.WikiPage findByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.wiki.NoSuchPageException { 179 return getPersistence().findByUuid_First(uuid, orderByComparator); 180 } 181 182 /** 183 * Returns the first wiki page in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public static com.liferay.portlet.wiki.model.WikiPage fetchByUuid_First( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 195 } 196 197 /** 198 * Returns the last wiki page in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the last matching wiki page 203 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public static com.liferay.portlet.wiki.model.WikiPage findByUuid_Last( 207 java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.wiki.NoSuchPageException { 211 return getPersistence().findByUuid_Last(uuid, orderByComparator); 212 } 213 214 /** 215 * Returns the last wiki page in the ordered set where uuid = ?. 216 * 217 * @param uuid the uuid 218 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 219 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 220 * @throws SystemException if a system exception occurred 221 */ 222 public static com.liferay.portlet.wiki.model.WikiPage fetchByUuid_Last( 223 java.lang.String uuid, 224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 227 } 228 229 /** 230 * Returns the wiki pages before and after the current wiki page in the ordered set where uuid = ?. 231 * 232 * @param pageId the primary key of the current wiki page 233 * @param uuid the uuid 234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 235 * @return the previous, current, and next wiki page 236 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 237 * @throws SystemException if a system exception occurred 238 */ 239 public static com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext( 240 long pageId, java.lang.String uuid, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException, 243 com.liferay.portlet.wiki.NoSuchPageException { 244 return getPersistence() 245 .findByUuid_PrevAndNext(pageId, uuid, orderByComparator); 246 } 247 248 /** 249 * Removes all the wiki pages where uuid = ? from the database. 250 * 251 * @param uuid the uuid 252 * @throws SystemException if a system exception occurred 253 */ 254 public static void removeByUuid(java.lang.String uuid) 255 throws com.liferay.portal.kernel.exception.SystemException { 256 getPersistence().removeByUuid(uuid); 257 } 258 259 /** 260 * Returns the number of wiki pages where uuid = ?. 261 * 262 * @param uuid the uuid 263 * @return the number of matching wiki pages 264 * @throws SystemException if a system exception occurred 265 */ 266 public static int countByUuid(java.lang.String uuid) 267 throws com.liferay.portal.kernel.exception.SystemException { 268 return getPersistence().countByUuid(uuid); 269 } 270 271 /** 272 * Returns the wiki page where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchPageException} if it could not be found. 273 * 274 * @param uuid the uuid 275 * @param groupId the group ID 276 * @return the matching wiki page 277 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portlet.wiki.model.WikiPage findByUUID_G( 281 java.lang.String uuid, long groupId) 282 throws com.liferay.portal.kernel.exception.SystemException, 283 com.liferay.portlet.wiki.NoSuchPageException { 284 return getPersistence().findByUUID_G(uuid, groupId); 285 } 286 287 /** 288 * Returns the wiki page where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 289 * 290 * @param uuid the uuid 291 * @param groupId the group ID 292 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public static com.liferay.portlet.wiki.model.WikiPage fetchByUUID_G( 296 java.lang.String uuid, long groupId) 297 throws com.liferay.portal.kernel.exception.SystemException { 298 return getPersistence().fetchByUUID_G(uuid, groupId); 299 } 300 301 /** 302 * Returns the wiki page where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 303 * 304 * @param uuid the uuid 305 * @param groupId the group ID 306 * @param retrieveFromCache whether to use the finder cache 307 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public static com.liferay.portlet.wiki.model.WikiPage fetchByUUID_G( 311 java.lang.String uuid, long groupId, boolean retrieveFromCache) 312 throws com.liferay.portal.kernel.exception.SystemException { 313 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 314 } 315 316 /** 317 * Removes the wiki page where uuid = ? and groupId = ? from the database. 318 * 319 * @param uuid the uuid 320 * @param groupId the group ID 321 * @return the wiki page that was removed 322 * @throws SystemException if a system exception occurred 323 */ 324 public static com.liferay.portlet.wiki.model.WikiPage removeByUUID_G( 325 java.lang.String uuid, long groupId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.wiki.NoSuchPageException { 328 return getPersistence().removeByUUID_G(uuid, groupId); 329 } 330 331 /** 332 * Returns the number of wiki pages where uuid = ? and groupId = ?. 333 * 334 * @param uuid the uuid 335 * @param groupId the group ID 336 * @return the number of matching wiki pages 337 * @throws SystemException if a system exception occurred 338 */ 339 public static int countByUUID_G(java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().countByUUID_G(uuid, groupId); 342 } 343 344 /** 345 * Returns all the wiki pages where uuid = ? and companyId = ?. 346 * 347 * @param uuid the uuid 348 * @param companyId the company ID 349 * @return the matching wiki pages 350 * @throws SystemException if a system exception occurred 351 */ 352 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid_C( 353 java.lang.String uuid, long companyId) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().findByUuid_C(uuid, companyId); 356 } 357 358 /** 359 * Returns a range of all the wiki pages where uuid = ? and companyId = ?. 360 * 361 * <p> 362 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 363 * </p> 364 * 365 * @param uuid the uuid 366 * @param companyId the company ID 367 * @param start the lower bound of the range of wiki pages 368 * @param end the upper bound of the range of wiki pages (not inclusive) 369 * @return the range of matching wiki pages 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid_C( 373 java.lang.String uuid, long companyId, int start, int end) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().findByUuid_C(uuid, companyId, start, end); 376 } 377 378 /** 379 * Returns an ordered range of all the wiki pages where uuid = ? and companyId = ?. 380 * 381 * <p> 382 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 383 * </p> 384 * 385 * @param uuid the uuid 386 * @param companyId the company ID 387 * @param start the lower bound of the range of wiki pages 388 * @param end the upper bound of the range of wiki pages (not inclusive) 389 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 390 * @return the ordered range of matching wiki pages 391 * @throws SystemException if a system exception occurred 392 */ 393 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid_C( 394 java.lang.String uuid, long companyId, int start, int end, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 return getPersistence() 398 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 399 } 400 401 /** 402 * Returns the first wiki page in the ordered set where uuid = ? and companyId = ?. 403 * 404 * @param uuid the uuid 405 * @param companyId the company ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the first matching wiki page 408 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public static com.liferay.portlet.wiki.model.WikiPage findByUuid_C_First( 412 java.lang.String uuid, long companyId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.wiki.NoSuchPageException { 416 return getPersistence() 417 .findByUuid_C_First(uuid, companyId, orderByComparator); 418 } 419 420 /** 421 * Returns the first wiki page in the ordered set where uuid = ? and companyId = ?. 422 * 423 * @param uuid the uuid 424 * @param companyId the company ID 425 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 426 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public static com.liferay.portlet.wiki.model.WikiPage fetchByUuid_C_First( 430 java.lang.String uuid, long companyId, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException { 433 return getPersistence() 434 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 435 } 436 437 /** 438 * Returns the last wiki page in the ordered set where uuid = ? and companyId = ?. 439 * 440 * @param uuid the uuid 441 * @param companyId the company ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching wiki page 444 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public static com.liferay.portlet.wiki.model.WikiPage findByUuid_C_Last( 448 java.lang.String uuid, long companyId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.wiki.NoSuchPageException { 452 return getPersistence() 453 .findByUuid_C_Last(uuid, companyId, orderByComparator); 454 } 455 456 /** 457 * Returns the last wiki page in the ordered set where uuid = ? and companyId = ?. 458 * 459 * @param uuid the uuid 460 * @param companyId the company ID 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public static com.liferay.portlet.wiki.model.WikiPage fetchByUuid_C_Last( 466 java.lang.String uuid, long companyId, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException { 469 return getPersistence() 470 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 471 } 472 473 /** 474 * Returns the wiki pages before and after the current wiki page in the ordered set where uuid = ? and companyId = ?. 475 * 476 * @param pageId the primary key of the current wiki page 477 * @param uuid the uuid 478 * @param companyId the company ID 479 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 480 * @return the previous, current, and next wiki page 481 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public static com.liferay.portlet.wiki.model.WikiPage[] findByUuid_C_PrevAndNext( 485 long pageId, java.lang.String uuid, long companyId, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException, 488 com.liferay.portlet.wiki.NoSuchPageException { 489 return getPersistence() 490 .findByUuid_C_PrevAndNext(pageId, uuid, companyId, 491 orderByComparator); 492 } 493 494 /** 495 * Removes all the wiki pages where uuid = ? and companyId = ? from the database. 496 * 497 * @param uuid the uuid 498 * @param companyId the company ID 499 * @throws SystemException if a system exception occurred 500 */ 501 public static void removeByUuid_C(java.lang.String uuid, long companyId) 502 throws com.liferay.portal.kernel.exception.SystemException { 503 getPersistence().removeByUuid_C(uuid, companyId); 504 } 505 506 /** 507 * Returns the number of wiki pages where uuid = ? and companyId = ?. 508 * 509 * @param uuid the uuid 510 * @param companyId the company ID 511 * @return the number of matching wiki pages 512 * @throws SystemException if a system exception occurred 513 */ 514 public static int countByUuid_C(java.lang.String uuid, long companyId) 515 throws com.liferay.portal.kernel.exception.SystemException { 516 return getPersistence().countByUuid_C(uuid, companyId); 517 } 518 519 /** 520 * Returns all the wiki pages where nodeId = ?. 521 * 522 * @param nodeId the node ID 523 * @return the matching wiki pages 524 * @throws SystemException if a system exception occurred 525 */ 526 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId( 527 long nodeId) throws com.liferay.portal.kernel.exception.SystemException { 528 return getPersistence().findByNodeId(nodeId); 529 } 530 531 /** 532 * Returns a range of all the wiki pages where nodeId = ?. 533 * 534 * <p> 535 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 536 * </p> 537 * 538 * @param nodeId the node ID 539 * @param start the lower bound of the range of wiki pages 540 * @param end the upper bound of the range of wiki pages (not inclusive) 541 * @return the range of matching wiki pages 542 * @throws SystemException if a system exception occurred 543 */ 544 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId( 545 long nodeId, int start, int end) 546 throws com.liferay.portal.kernel.exception.SystemException { 547 return getPersistence().findByNodeId(nodeId, start, end); 548 } 549 550 /** 551 * Returns an ordered range of all the wiki pages where nodeId = ?. 552 * 553 * <p> 554 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 555 * </p> 556 * 557 * @param nodeId the node ID 558 * @param start the lower bound of the range of wiki pages 559 * @param end the upper bound of the range of wiki pages (not inclusive) 560 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 561 * @return the ordered range of matching wiki pages 562 * @throws SystemException if a system exception occurred 563 */ 564 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId( 565 long nodeId, int start, int end, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException { 568 return getPersistence() 569 .findByNodeId(nodeId, start, end, orderByComparator); 570 } 571 572 /** 573 * Returns the first wiki page in the ordered set where nodeId = ?. 574 * 575 * @param nodeId the node ID 576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 577 * @return the first matching wiki page 578 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 579 * @throws SystemException if a system exception occurred 580 */ 581 public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_First( 582 long nodeId, 583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 584 throws com.liferay.portal.kernel.exception.SystemException, 585 com.liferay.portlet.wiki.NoSuchPageException { 586 return getPersistence().findByNodeId_First(nodeId, orderByComparator); 587 } 588 589 /** 590 * Returns the first wiki page in the ordered set where nodeId = ?. 591 * 592 * @param nodeId the node ID 593 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 594 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public static com.liferay.portlet.wiki.model.WikiPage fetchByNodeId_First( 598 long nodeId, 599 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 600 throws com.liferay.portal.kernel.exception.SystemException { 601 return getPersistence().fetchByNodeId_First(nodeId, orderByComparator); 602 } 603 604 /** 605 * Returns the last wiki page in the ordered set where nodeId = ?. 606 * 607 * @param nodeId the node ID 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the last matching wiki page 610 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last( 614 long nodeId, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.kernel.exception.SystemException, 617 com.liferay.portlet.wiki.NoSuchPageException { 618 return getPersistence().findByNodeId_Last(nodeId, orderByComparator); 619 } 620 621 /** 622 * Returns the last wiki page in the ordered set where nodeId = ?. 623 * 624 * @param nodeId the node ID 625 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 626 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public static com.liferay.portlet.wiki.model.WikiPage fetchByNodeId_Last( 630 long nodeId, 631 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 632 throws com.liferay.portal.kernel.exception.SystemException { 633 return getPersistence().fetchByNodeId_Last(nodeId, orderByComparator); 634 } 635 636 /** 637 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ?. 638 * 639 * @param pageId the primary key of the current wiki page 640 * @param nodeId the node ID 641 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 642 * @return the previous, current, and next wiki page 643 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 644 * @throws SystemException if a system exception occurred 645 */ 646 public static com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext( 647 long pageId, long nodeId, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.wiki.NoSuchPageException { 651 return getPersistence() 652 .findByNodeId_PrevAndNext(pageId, nodeId, orderByComparator); 653 } 654 655 /** 656 * Removes all the wiki pages where nodeId = ? from the database. 657 * 658 * @param nodeId the node ID 659 * @throws SystemException if a system exception occurred 660 */ 661 public static void removeByNodeId(long nodeId) 662 throws com.liferay.portal.kernel.exception.SystemException { 663 getPersistence().removeByNodeId(nodeId); 664 } 665 666 /** 667 * Returns the number of wiki pages where nodeId = ?. 668 * 669 * @param nodeId the node ID 670 * @return the number of matching wiki pages 671 * @throws SystemException if a system exception occurred 672 */ 673 public static int countByNodeId(long nodeId) 674 throws com.liferay.portal.kernel.exception.SystemException { 675 return getPersistence().countByNodeId(nodeId); 676 } 677 678 /** 679 * Returns all the wiki pages where format = ?. 680 * 681 * @param format the format 682 * @return the matching wiki pages 683 * @throws SystemException if a system exception occurred 684 */ 685 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat( 686 java.lang.String format) 687 throws com.liferay.portal.kernel.exception.SystemException { 688 return getPersistence().findByFormat(format); 689 } 690 691 /** 692 * Returns a range of all the wiki pages where format = ?. 693 * 694 * <p> 695 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 696 * </p> 697 * 698 * @param format the format 699 * @param start the lower bound of the range of wiki pages 700 * @param end the upper bound of the range of wiki pages (not inclusive) 701 * @return the range of matching wiki pages 702 * @throws SystemException if a system exception occurred 703 */ 704 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat( 705 java.lang.String format, int start, int end) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence().findByFormat(format, start, end); 708 } 709 710 /** 711 * Returns an ordered range of all the wiki pages where format = ?. 712 * 713 * <p> 714 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 715 * </p> 716 * 717 * @param format the format 718 * @param start the lower bound of the range of wiki pages 719 * @param end the upper bound of the range of wiki pages (not inclusive) 720 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 721 * @return the ordered range of matching wiki pages 722 * @throws SystemException if a system exception occurred 723 */ 724 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat( 725 java.lang.String format, int start, int end, 726 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 727 throws com.liferay.portal.kernel.exception.SystemException { 728 return getPersistence() 729 .findByFormat(format, start, end, orderByComparator); 730 } 731 732 /** 733 * Returns the first wiki page in the ordered set where format = ?. 734 * 735 * @param format the format 736 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 737 * @return the first matching wiki page 738 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 739 * @throws SystemException if a system exception occurred 740 */ 741 public static com.liferay.portlet.wiki.model.WikiPage findByFormat_First( 742 java.lang.String format, 743 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 744 throws com.liferay.portal.kernel.exception.SystemException, 745 com.liferay.portlet.wiki.NoSuchPageException { 746 return getPersistence().findByFormat_First(format, orderByComparator); 747 } 748 749 /** 750 * Returns the first wiki page in the ordered set where format = ?. 751 * 752 * @param format the format 753 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 754 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 755 * @throws SystemException if a system exception occurred 756 */ 757 public static com.liferay.portlet.wiki.model.WikiPage fetchByFormat_First( 758 java.lang.String format, 759 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 760 throws com.liferay.portal.kernel.exception.SystemException { 761 return getPersistence().fetchByFormat_First(format, orderByComparator); 762 } 763 764 /** 765 * Returns the last wiki page in the ordered set where format = ?. 766 * 767 * @param format the format 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the last matching wiki page 770 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public static com.liferay.portlet.wiki.model.WikiPage findByFormat_Last( 774 java.lang.String format, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.kernel.exception.SystemException, 777 com.liferay.portlet.wiki.NoSuchPageException { 778 return getPersistence().findByFormat_Last(format, orderByComparator); 779 } 780 781 /** 782 * Returns the last wiki page in the ordered set where format = ?. 783 * 784 * @param format the format 785 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 786 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 787 * @throws SystemException if a system exception occurred 788 */ 789 public static com.liferay.portlet.wiki.model.WikiPage fetchByFormat_Last( 790 java.lang.String format, 791 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 792 throws com.liferay.portal.kernel.exception.SystemException { 793 return getPersistence().fetchByFormat_Last(format, orderByComparator); 794 } 795 796 /** 797 * Returns the wiki pages before and after the current wiki page in the ordered set where format = ?. 798 * 799 * @param pageId the primary key of the current wiki page 800 * @param format the format 801 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 802 * @return the previous, current, and next wiki page 803 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 804 * @throws SystemException if a system exception occurred 805 */ 806 public static com.liferay.portlet.wiki.model.WikiPage[] findByFormat_PrevAndNext( 807 long pageId, java.lang.String format, 808 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 809 throws com.liferay.portal.kernel.exception.SystemException, 810 com.liferay.portlet.wiki.NoSuchPageException { 811 return getPersistence() 812 .findByFormat_PrevAndNext(pageId, format, orderByComparator); 813 } 814 815 /** 816 * Removes all the wiki pages where format = ? from the database. 817 * 818 * @param format the format 819 * @throws SystemException if a system exception occurred 820 */ 821 public static void removeByFormat(java.lang.String format) 822 throws com.liferay.portal.kernel.exception.SystemException { 823 getPersistence().removeByFormat(format); 824 } 825 826 /** 827 * Returns the number of wiki pages where format = ?. 828 * 829 * @param format the format 830 * @return the number of matching wiki pages 831 * @throws SystemException if a system exception occurred 832 */ 833 public static int countByFormat(java.lang.String format) 834 throws com.liferay.portal.kernel.exception.SystemException { 835 return getPersistence().countByFormat(format); 836 } 837 838 /** 839 * Returns all the wiki pages where resourcePrimKey = ? and nodeId = ?. 840 * 841 * @param resourcePrimKey the resource prim key 842 * @param nodeId the node ID 843 * @return the matching wiki pages 844 * @throws SystemException if a system exception occurred 845 */ 846 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N( 847 long resourcePrimKey, long nodeId) 848 throws com.liferay.portal.kernel.exception.SystemException { 849 return getPersistence().findByR_N(resourcePrimKey, nodeId); 850 } 851 852 /** 853 * Returns a range of all the wiki pages where resourcePrimKey = ? and nodeId = ?. 854 * 855 * <p> 856 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 857 * </p> 858 * 859 * @param resourcePrimKey the resource prim key 860 * @param nodeId the node ID 861 * @param start the lower bound of the range of wiki pages 862 * @param end the upper bound of the range of wiki pages (not inclusive) 863 * @return the range of matching wiki pages 864 * @throws SystemException if a system exception occurred 865 */ 866 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N( 867 long resourcePrimKey, long nodeId, int start, int end) 868 throws com.liferay.portal.kernel.exception.SystemException { 869 return getPersistence().findByR_N(resourcePrimKey, nodeId, start, end); 870 } 871 872 /** 873 * Returns an ordered range of all the wiki pages where resourcePrimKey = ? and nodeId = ?. 874 * 875 * <p> 876 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 877 * </p> 878 * 879 * @param resourcePrimKey the resource prim key 880 * @param nodeId the node ID 881 * @param start the lower bound of the range of wiki pages 882 * @param end the upper bound of the range of wiki pages (not inclusive) 883 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 884 * @return the ordered range of matching wiki pages 885 * @throws SystemException if a system exception occurred 886 */ 887 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N( 888 long resourcePrimKey, long nodeId, int start, int end, 889 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 890 throws com.liferay.portal.kernel.exception.SystemException { 891 return getPersistence() 892 .findByR_N(resourcePrimKey, nodeId, start, end, 893 orderByComparator); 894 } 895 896 /** 897 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ?. 898 * 899 * @param resourcePrimKey the resource prim key 900 * @param nodeId the node ID 901 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 902 * @return the first matching wiki page 903 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 904 * @throws SystemException if a system exception occurred 905 */ 906 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_First( 907 long resourcePrimKey, long nodeId, 908 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 909 throws com.liferay.portal.kernel.exception.SystemException, 910 com.liferay.portlet.wiki.NoSuchPageException { 911 return getPersistence() 912 .findByR_N_First(resourcePrimKey, nodeId, orderByComparator); 913 } 914 915 /** 916 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ?. 917 * 918 * @param resourcePrimKey the resource prim key 919 * @param nodeId the node ID 920 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 921 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 922 * @throws SystemException if a system exception occurred 923 */ 924 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_First( 925 long resourcePrimKey, long nodeId, 926 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 927 throws com.liferay.portal.kernel.exception.SystemException { 928 return getPersistence() 929 .fetchByR_N_First(resourcePrimKey, nodeId, orderByComparator); 930 } 931 932 /** 933 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ?. 934 * 935 * @param resourcePrimKey the resource prim key 936 * @param nodeId the node ID 937 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 938 * @return the last matching wiki page 939 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 940 * @throws SystemException if a system exception occurred 941 */ 942 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_Last( 943 long resourcePrimKey, long nodeId, 944 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 945 throws com.liferay.portal.kernel.exception.SystemException, 946 com.liferay.portlet.wiki.NoSuchPageException { 947 return getPersistence() 948 .findByR_N_Last(resourcePrimKey, nodeId, orderByComparator); 949 } 950 951 /** 952 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ?. 953 * 954 * @param resourcePrimKey the resource prim key 955 * @param nodeId the node ID 956 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 957 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 958 * @throws SystemException if a system exception occurred 959 */ 960 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_Last( 961 long resourcePrimKey, long nodeId, 962 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 963 throws com.liferay.portal.kernel.exception.SystemException { 964 return getPersistence() 965 .fetchByR_N_Last(resourcePrimKey, nodeId, orderByComparator); 966 } 967 968 /** 969 * Returns the wiki pages before and after the current wiki page in the ordered set where resourcePrimKey = ? and nodeId = ?. 970 * 971 * @param pageId the primary key of the current wiki page 972 * @param resourcePrimKey the resource prim key 973 * @param nodeId the node ID 974 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 975 * @return the previous, current, and next wiki page 976 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 977 * @throws SystemException if a system exception occurred 978 */ 979 public static com.liferay.portlet.wiki.model.WikiPage[] findByR_N_PrevAndNext( 980 long pageId, long resourcePrimKey, long nodeId, 981 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 982 throws com.liferay.portal.kernel.exception.SystemException, 983 com.liferay.portlet.wiki.NoSuchPageException { 984 return getPersistence() 985 .findByR_N_PrevAndNext(pageId, resourcePrimKey, nodeId, 986 orderByComparator); 987 } 988 989 /** 990 * Removes all the wiki pages where resourcePrimKey = ? and nodeId = ? from the database. 991 * 992 * @param resourcePrimKey the resource prim key 993 * @param nodeId the node ID 994 * @throws SystemException if a system exception occurred 995 */ 996 public static void removeByR_N(long resourcePrimKey, long nodeId) 997 throws com.liferay.portal.kernel.exception.SystemException { 998 getPersistence().removeByR_N(resourcePrimKey, nodeId); 999 } 1000 1001 /** 1002 * Returns the number of wiki pages where resourcePrimKey = ? and nodeId = ?. 1003 * 1004 * @param resourcePrimKey the resource prim key 1005 * @param nodeId the node ID 1006 * @return the number of matching wiki pages 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public static int countByR_N(long resourcePrimKey, long nodeId) 1010 throws com.liferay.portal.kernel.exception.SystemException { 1011 return getPersistence().countByR_N(resourcePrimKey, nodeId); 1012 } 1013 1014 /** 1015 * Returns all the wiki pages where nodeId = ? and title = ?. 1016 * 1017 * @param nodeId the node ID 1018 * @param title the title 1019 * @return the matching wiki pages 1020 * @throws SystemException if a system exception occurred 1021 */ 1022 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T( 1023 long nodeId, java.lang.String title) 1024 throws com.liferay.portal.kernel.exception.SystemException { 1025 return getPersistence().findByN_T(nodeId, title); 1026 } 1027 1028 /** 1029 * Returns a range of all the wiki pages where nodeId = ? and title = ?. 1030 * 1031 * <p> 1032 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1033 * </p> 1034 * 1035 * @param nodeId the node ID 1036 * @param title the title 1037 * @param start the lower bound of the range of wiki pages 1038 * @param end the upper bound of the range of wiki pages (not inclusive) 1039 * @return the range of matching wiki pages 1040 * @throws SystemException if a system exception occurred 1041 */ 1042 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T( 1043 long nodeId, java.lang.String title, int start, int end) 1044 throws com.liferay.portal.kernel.exception.SystemException { 1045 return getPersistence().findByN_T(nodeId, title, start, end); 1046 } 1047 1048 /** 1049 * Returns an ordered range of all the wiki pages where nodeId = ? and title = ?. 1050 * 1051 * <p> 1052 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1053 * </p> 1054 * 1055 * @param nodeId the node ID 1056 * @param title the title 1057 * @param start the lower bound of the range of wiki pages 1058 * @param end the upper bound of the range of wiki pages (not inclusive) 1059 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1060 * @return the ordered range of matching wiki pages 1061 * @throws SystemException if a system exception occurred 1062 */ 1063 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T( 1064 long nodeId, java.lang.String title, int start, int end, 1065 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1066 throws com.liferay.portal.kernel.exception.SystemException { 1067 return getPersistence() 1068 .findByN_T(nodeId, title, start, end, orderByComparator); 1069 } 1070 1071 /** 1072 * Returns the first wiki page in the ordered set where nodeId = ? and title = ?. 1073 * 1074 * @param nodeId the node ID 1075 * @param title the title 1076 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1077 * @return the first matching wiki page 1078 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_First( 1082 long nodeId, java.lang.String title, 1083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1084 throws com.liferay.portal.kernel.exception.SystemException, 1085 com.liferay.portlet.wiki.NoSuchPageException { 1086 return getPersistence().findByN_T_First(nodeId, title, orderByComparator); 1087 } 1088 1089 /** 1090 * Returns the first wiki page in the ordered set where nodeId = ? and title = ?. 1091 * 1092 * @param nodeId the node ID 1093 * @param title the title 1094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1095 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_First( 1099 long nodeId, java.lang.String title, 1100 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1101 throws com.liferay.portal.kernel.exception.SystemException { 1102 return getPersistence() 1103 .fetchByN_T_First(nodeId, title, orderByComparator); 1104 } 1105 1106 /** 1107 * Returns the last wiki page in the ordered set where nodeId = ? and title = ?. 1108 * 1109 * @param nodeId the node ID 1110 * @param title the title 1111 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1112 * @return the last matching wiki page 1113 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_Last( 1117 long nodeId, java.lang.String title, 1118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1119 throws com.liferay.portal.kernel.exception.SystemException, 1120 com.liferay.portlet.wiki.NoSuchPageException { 1121 return getPersistence().findByN_T_Last(nodeId, title, orderByComparator); 1122 } 1123 1124 /** 1125 * Returns the last wiki page in the ordered set where nodeId = ? and title = ?. 1126 * 1127 * @param nodeId the node ID 1128 * @param title the title 1129 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1130 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 1131 * @throws SystemException if a system exception occurred 1132 */ 1133 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_Last( 1134 long nodeId, java.lang.String title, 1135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1136 throws com.liferay.portal.kernel.exception.SystemException { 1137 return getPersistence().fetchByN_T_Last(nodeId, title, orderByComparator); 1138 } 1139 1140 /** 1141 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and title = ?. 1142 * 1143 * @param pageId the primary key of the current wiki page 1144 * @param nodeId the node ID 1145 * @param title the title 1146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1147 * @return the previous, current, and next wiki page 1148 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext( 1152 long pageId, long nodeId, java.lang.String title, 1153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1154 throws com.liferay.portal.kernel.exception.SystemException, 1155 com.liferay.portlet.wiki.NoSuchPageException { 1156 return getPersistence() 1157 .findByN_T_PrevAndNext(pageId, nodeId, title, 1158 orderByComparator); 1159 } 1160 1161 /** 1162 * Removes all the wiki pages where nodeId = ? and title = ? from the database. 1163 * 1164 * @param nodeId the node ID 1165 * @param title the title 1166 * @throws SystemException if a system exception occurred 1167 */ 1168 public static void removeByN_T(long nodeId, java.lang.String title) 1169 throws com.liferay.portal.kernel.exception.SystemException { 1170 getPersistence().removeByN_T(nodeId, title); 1171 } 1172 1173 /** 1174 * Returns the number of wiki pages where nodeId = ? and title = ?. 1175 * 1176 * @param nodeId the node ID 1177 * @param title the title 1178 * @return the number of matching wiki pages 1179 * @throws SystemException if a system exception occurred 1180 */ 1181 public static int countByN_T(long nodeId, java.lang.String title) 1182 throws com.liferay.portal.kernel.exception.SystemException { 1183 return getPersistence().countByN_T(nodeId, title); 1184 } 1185 1186 /** 1187 * Returns all the wiki pages where nodeId = ? and head = ?. 1188 * 1189 * @param nodeId the node ID 1190 * @param head the head 1191 * @return the matching wiki pages 1192 * @throws SystemException if a system exception occurred 1193 */ 1194 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H( 1195 long nodeId, boolean head) 1196 throws com.liferay.portal.kernel.exception.SystemException { 1197 return getPersistence().findByN_H(nodeId, head); 1198 } 1199 1200 /** 1201 * Returns a range of all the wiki pages where nodeId = ? and head = ?. 1202 * 1203 * <p> 1204 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1205 * </p> 1206 * 1207 * @param nodeId the node ID 1208 * @param head the head 1209 * @param start the lower bound of the range of wiki pages 1210 * @param end the upper bound of the range of wiki pages (not inclusive) 1211 * @return the range of matching wiki pages 1212 * @throws SystemException if a system exception occurred 1213 */ 1214 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H( 1215 long nodeId, boolean head, int start, int end) 1216 throws com.liferay.portal.kernel.exception.SystemException { 1217 return getPersistence().findByN_H(nodeId, head, start, end); 1218 } 1219 1220 /** 1221 * Returns an ordered range of all the wiki pages where nodeId = ? and head = ?. 1222 * 1223 * <p> 1224 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1225 * </p> 1226 * 1227 * @param nodeId the node ID 1228 * @param head the head 1229 * @param start the lower bound of the range of wiki pages 1230 * @param end the upper bound of the range of wiki pages (not inclusive) 1231 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1232 * @return the ordered range of matching wiki pages 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H( 1236 long nodeId, boolean head, int start, int end, 1237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1238 throws com.liferay.portal.kernel.exception.SystemException { 1239 return getPersistence() 1240 .findByN_H(nodeId, head, start, end, orderByComparator); 1241 } 1242 1243 /** 1244 * Returns the first wiki page in the ordered set where nodeId = ? and head = ?. 1245 * 1246 * @param nodeId the node ID 1247 * @param head the head 1248 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1249 * @return the first matching wiki page 1250 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1251 * @throws SystemException if a system exception occurred 1252 */ 1253 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_First( 1254 long nodeId, boolean head, 1255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1256 throws com.liferay.portal.kernel.exception.SystemException, 1257 com.liferay.portlet.wiki.NoSuchPageException { 1258 return getPersistence().findByN_H_First(nodeId, head, orderByComparator); 1259 } 1260 1261 /** 1262 * Returns the first wiki page in the ordered set where nodeId = ? and head = ?. 1263 * 1264 * @param nodeId the node ID 1265 * @param head the head 1266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1267 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 1268 * @throws SystemException if a system exception occurred 1269 */ 1270 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_First( 1271 long nodeId, boolean head, 1272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1273 throws com.liferay.portal.kernel.exception.SystemException { 1274 return getPersistence().fetchByN_H_First(nodeId, head, orderByComparator); 1275 } 1276 1277 /** 1278 * Returns the last wiki page in the ordered set where nodeId = ? and head = ?. 1279 * 1280 * @param nodeId the node ID 1281 * @param head the head 1282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1283 * @return the last matching wiki page 1284 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1285 * @throws SystemException if a system exception occurred 1286 */ 1287 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_Last( 1288 long nodeId, boolean head, 1289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1290 throws com.liferay.portal.kernel.exception.SystemException, 1291 com.liferay.portlet.wiki.NoSuchPageException { 1292 return getPersistence().findByN_H_Last(nodeId, head, orderByComparator); 1293 } 1294 1295 /** 1296 * Returns the last wiki page in the ordered set where nodeId = ? and head = ?. 1297 * 1298 * @param nodeId the node ID 1299 * @param head the head 1300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1301 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 1302 * @throws SystemException if a system exception occurred 1303 */ 1304 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_Last( 1305 long nodeId, boolean head, 1306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1307 throws com.liferay.portal.kernel.exception.SystemException { 1308 return getPersistence().fetchByN_H_Last(nodeId, head, orderByComparator); 1309 } 1310 1311 /** 1312 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and head = ?. 1313 * 1314 * @param pageId the primary key of the current wiki page 1315 * @param nodeId the node ID 1316 * @param head the head 1317 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1318 * @return the previous, current, and next wiki page 1319 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 1320 * @throws SystemException if a system exception occurred 1321 */ 1322 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext( 1323 long pageId, long nodeId, boolean head, 1324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1325 throws com.liferay.portal.kernel.exception.SystemException, 1326 com.liferay.portlet.wiki.NoSuchPageException { 1327 return getPersistence() 1328 .findByN_H_PrevAndNext(pageId, nodeId, head, 1329 orderByComparator); 1330 } 1331 1332 /** 1333 * Removes all the wiki pages where nodeId = ? and head = ? from the database. 1334 * 1335 * @param nodeId the node ID 1336 * @param head the head 1337 * @throws SystemException if a system exception occurred 1338 */ 1339 public static void removeByN_H(long nodeId, boolean head) 1340 throws com.liferay.portal.kernel.exception.SystemException { 1341 getPersistence().removeByN_H(nodeId, head); 1342 } 1343 1344 /** 1345 * Returns the number of wiki pages where nodeId = ? and head = ?. 1346 * 1347 * @param nodeId the node ID 1348 * @param head the head 1349 * @return the number of matching wiki pages 1350 * @throws SystemException if a system exception occurred 1351 */ 1352 public static int countByN_H(long nodeId, boolean head) 1353 throws com.liferay.portal.kernel.exception.SystemException { 1354 return getPersistence().countByN_H(nodeId, head); 1355 } 1356 1357 /** 1358 * Returns all the wiki pages where nodeId = ? and parentTitle = ?. 1359 * 1360 * @param nodeId the node ID 1361 * @param parentTitle the parent title 1362 * @return the matching wiki pages 1363 * @throws SystemException if a system exception occurred 1364 */ 1365 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P( 1366 long nodeId, java.lang.String parentTitle) 1367 throws com.liferay.portal.kernel.exception.SystemException { 1368 return getPersistence().findByN_P(nodeId, parentTitle); 1369 } 1370 1371 /** 1372 * Returns a range of all the wiki pages where nodeId = ? and parentTitle = ?. 1373 * 1374 * <p> 1375 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1376 * </p> 1377 * 1378 * @param nodeId the node ID 1379 * @param parentTitle the parent title 1380 * @param start the lower bound of the range of wiki pages 1381 * @param end the upper bound of the range of wiki pages (not inclusive) 1382 * @return the range of matching wiki pages 1383 * @throws SystemException if a system exception occurred 1384 */ 1385 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P( 1386 long nodeId, java.lang.String parentTitle, int start, int end) 1387 throws com.liferay.portal.kernel.exception.SystemException { 1388 return getPersistence().findByN_P(nodeId, parentTitle, start, end); 1389 } 1390 1391 /** 1392 * Returns an ordered range of all the wiki pages where nodeId = ? and parentTitle = ?. 1393 * 1394 * <p> 1395 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1396 * </p> 1397 * 1398 * @param nodeId the node ID 1399 * @param parentTitle the parent title 1400 * @param start the lower bound of the range of wiki pages 1401 * @param end the upper bound of the range of wiki pages (not inclusive) 1402 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1403 * @return the ordered range of matching wiki pages 1404 * @throws SystemException if a system exception occurred 1405 */ 1406 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P( 1407 long nodeId, java.lang.String parentTitle, int start, int end, 1408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1409 throws com.liferay.portal.kernel.exception.SystemException { 1410 return getPersistence() 1411 .findByN_P(nodeId, parentTitle, start, end, orderByComparator); 1412 } 1413 1414 /** 1415 * Returns the first wiki page in the ordered set where nodeId = ? and parentTitle = ?. 1416 * 1417 * @param nodeId the node ID 1418 * @param parentTitle the parent title 1419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1420 * @return the first matching wiki page 1421 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public static com.liferay.portlet.wiki.model.WikiPage findByN_P_First( 1425 long nodeId, java.lang.String parentTitle, 1426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1427 throws com.liferay.portal.kernel.exception.SystemException, 1428 com.liferay.portlet.wiki.NoSuchPageException { 1429 return getPersistence() 1430 .findByN_P_First(nodeId, parentTitle, orderByComparator); 1431 } 1432 1433 /** 1434 * Returns the first wiki page in the ordered set where nodeId = ? and parentTitle = ?. 1435 * 1436 * @param nodeId the node ID 1437 * @param parentTitle the parent title 1438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1439 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 1440 * @throws SystemException if a system exception occurred 1441 */ 1442 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_P_First( 1443 long nodeId, java.lang.String parentTitle, 1444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1445 throws com.liferay.portal.kernel.exception.SystemException { 1446 return getPersistence() 1447 .fetchByN_P_First(nodeId, parentTitle, orderByComparator); 1448 } 1449 1450 /** 1451 * Returns the last wiki page in the ordered set where nodeId = ? and parentTitle = ?. 1452 * 1453 * @param nodeId the node ID 1454 * @param parentTitle the parent title 1455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1456 * @return the last matching wiki page 1457 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1458 * @throws SystemException if a system exception occurred 1459 */ 1460 public static com.liferay.portlet.wiki.model.WikiPage findByN_P_Last( 1461 long nodeId, java.lang.String parentTitle, 1462 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1463 throws com.liferay.portal.kernel.exception.SystemException, 1464 com.liferay.portlet.wiki.NoSuchPageException { 1465 return getPersistence() 1466 .findByN_P_Last(nodeId, parentTitle, orderByComparator); 1467 } 1468 1469 /** 1470 * Returns the last wiki page in the ordered set where nodeId = ? and parentTitle = ?. 1471 * 1472 * @param nodeId the node ID 1473 * @param parentTitle the parent title 1474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1475 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 1476 * @throws SystemException if a system exception occurred 1477 */ 1478 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_P_Last( 1479 long nodeId, java.lang.String parentTitle, 1480 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1481 throws com.liferay.portal.kernel.exception.SystemException { 1482 return getPersistence() 1483 .fetchByN_P_Last(nodeId, parentTitle, orderByComparator); 1484 } 1485 1486 /** 1487 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and parentTitle = ?. 1488 * 1489 * @param pageId the primary key of the current wiki page 1490 * @param nodeId the node ID 1491 * @param parentTitle the parent title 1492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1493 * @return the previous, current, and next wiki page 1494 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 1495 * @throws SystemException if a system exception occurred 1496 */ 1497 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_P_PrevAndNext( 1498 long pageId, long nodeId, java.lang.String parentTitle, 1499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1500 throws com.liferay.portal.kernel.exception.SystemException, 1501 com.liferay.portlet.wiki.NoSuchPageException { 1502 return getPersistence() 1503 .findByN_P_PrevAndNext(pageId, nodeId, parentTitle, 1504 orderByComparator); 1505 } 1506 1507 /** 1508 * Removes all the wiki pages where nodeId = ? and parentTitle = ? from the database. 1509 * 1510 * @param nodeId the node ID 1511 * @param parentTitle the parent title 1512 * @throws SystemException if a system exception occurred 1513 */ 1514 public static void removeByN_P(long nodeId, java.lang.String parentTitle) 1515 throws com.liferay.portal.kernel.exception.SystemException { 1516 getPersistence().removeByN_P(nodeId, parentTitle); 1517 } 1518 1519 /** 1520 * Returns the number of wiki pages where nodeId = ? and parentTitle = ?. 1521 * 1522 * @param nodeId the node ID 1523 * @param parentTitle the parent title 1524 * @return the number of matching wiki pages 1525 * @throws SystemException if a system exception occurred 1526 */ 1527 public static int countByN_P(long nodeId, java.lang.String parentTitle) 1528 throws com.liferay.portal.kernel.exception.SystemException { 1529 return getPersistence().countByN_P(nodeId, parentTitle); 1530 } 1531 1532 /** 1533 * Returns all the wiki pages where nodeId = ? and redirectTitle = ?. 1534 * 1535 * @param nodeId the node ID 1536 * @param redirectTitle the redirect title 1537 * @return the matching wiki pages 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R( 1541 long nodeId, java.lang.String redirectTitle) 1542 throws com.liferay.portal.kernel.exception.SystemException { 1543 return getPersistence().findByN_R(nodeId, redirectTitle); 1544 } 1545 1546 /** 1547 * Returns a range of all the wiki pages where nodeId = ? and redirectTitle = ?. 1548 * 1549 * <p> 1550 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1551 * </p> 1552 * 1553 * @param nodeId the node ID 1554 * @param redirectTitle the redirect title 1555 * @param start the lower bound of the range of wiki pages 1556 * @param end the upper bound of the range of wiki pages (not inclusive) 1557 * @return the range of matching wiki pages 1558 * @throws SystemException if a system exception occurred 1559 */ 1560 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R( 1561 long nodeId, java.lang.String redirectTitle, int start, int end) 1562 throws com.liferay.portal.kernel.exception.SystemException { 1563 return getPersistence().findByN_R(nodeId, redirectTitle, start, end); 1564 } 1565 1566 /** 1567 * Returns an ordered range of all the wiki pages where nodeId = ? and redirectTitle = ?. 1568 * 1569 * <p> 1570 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1571 * </p> 1572 * 1573 * @param nodeId the node ID 1574 * @param redirectTitle the redirect title 1575 * @param start the lower bound of the range of wiki pages 1576 * @param end the upper bound of the range of wiki pages (not inclusive) 1577 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1578 * @return the ordered range of matching wiki pages 1579 * @throws SystemException if a system exception occurred 1580 */ 1581 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R( 1582 long nodeId, java.lang.String redirectTitle, int start, int end, 1583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1584 throws com.liferay.portal.kernel.exception.SystemException { 1585 return getPersistence() 1586 .findByN_R(nodeId, redirectTitle, start, end, 1587 orderByComparator); 1588 } 1589 1590 /** 1591 * Returns the first wiki page in the ordered set where nodeId = ? and redirectTitle = ?. 1592 * 1593 * @param nodeId the node ID 1594 * @param redirectTitle the redirect title 1595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1596 * @return the first matching wiki page 1597 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public static com.liferay.portlet.wiki.model.WikiPage findByN_R_First( 1601 long nodeId, java.lang.String redirectTitle, 1602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1603 throws com.liferay.portal.kernel.exception.SystemException, 1604 com.liferay.portlet.wiki.NoSuchPageException { 1605 return getPersistence() 1606 .findByN_R_First(nodeId, redirectTitle, orderByComparator); 1607 } 1608 1609 /** 1610 * Returns the first wiki page in the ordered set where nodeId = ? and redirectTitle = ?. 1611 * 1612 * @param nodeId the node ID 1613 * @param redirectTitle the redirect title 1614 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1615 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 1616 * @throws SystemException if a system exception occurred 1617 */ 1618 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_R_First( 1619 long nodeId, java.lang.String redirectTitle, 1620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1621 throws com.liferay.portal.kernel.exception.SystemException { 1622 return getPersistence() 1623 .fetchByN_R_First(nodeId, redirectTitle, orderByComparator); 1624 } 1625 1626 /** 1627 * Returns the last wiki page in the ordered set where nodeId = ? and redirectTitle = ?. 1628 * 1629 * @param nodeId the node ID 1630 * @param redirectTitle the redirect title 1631 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1632 * @return the last matching wiki page 1633 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1634 * @throws SystemException if a system exception occurred 1635 */ 1636 public static com.liferay.portlet.wiki.model.WikiPage findByN_R_Last( 1637 long nodeId, java.lang.String redirectTitle, 1638 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1639 throws com.liferay.portal.kernel.exception.SystemException, 1640 com.liferay.portlet.wiki.NoSuchPageException { 1641 return getPersistence() 1642 .findByN_R_Last(nodeId, redirectTitle, orderByComparator); 1643 } 1644 1645 /** 1646 * Returns the last wiki page in the ordered set where nodeId = ? and redirectTitle = ?. 1647 * 1648 * @param nodeId the node ID 1649 * @param redirectTitle the redirect title 1650 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1651 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 1652 * @throws SystemException if a system exception occurred 1653 */ 1654 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_R_Last( 1655 long nodeId, java.lang.String redirectTitle, 1656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1657 throws com.liferay.portal.kernel.exception.SystemException { 1658 return getPersistence() 1659 .fetchByN_R_Last(nodeId, redirectTitle, orderByComparator); 1660 } 1661 1662 /** 1663 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and redirectTitle = ?. 1664 * 1665 * @param pageId the primary key of the current wiki page 1666 * @param nodeId the node ID 1667 * @param redirectTitle the redirect title 1668 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1669 * @return the previous, current, and next wiki page 1670 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 1671 * @throws SystemException if a system exception occurred 1672 */ 1673 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_R_PrevAndNext( 1674 long pageId, long nodeId, java.lang.String redirectTitle, 1675 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1676 throws com.liferay.portal.kernel.exception.SystemException, 1677 com.liferay.portlet.wiki.NoSuchPageException { 1678 return getPersistence() 1679 .findByN_R_PrevAndNext(pageId, nodeId, redirectTitle, 1680 orderByComparator); 1681 } 1682 1683 /** 1684 * Removes all the wiki pages where nodeId = ? and redirectTitle = ? from the database. 1685 * 1686 * @param nodeId the node ID 1687 * @param redirectTitle the redirect title 1688 * @throws SystemException if a system exception occurred 1689 */ 1690 public static void removeByN_R(long nodeId, java.lang.String redirectTitle) 1691 throws com.liferay.portal.kernel.exception.SystemException { 1692 getPersistence().removeByN_R(nodeId, redirectTitle); 1693 } 1694 1695 /** 1696 * Returns the number of wiki pages where nodeId = ? and redirectTitle = ?. 1697 * 1698 * @param nodeId the node ID 1699 * @param redirectTitle the redirect title 1700 * @return the number of matching wiki pages 1701 * @throws SystemException if a system exception occurred 1702 */ 1703 public static int countByN_R(long nodeId, java.lang.String redirectTitle) 1704 throws com.liferay.portal.kernel.exception.SystemException { 1705 return getPersistence().countByN_R(nodeId, redirectTitle); 1706 } 1707 1708 /** 1709 * Returns all the wiki pages where nodeId = ? and status = ?. 1710 * 1711 * @param nodeId the node ID 1712 * @param status the status 1713 * @return the matching wiki pages 1714 * @throws SystemException if a system exception occurred 1715 */ 1716 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_S( 1717 long nodeId, int status) 1718 throws com.liferay.portal.kernel.exception.SystemException { 1719 return getPersistence().findByN_S(nodeId, status); 1720 } 1721 1722 /** 1723 * Returns a range of all the wiki pages where nodeId = ? and status = ?. 1724 * 1725 * <p> 1726 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1727 * </p> 1728 * 1729 * @param nodeId the node ID 1730 * @param status the status 1731 * @param start the lower bound of the range of wiki pages 1732 * @param end the upper bound of the range of wiki pages (not inclusive) 1733 * @return the range of matching wiki pages 1734 * @throws SystemException if a system exception occurred 1735 */ 1736 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_S( 1737 long nodeId, int status, int start, int end) 1738 throws com.liferay.portal.kernel.exception.SystemException { 1739 return getPersistence().findByN_S(nodeId, status, start, end); 1740 } 1741 1742 /** 1743 * Returns an ordered range of all the wiki pages where nodeId = ? and status = ?. 1744 * 1745 * <p> 1746 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1747 * </p> 1748 * 1749 * @param nodeId the node ID 1750 * @param status the status 1751 * @param start the lower bound of the range of wiki pages 1752 * @param end the upper bound of the range of wiki pages (not inclusive) 1753 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1754 * @return the ordered range of matching wiki pages 1755 * @throws SystemException if a system exception occurred 1756 */ 1757 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_S( 1758 long nodeId, int status, int start, int end, 1759 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1760 throws com.liferay.portal.kernel.exception.SystemException { 1761 return getPersistence() 1762 .findByN_S(nodeId, status, start, end, orderByComparator); 1763 } 1764 1765 /** 1766 * Returns the first wiki page in the ordered set where nodeId = ? and status = ?. 1767 * 1768 * @param nodeId the node ID 1769 * @param status the status 1770 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1771 * @return the first matching wiki page 1772 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1773 * @throws SystemException if a system exception occurred 1774 */ 1775 public static com.liferay.portlet.wiki.model.WikiPage findByN_S_First( 1776 long nodeId, int status, 1777 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1778 throws com.liferay.portal.kernel.exception.SystemException, 1779 com.liferay.portlet.wiki.NoSuchPageException { 1780 return getPersistence() 1781 .findByN_S_First(nodeId, status, orderByComparator); 1782 } 1783 1784 /** 1785 * Returns the first wiki page in the ordered set where nodeId = ? and status = ?. 1786 * 1787 * @param nodeId the node ID 1788 * @param status the status 1789 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1790 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 1791 * @throws SystemException if a system exception occurred 1792 */ 1793 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_S_First( 1794 long nodeId, int status, 1795 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1796 throws com.liferay.portal.kernel.exception.SystemException { 1797 return getPersistence() 1798 .fetchByN_S_First(nodeId, status, orderByComparator); 1799 } 1800 1801 /** 1802 * Returns the last wiki page in the ordered set where nodeId = ? and status = ?. 1803 * 1804 * @param nodeId the node ID 1805 * @param status the status 1806 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1807 * @return the last matching wiki page 1808 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1809 * @throws SystemException if a system exception occurred 1810 */ 1811 public static com.liferay.portlet.wiki.model.WikiPage findByN_S_Last( 1812 long nodeId, int status, 1813 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1814 throws com.liferay.portal.kernel.exception.SystemException, 1815 com.liferay.portlet.wiki.NoSuchPageException { 1816 return getPersistence().findByN_S_Last(nodeId, status, orderByComparator); 1817 } 1818 1819 /** 1820 * Returns the last wiki page in the ordered set where nodeId = ? and status = ?. 1821 * 1822 * @param nodeId the node ID 1823 * @param status the status 1824 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1825 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 1826 * @throws SystemException if a system exception occurred 1827 */ 1828 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_S_Last( 1829 long nodeId, int status, 1830 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1831 throws com.liferay.portal.kernel.exception.SystemException { 1832 return getPersistence() 1833 .fetchByN_S_Last(nodeId, status, orderByComparator); 1834 } 1835 1836 /** 1837 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and status = ?. 1838 * 1839 * @param pageId the primary key of the current wiki page 1840 * @param nodeId the node ID 1841 * @param status the status 1842 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1843 * @return the previous, current, and next wiki page 1844 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 1845 * @throws SystemException if a system exception occurred 1846 */ 1847 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_S_PrevAndNext( 1848 long pageId, long nodeId, int status, 1849 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1850 throws com.liferay.portal.kernel.exception.SystemException, 1851 com.liferay.portlet.wiki.NoSuchPageException { 1852 return getPersistence() 1853 .findByN_S_PrevAndNext(pageId, nodeId, status, 1854 orderByComparator); 1855 } 1856 1857 /** 1858 * Removes all the wiki pages where nodeId = ? and status = ? from the database. 1859 * 1860 * @param nodeId the node ID 1861 * @param status the status 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public static void removeByN_S(long nodeId, int status) 1865 throws com.liferay.portal.kernel.exception.SystemException { 1866 getPersistence().removeByN_S(nodeId, status); 1867 } 1868 1869 /** 1870 * Returns the number of wiki pages where nodeId = ? and status = ?. 1871 * 1872 * @param nodeId the node ID 1873 * @param status the status 1874 * @return the number of matching wiki pages 1875 * @throws SystemException if a system exception occurred 1876 */ 1877 public static int countByN_S(long nodeId, int status) 1878 throws com.liferay.portal.kernel.exception.SystemException { 1879 return getPersistence().countByN_S(nodeId, status); 1880 } 1881 1882 /** 1883 * Returns the wiki page where resourcePrimKey = ? and nodeId = ? and version = ? or throws a {@link com.liferay.portlet.wiki.NoSuchPageException} if it could not be found. 1884 * 1885 * @param resourcePrimKey the resource prim key 1886 * @param nodeId the node ID 1887 * @param version the version 1888 * @return the matching wiki page 1889 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 1890 * @throws SystemException if a system exception occurred 1891 */ 1892 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_V( 1893 long resourcePrimKey, long nodeId, double version) 1894 throws com.liferay.portal.kernel.exception.SystemException, 1895 com.liferay.portlet.wiki.NoSuchPageException { 1896 return getPersistence().findByR_N_V(resourcePrimKey, nodeId, version); 1897 } 1898 1899 /** 1900 * Returns the wiki page where resourcePrimKey = ? and nodeId = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1901 * 1902 * @param resourcePrimKey the resource prim key 1903 * @param nodeId the node ID 1904 * @param version the version 1905 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 1906 * @throws SystemException if a system exception occurred 1907 */ 1908 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_V( 1909 long resourcePrimKey, long nodeId, double version) 1910 throws com.liferay.portal.kernel.exception.SystemException { 1911 return getPersistence().fetchByR_N_V(resourcePrimKey, nodeId, version); 1912 } 1913 1914 /** 1915 * Returns the wiki page where resourcePrimKey = ? and nodeId = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1916 * 1917 * @param resourcePrimKey the resource prim key 1918 * @param nodeId the node ID 1919 * @param version the version 1920 * @param retrieveFromCache whether to use the finder cache 1921 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 1922 * @throws SystemException if a system exception occurred 1923 */ 1924 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_V( 1925 long resourcePrimKey, long nodeId, double version, 1926 boolean retrieveFromCache) 1927 throws com.liferay.portal.kernel.exception.SystemException { 1928 return getPersistence() 1929 .fetchByR_N_V(resourcePrimKey, nodeId, version, 1930 retrieveFromCache); 1931 } 1932 1933 /** 1934 * Removes the wiki page where resourcePrimKey = ? and nodeId = ? and version = ? from the database. 1935 * 1936 * @param resourcePrimKey the resource prim key 1937 * @param nodeId the node ID 1938 * @param version the version 1939 * @return the wiki page that was removed 1940 * @throws SystemException if a system exception occurred 1941 */ 1942 public static com.liferay.portlet.wiki.model.WikiPage removeByR_N_V( 1943 long resourcePrimKey, long nodeId, double version) 1944 throws com.liferay.portal.kernel.exception.SystemException, 1945 com.liferay.portlet.wiki.NoSuchPageException { 1946 return getPersistence().removeByR_N_V(resourcePrimKey, nodeId, version); 1947 } 1948 1949 /** 1950 * Returns the number of wiki pages where resourcePrimKey = ? and nodeId = ? and version = ?. 1951 * 1952 * @param resourcePrimKey the resource prim key 1953 * @param nodeId the node ID 1954 * @param version the version 1955 * @return the number of matching wiki pages 1956 * @throws SystemException if a system exception occurred 1957 */ 1958 public static int countByR_N_V(long resourcePrimKey, long nodeId, 1959 double version) 1960 throws com.liferay.portal.kernel.exception.SystemException { 1961 return getPersistence().countByR_N_V(resourcePrimKey, nodeId, version); 1962 } 1963 1964 /** 1965 * Returns all the wiki pages where resourcePrimKey = ? and nodeId = ? and head = ?. 1966 * 1967 * @param resourcePrimKey the resource prim key 1968 * @param nodeId the node ID 1969 * @param head the head 1970 * @return the matching wiki pages 1971 * @throws SystemException if a system exception occurred 1972 */ 1973 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_H( 1974 long resourcePrimKey, long nodeId, boolean head) 1975 throws com.liferay.portal.kernel.exception.SystemException { 1976 return getPersistence().findByR_N_H(resourcePrimKey, nodeId, head); 1977 } 1978 1979 /** 1980 * Returns a range of all the wiki pages where resourcePrimKey = ? and nodeId = ? and head = ?. 1981 * 1982 * <p> 1983 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 1984 * </p> 1985 * 1986 * @param resourcePrimKey the resource prim key 1987 * @param nodeId the node ID 1988 * @param head the head 1989 * @param start the lower bound of the range of wiki pages 1990 * @param end the upper bound of the range of wiki pages (not inclusive) 1991 * @return the range of matching wiki pages 1992 * @throws SystemException if a system exception occurred 1993 */ 1994 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_H( 1995 long resourcePrimKey, long nodeId, boolean head, int start, int end) 1996 throws com.liferay.portal.kernel.exception.SystemException { 1997 return getPersistence() 1998 .findByR_N_H(resourcePrimKey, nodeId, head, start, end); 1999 } 2000 2001 /** 2002 * Returns an ordered range of all the wiki pages where resourcePrimKey = ? and nodeId = ? and head = ?. 2003 * 2004 * <p> 2005 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2006 * </p> 2007 * 2008 * @param resourcePrimKey the resource prim key 2009 * @param nodeId the node ID 2010 * @param head the head 2011 * @param start the lower bound of the range of wiki pages 2012 * @param end the upper bound of the range of wiki pages (not inclusive) 2013 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2014 * @return the ordered range of matching wiki pages 2015 * @throws SystemException if a system exception occurred 2016 */ 2017 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_H( 2018 long resourcePrimKey, long nodeId, boolean head, int start, int end, 2019 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2020 throws com.liferay.portal.kernel.exception.SystemException { 2021 return getPersistence() 2022 .findByR_N_H(resourcePrimKey, nodeId, head, start, end, 2023 orderByComparator); 2024 } 2025 2026 /** 2027 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and head = ?. 2028 * 2029 * @param resourcePrimKey the resource prim key 2030 * @param nodeId the node ID 2031 * @param head the head 2032 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2033 * @return the first matching wiki page 2034 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2035 * @throws SystemException if a system exception occurred 2036 */ 2037 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_H_First( 2038 long resourcePrimKey, long nodeId, boolean head, 2039 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2040 throws com.liferay.portal.kernel.exception.SystemException, 2041 com.liferay.portlet.wiki.NoSuchPageException { 2042 return getPersistence() 2043 .findByR_N_H_First(resourcePrimKey, nodeId, head, 2044 orderByComparator); 2045 } 2046 2047 /** 2048 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and head = ?. 2049 * 2050 * @param resourcePrimKey the resource prim key 2051 * @param nodeId the node ID 2052 * @param head the head 2053 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2054 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 2055 * @throws SystemException if a system exception occurred 2056 */ 2057 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_H_First( 2058 long resourcePrimKey, long nodeId, boolean head, 2059 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2060 throws com.liferay.portal.kernel.exception.SystemException { 2061 return getPersistence() 2062 .fetchByR_N_H_First(resourcePrimKey, nodeId, head, 2063 orderByComparator); 2064 } 2065 2066 /** 2067 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and head = ?. 2068 * 2069 * @param resourcePrimKey the resource prim key 2070 * @param nodeId the node ID 2071 * @param head the head 2072 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2073 * @return the last matching wiki page 2074 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2075 * @throws SystemException if a system exception occurred 2076 */ 2077 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_H_Last( 2078 long resourcePrimKey, long nodeId, boolean head, 2079 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2080 throws com.liferay.portal.kernel.exception.SystemException, 2081 com.liferay.portlet.wiki.NoSuchPageException { 2082 return getPersistence() 2083 .findByR_N_H_Last(resourcePrimKey, nodeId, head, 2084 orderByComparator); 2085 } 2086 2087 /** 2088 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and head = ?. 2089 * 2090 * @param resourcePrimKey the resource prim key 2091 * @param nodeId the node ID 2092 * @param head the head 2093 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2094 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 2095 * @throws SystemException if a system exception occurred 2096 */ 2097 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_H_Last( 2098 long resourcePrimKey, long nodeId, boolean head, 2099 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2100 throws com.liferay.portal.kernel.exception.SystemException { 2101 return getPersistence() 2102 .fetchByR_N_H_Last(resourcePrimKey, nodeId, head, 2103 orderByComparator); 2104 } 2105 2106 /** 2107 * Returns the wiki pages before and after the current wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and head = ?. 2108 * 2109 * @param pageId the primary key of the current wiki page 2110 * @param resourcePrimKey the resource prim key 2111 * @param nodeId the node ID 2112 * @param head the head 2113 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2114 * @return the previous, current, and next wiki page 2115 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2116 * @throws SystemException if a system exception occurred 2117 */ 2118 public static com.liferay.portlet.wiki.model.WikiPage[] findByR_N_H_PrevAndNext( 2119 long pageId, long resourcePrimKey, long nodeId, boolean head, 2120 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2121 throws com.liferay.portal.kernel.exception.SystemException, 2122 com.liferay.portlet.wiki.NoSuchPageException { 2123 return getPersistence() 2124 .findByR_N_H_PrevAndNext(pageId, resourcePrimKey, nodeId, 2125 head, orderByComparator); 2126 } 2127 2128 /** 2129 * Removes all the wiki pages where resourcePrimKey = ? and nodeId = ? and head = ? from the database. 2130 * 2131 * @param resourcePrimKey the resource prim key 2132 * @param nodeId the node ID 2133 * @param head the head 2134 * @throws SystemException if a system exception occurred 2135 */ 2136 public static void removeByR_N_H(long resourcePrimKey, long nodeId, 2137 boolean head) 2138 throws com.liferay.portal.kernel.exception.SystemException { 2139 getPersistence().removeByR_N_H(resourcePrimKey, nodeId, head); 2140 } 2141 2142 /** 2143 * Returns the number of wiki pages where resourcePrimKey = ? and nodeId = ? and head = ?. 2144 * 2145 * @param resourcePrimKey the resource prim key 2146 * @param nodeId the node ID 2147 * @param head the head 2148 * @return the number of matching wiki pages 2149 * @throws SystemException if a system exception occurred 2150 */ 2151 public static int countByR_N_H(long resourcePrimKey, long nodeId, 2152 boolean head) 2153 throws com.liferay.portal.kernel.exception.SystemException { 2154 return getPersistence().countByR_N_H(resourcePrimKey, nodeId, head); 2155 } 2156 2157 /** 2158 * Returns all the wiki pages where resourcePrimKey = ? and nodeId = ? and status = ?. 2159 * 2160 * @param resourcePrimKey the resource prim key 2161 * @param nodeId the node ID 2162 * @param status the status 2163 * @return the matching wiki pages 2164 * @throws SystemException if a system exception occurred 2165 */ 2166 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_S( 2167 long resourcePrimKey, long nodeId, int status) 2168 throws com.liferay.portal.kernel.exception.SystemException { 2169 return getPersistence().findByR_N_S(resourcePrimKey, nodeId, status); 2170 } 2171 2172 /** 2173 * Returns a range of all the wiki pages where resourcePrimKey = ? and nodeId = ? and status = ?. 2174 * 2175 * <p> 2176 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2177 * </p> 2178 * 2179 * @param resourcePrimKey the resource prim key 2180 * @param nodeId the node ID 2181 * @param status the status 2182 * @param start the lower bound of the range of wiki pages 2183 * @param end the upper bound of the range of wiki pages (not inclusive) 2184 * @return the range of matching wiki pages 2185 * @throws SystemException if a system exception occurred 2186 */ 2187 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_S( 2188 long resourcePrimKey, long nodeId, int status, int start, int end) 2189 throws com.liferay.portal.kernel.exception.SystemException { 2190 return getPersistence() 2191 .findByR_N_S(resourcePrimKey, nodeId, status, start, end); 2192 } 2193 2194 /** 2195 * Returns an ordered range of all the wiki pages where resourcePrimKey = ? and nodeId = ? and status = ?. 2196 * 2197 * <p> 2198 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2199 * </p> 2200 * 2201 * @param resourcePrimKey the resource prim key 2202 * @param nodeId the node ID 2203 * @param status the status 2204 * @param start the lower bound of the range of wiki pages 2205 * @param end the upper bound of the range of wiki pages (not inclusive) 2206 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2207 * @return the ordered range of matching wiki pages 2208 * @throws SystemException if a system exception occurred 2209 */ 2210 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByR_N_S( 2211 long resourcePrimKey, long nodeId, int status, int start, int end, 2212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2213 throws com.liferay.portal.kernel.exception.SystemException { 2214 return getPersistence() 2215 .findByR_N_S(resourcePrimKey, nodeId, status, start, end, 2216 orderByComparator); 2217 } 2218 2219 /** 2220 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and status = ?. 2221 * 2222 * @param resourcePrimKey the resource prim key 2223 * @param nodeId the node ID 2224 * @param status the status 2225 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2226 * @return the first matching wiki page 2227 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2228 * @throws SystemException if a system exception occurred 2229 */ 2230 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_S_First( 2231 long resourcePrimKey, long nodeId, int status, 2232 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2233 throws com.liferay.portal.kernel.exception.SystemException, 2234 com.liferay.portlet.wiki.NoSuchPageException { 2235 return getPersistence() 2236 .findByR_N_S_First(resourcePrimKey, nodeId, status, 2237 orderByComparator); 2238 } 2239 2240 /** 2241 * Returns the first wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and status = ?. 2242 * 2243 * @param resourcePrimKey the resource prim key 2244 * @param nodeId the node ID 2245 * @param status the status 2246 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2247 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 2248 * @throws SystemException if a system exception occurred 2249 */ 2250 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_S_First( 2251 long resourcePrimKey, long nodeId, int status, 2252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2253 throws com.liferay.portal.kernel.exception.SystemException { 2254 return getPersistence() 2255 .fetchByR_N_S_First(resourcePrimKey, nodeId, status, 2256 orderByComparator); 2257 } 2258 2259 /** 2260 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and status = ?. 2261 * 2262 * @param resourcePrimKey the resource prim key 2263 * @param nodeId the node ID 2264 * @param status the status 2265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2266 * @return the last matching wiki page 2267 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2268 * @throws SystemException if a system exception occurred 2269 */ 2270 public static com.liferay.portlet.wiki.model.WikiPage findByR_N_S_Last( 2271 long resourcePrimKey, long nodeId, int status, 2272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2273 throws com.liferay.portal.kernel.exception.SystemException, 2274 com.liferay.portlet.wiki.NoSuchPageException { 2275 return getPersistence() 2276 .findByR_N_S_Last(resourcePrimKey, nodeId, status, 2277 orderByComparator); 2278 } 2279 2280 /** 2281 * Returns the last wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and status = ?. 2282 * 2283 * @param resourcePrimKey the resource prim key 2284 * @param nodeId the node ID 2285 * @param status the status 2286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2287 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 2288 * @throws SystemException if a system exception occurred 2289 */ 2290 public static com.liferay.portlet.wiki.model.WikiPage fetchByR_N_S_Last( 2291 long resourcePrimKey, long nodeId, int status, 2292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2293 throws com.liferay.portal.kernel.exception.SystemException { 2294 return getPersistence() 2295 .fetchByR_N_S_Last(resourcePrimKey, nodeId, status, 2296 orderByComparator); 2297 } 2298 2299 /** 2300 * Returns the wiki pages before and after the current wiki page in the ordered set where resourcePrimKey = ? and nodeId = ? and status = ?. 2301 * 2302 * @param pageId the primary key of the current wiki page 2303 * @param resourcePrimKey the resource prim key 2304 * @param nodeId the node ID 2305 * @param status the status 2306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2307 * @return the previous, current, and next wiki page 2308 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2309 * @throws SystemException if a system exception occurred 2310 */ 2311 public static com.liferay.portlet.wiki.model.WikiPage[] findByR_N_S_PrevAndNext( 2312 long pageId, long resourcePrimKey, long nodeId, int status, 2313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2314 throws com.liferay.portal.kernel.exception.SystemException, 2315 com.liferay.portlet.wiki.NoSuchPageException { 2316 return getPersistence() 2317 .findByR_N_S_PrevAndNext(pageId, resourcePrimKey, nodeId, 2318 status, orderByComparator); 2319 } 2320 2321 /** 2322 * Removes all the wiki pages where resourcePrimKey = ? and nodeId = ? and status = ? from the database. 2323 * 2324 * @param resourcePrimKey the resource prim key 2325 * @param nodeId the node ID 2326 * @param status the status 2327 * @throws SystemException if a system exception occurred 2328 */ 2329 public static void removeByR_N_S(long resourcePrimKey, long nodeId, 2330 int status) throws com.liferay.portal.kernel.exception.SystemException { 2331 getPersistence().removeByR_N_S(resourcePrimKey, nodeId, status); 2332 } 2333 2334 /** 2335 * Returns the number of wiki pages where resourcePrimKey = ? and nodeId = ? and status = ?. 2336 * 2337 * @param resourcePrimKey the resource prim key 2338 * @param nodeId the node ID 2339 * @param status the status 2340 * @return the number of matching wiki pages 2341 * @throws SystemException if a system exception occurred 2342 */ 2343 public static int countByR_N_S(long resourcePrimKey, long nodeId, int status) 2344 throws com.liferay.portal.kernel.exception.SystemException { 2345 return getPersistence().countByR_N_S(resourcePrimKey, nodeId, status); 2346 } 2347 2348 /** 2349 * Returns all the wiki pages where groupId = ? and nodeId = ? and head = ?. 2350 * 2351 * @param groupId the group ID 2352 * @param nodeId the node ID 2353 * @param head the head 2354 * @return the matching wiki pages 2355 * @throws SystemException if a system exception occurred 2356 */ 2357 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H( 2358 long groupId, long nodeId, boolean head) 2359 throws com.liferay.portal.kernel.exception.SystemException { 2360 return getPersistence().findByG_N_H(groupId, nodeId, head); 2361 } 2362 2363 /** 2364 * Returns a range of all the wiki pages where groupId = ? and nodeId = ? and head = ?. 2365 * 2366 * <p> 2367 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2368 * </p> 2369 * 2370 * @param groupId the group ID 2371 * @param nodeId the node ID 2372 * @param head the head 2373 * @param start the lower bound of the range of wiki pages 2374 * @param end the upper bound of the range of wiki pages (not inclusive) 2375 * @return the range of matching wiki pages 2376 * @throws SystemException if a system exception occurred 2377 */ 2378 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H( 2379 long groupId, long nodeId, boolean head, int start, int end) 2380 throws com.liferay.portal.kernel.exception.SystemException { 2381 return getPersistence().findByG_N_H(groupId, nodeId, head, start, end); 2382 } 2383 2384 /** 2385 * Returns an ordered range of all the wiki pages where groupId = ? and nodeId = ? and head = ?. 2386 * 2387 * <p> 2388 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2389 * </p> 2390 * 2391 * @param groupId the group ID 2392 * @param nodeId the node ID 2393 * @param head the head 2394 * @param start the lower bound of the range of wiki pages 2395 * @param end the upper bound of the range of wiki pages (not inclusive) 2396 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2397 * @return the ordered range of matching wiki pages 2398 * @throws SystemException if a system exception occurred 2399 */ 2400 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H( 2401 long groupId, long nodeId, boolean head, int start, int end, 2402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2403 throws com.liferay.portal.kernel.exception.SystemException { 2404 return getPersistence() 2405 .findByG_N_H(groupId, nodeId, head, start, end, 2406 orderByComparator); 2407 } 2408 2409 /** 2410 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ?. 2411 * 2412 * @param groupId the group ID 2413 * @param nodeId the node ID 2414 * @param head the head 2415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2416 * @return the first matching wiki page 2417 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2418 * @throws SystemException if a system exception occurred 2419 */ 2420 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_First( 2421 long groupId, long nodeId, boolean head, 2422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2423 throws com.liferay.portal.kernel.exception.SystemException, 2424 com.liferay.portlet.wiki.NoSuchPageException { 2425 return getPersistence() 2426 .findByG_N_H_First(groupId, nodeId, head, orderByComparator); 2427 } 2428 2429 /** 2430 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ?. 2431 * 2432 * @param groupId the group ID 2433 * @param nodeId the node ID 2434 * @param head the head 2435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2436 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 2437 * @throws SystemException if a system exception occurred 2438 */ 2439 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_First( 2440 long groupId, long nodeId, boolean head, 2441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2442 throws com.liferay.portal.kernel.exception.SystemException { 2443 return getPersistence() 2444 .fetchByG_N_H_First(groupId, nodeId, head, orderByComparator); 2445 } 2446 2447 /** 2448 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ?. 2449 * 2450 * @param groupId the group ID 2451 * @param nodeId the node ID 2452 * @param head the head 2453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2454 * @return the last matching wiki page 2455 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2456 * @throws SystemException if a system exception occurred 2457 */ 2458 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_Last( 2459 long groupId, long nodeId, boolean head, 2460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2461 throws com.liferay.portal.kernel.exception.SystemException, 2462 com.liferay.portlet.wiki.NoSuchPageException { 2463 return getPersistence() 2464 .findByG_N_H_Last(groupId, nodeId, head, orderByComparator); 2465 } 2466 2467 /** 2468 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ?. 2469 * 2470 * @param groupId the group ID 2471 * @param nodeId the node ID 2472 * @param head the head 2473 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2474 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 2475 * @throws SystemException if a system exception occurred 2476 */ 2477 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_Last( 2478 long groupId, long nodeId, boolean head, 2479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2480 throws com.liferay.portal.kernel.exception.SystemException { 2481 return getPersistence() 2482 .fetchByG_N_H_Last(groupId, nodeId, head, orderByComparator); 2483 } 2484 2485 /** 2486 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and nodeId = ? and head = ?. 2487 * 2488 * @param pageId the primary key of the current wiki page 2489 * @param groupId the group ID 2490 * @param nodeId the node ID 2491 * @param head the head 2492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2493 * @return the previous, current, and next wiki page 2494 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2495 * @throws SystemException if a system exception occurred 2496 */ 2497 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_N_H_PrevAndNext( 2498 long pageId, long groupId, long nodeId, boolean head, 2499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2500 throws com.liferay.portal.kernel.exception.SystemException, 2501 com.liferay.portlet.wiki.NoSuchPageException { 2502 return getPersistence() 2503 .findByG_N_H_PrevAndNext(pageId, groupId, nodeId, head, 2504 orderByComparator); 2505 } 2506 2507 /** 2508 * Returns all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ?. 2509 * 2510 * @param groupId the group ID 2511 * @param nodeId the node ID 2512 * @param head the head 2513 * @return the matching wiki pages that the user has permission to view 2514 * @throws SystemException if a system exception occurred 2515 */ 2516 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H( 2517 long groupId, long nodeId, boolean head) 2518 throws com.liferay.portal.kernel.exception.SystemException { 2519 return getPersistence().filterFindByG_N_H(groupId, nodeId, head); 2520 } 2521 2522 /** 2523 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ?. 2524 * 2525 * <p> 2526 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2527 * </p> 2528 * 2529 * @param groupId the group ID 2530 * @param nodeId the node ID 2531 * @param head the head 2532 * @param start the lower bound of the range of wiki pages 2533 * @param end the upper bound of the range of wiki pages (not inclusive) 2534 * @return the range of matching wiki pages that the user has permission to view 2535 * @throws SystemException if a system exception occurred 2536 */ 2537 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H( 2538 long groupId, long nodeId, boolean head, int start, int end) 2539 throws com.liferay.portal.kernel.exception.SystemException { 2540 return getPersistence() 2541 .filterFindByG_N_H(groupId, nodeId, head, start, end); 2542 } 2543 2544 /** 2545 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and nodeId = ? and head = ?. 2546 * 2547 * <p> 2548 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2549 * </p> 2550 * 2551 * @param groupId the group ID 2552 * @param nodeId the node ID 2553 * @param head the head 2554 * @param start the lower bound of the range of wiki pages 2555 * @param end the upper bound of the range of wiki pages (not inclusive) 2556 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2557 * @return the ordered range of matching wiki pages that the user has permission to view 2558 * @throws SystemException if a system exception occurred 2559 */ 2560 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H( 2561 long groupId, long nodeId, boolean head, int start, int end, 2562 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2563 throws com.liferay.portal.kernel.exception.SystemException { 2564 return getPersistence() 2565 .filterFindByG_N_H(groupId, nodeId, head, start, end, 2566 orderByComparator); 2567 } 2568 2569 /** 2570 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ?. 2571 * 2572 * @param pageId the primary key of the current wiki page 2573 * @param groupId the group ID 2574 * @param nodeId the node ID 2575 * @param head the head 2576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2577 * @return the previous, current, and next wiki page 2578 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2579 * @throws SystemException if a system exception occurred 2580 */ 2581 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_N_H_PrevAndNext( 2582 long pageId, long groupId, long nodeId, boolean head, 2583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2584 throws com.liferay.portal.kernel.exception.SystemException, 2585 com.liferay.portlet.wiki.NoSuchPageException { 2586 return getPersistence() 2587 .filterFindByG_N_H_PrevAndNext(pageId, groupId, nodeId, 2588 head, orderByComparator); 2589 } 2590 2591 /** 2592 * Removes all the wiki pages where groupId = ? and nodeId = ? and head = ? from the database. 2593 * 2594 * @param groupId the group ID 2595 * @param nodeId the node ID 2596 * @param head the head 2597 * @throws SystemException if a system exception occurred 2598 */ 2599 public static void removeByG_N_H(long groupId, long nodeId, boolean head) 2600 throws com.liferay.portal.kernel.exception.SystemException { 2601 getPersistence().removeByG_N_H(groupId, nodeId, head); 2602 } 2603 2604 /** 2605 * Returns the number of wiki pages where groupId = ? and nodeId = ? and head = ?. 2606 * 2607 * @param groupId the group ID 2608 * @param nodeId the node ID 2609 * @param head the head 2610 * @return the number of matching wiki pages 2611 * @throws SystemException if a system exception occurred 2612 */ 2613 public static int countByG_N_H(long groupId, long nodeId, boolean head) 2614 throws com.liferay.portal.kernel.exception.SystemException { 2615 return getPersistence().countByG_N_H(groupId, nodeId, head); 2616 } 2617 2618 /** 2619 * Returns the number of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ?. 2620 * 2621 * @param groupId the group ID 2622 * @param nodeId the node ID 2623 * @param head the head 2624 * @return the number of matching wiki pages that the user has permission to view 2625 * @throws SystemException if a system exception occurred 2626 */ 2627 public static int filterCountByG_N_H(long groupId, long nodeId, boolean head) 2628 throws com.liferay.portal.kernel.exception.SystemException { 2629 return getPersistence().filterCountByG_N_H(groupId, nodeId, head); 2630 } 2631 2632 /** 2633 * Returns all the wiki pages where groupId = ? and nodeId = ? and status = ?. 2634 * 2635 * @param groupId the group ID 2636 * @param nodeId the node ID 2637 * @param status the status 2638 * @return the matching wiki pages 2639 * @throws SystemException if a system exception occurred 2640 */ 2641 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_S( 2642 long groupId, long nodeId, int status) 2643 throws com.liferay.portal.kernel.exception.SystemException { 2644 return getPersistence().findByG_N_S(groupId, nodeId, status); 2645 } 2646 2647 /** 2648 * Returns a range of all the wiki pages where groupId = ? and nodeId = ? and status = ?. 2649 * 2650 * <p> 2651 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2652 * </p> 2653 * 2654 * @param groupId the group ID 2655 * @param nodeId the node ID 2656 * @param status the status 2657 * @param start the lower bound of the range of wiki pages 2658 * @param end the upper bound of the range of wiki pages (not inclusive) 2659 * @return the range of matching wiki pages 2660 * @throws SystemException if a system exception occurred 2661 */ 2662 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_S( 2663 long groupId, long nodeId, int status, int start, int end) 2664 throws com.liferay.portal.kernel.exception.SystemException { 2665 return getPersistence().findByG_N_S(groupId, nodeId, status, start, end); 2666 } 2667 2668 /** 2669 * Returns an ordered range of all the wiki pages where groupId = ? and nodeId = ? and status = ?. 2670 * 2671 * <p> 2672 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2673 * </p> 2674 * 2675 * @param groupId the group ID 2676 * @param nodeId the node ID 2677 * @param status the status 2678 * @param start the lower bound of the range of wiki pages 2679 * @param end the upper bound of the range of wiki pages (not inclusive) 2680 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2681 * @return the ordered range of matching wiki pages 2682 * @throws SystemException if a system exception occurred 2683 */ 2684 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_S( 2685 long groupId, long nodeId, int status, int start, int end, 2686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2687 throws com.liferay.portal.kernel.exception.SystemException { 2688 return getPersistence() 2689 .findByG_N_S(groupId, nodeId, status, start, end, 2690 orderByComparator); 2691 } 2692 2693 /** 2694 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and status = ?. 2695 * 2696 * @param groupId the group ID 2697 * @param nodeId the node ID 2698 * @param status the status 2699 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2700 * @return the first matching wiki page 2701 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2702 * @throws SystemException if a system exception occurred 2703 */ 2704 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_S_First( 2705 long groupId, long nodeId, int status, 2706 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2707 throws com.liferay.portal.kernel.exception.SystemException, 2708 com.liferay.portlet.wiki.NoSuchPageException { 2709 return getPersistence() 2710 .findByG_N_S_First(groupId, nodeId, status, orderByComparator); 2711 } 2712 2713 /** 2714 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and status = ?. 2715 * 2716 * @param groupId the group ID 2717 * @param nodeId the node ID 2718 * @param status the status 2719 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2720 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 2721 * @throws SystemException if a system exception occurred 2722 */ 2723 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_S_First( 2724 long groupId, long nodeId, int status, 2725 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2726 throws com.liferay.portal.kernel.exception.SystemException { 2727 return getPersistence() 2728 .fetchByG_N_S_First(groupId, nodeId, status, 2729 orderByComparator); 2730 } 2731 2732 /** 2733 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and status = ?. 2734 * 2735 * @param groupId the group ID 2736 * @param nodeId the node ID 2737 * @param status the status 2738 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2739 * @return the last matching wiki page 2740 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2741 * @throws SystemException if a system exception occurred 2742 */ 2743 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_S_Last( 2744 long groupId, long nodeId, int status, 2745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2746 throws com.liferay.portal.kernel.exception.SystemException, 2747 com.liferay.portlet.wiki.NoSuchPageException { 2748 return getPersistence() 2749 .findByG_N_S_Last(groupId, nodeId, status, orderByComparator); 2750 } 2751 2752 /** 2753 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and status = ?. 2754 * 2755 * @param groupId the group ID 2756 * @param nodeId the node ID 2757 * @param status the status 2758 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2759 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 2760 * @throws SystemException if a system exception occurred 2761 */ 2762 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_S_Last( 2763 long groupId, long nodeId, int status, 2764 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2765 throws com.liferay.portal.kernel.exception.SystemException { 2766 return getPersistence() 2767 .fetchByG_N_S_Last(groupId, nodeId, status, orderByComparator); 2768 } 2769 2770 /** 2771 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and nodeId = ? and status = ?. 2772 * 2773 * @param pageId the primary key of the current wiki page 2774 * @param groupId the group ID 2775 * @param nodeId the node ID 2776 * @param status the status 2777 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2778 * @return the previous, current, and next wiki page 2779 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2780 * @throws SystemException if a system exception occurred 2781 */ 2782 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_N_S_PrevAndNext( 2783 long pageId, long groupId, long nodeId, int status, 2784 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2785 throws com.liferay.portal.kernel.exception.SystemException, 2786 com.liferay.portlet.wiki.NoSuchPageException { 2787 return getPersistence() 2788 .findByG_N_S_PrevAndNext(pageId, groupId, nodeId, status, 2789 orderByComparator); 2790 } 2791 2792 /** 2793 * Returns all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and status = ?. 2794 * 2795 * @param groupId the group ID 2796 * @param nodeId the node ID 2797 * @param status the status 2798 * @return the matching wiki pages that the user has permission to view 2799 * @throws SystemException if a system exception occurred 2800 */ 2801 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_S( 2802 long groupId, long nodeId, int status) 2803 throws com.liferay.portal.kernel.exception.SystemException { 2804 return getPersistence().filterFindByG_N_S(groupId, nodeId, status); 2805 } 2806 2807 /** 2808 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and status = ?. 2809 * 2810 * <p> 2811 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2812 * </p> 2813 * 2814 * @param groupId the group ID 2815 * @param nodeId the node ID 2816 * @param status the status 2817 * @param start the lower bound of the range of wiki pages 2818 * @param end the upper bound of the range of wiki pages (not inclusive) 2819 * @return the range of matching wiki pages that the user has permission to view 2820 * @throws SystemException if a system exception occurred 2821 */ 2822 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_S( 2823 long groupId, long nodeId, int status, int start, int end) 2824 throws com.liferay.portal.kernel.exception.SystemException { 2825 return getPersistence() 2826 .filterFindByG_N_S(groupId, nodeId, status, start, end); 2827 } 2828 2829 /** 2830 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and nodeId = ? and status = ?. 2831 * 2832 * <p> 2833 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2834 * </p> 2835 * 2836 * @param groupId the group ID 2837 * @param nodeId the node ID 2838 * @param status the status 2839 * @param start the lower bound of the range of wiki pages 2840 * @param end the upper bound of the range of wiki pages (not inclusive) 2841 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2842 * @return the ordered range of matching wiki pages that the user has permission to view 2843 * @throws SystemException if a system exception occurred 2844 */ 2845 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_S( 2846 long groupId, long nodeId, int status, int start, int end, 2847 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2848 throws com.liferay.portal.kernel.exception.SystemException { 2849 return getPersistence() 2850 .filterFindByG_N_S(groupId, nodeId, status, start, end, 2851 orderByComparator); 2852 } 2853 2854 /** 2855 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and status = ?. 2856 * 2857 * @param pageId the primary key of the current wiki page 2858 * @param groupId the group ID 2859 * @param nodeId the node ID 2860 * @param status the status 2861 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2862 * @return the previous, current, and next wiki page 2863 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 2864 * @throws SystemException if a system exception occurred 2865 */ 2866 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_N_S_PrevAndNext( 2867 long pageId, long groupId, long nodeId, int status, 2868 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2869 throws com.liferay.portal.kernel.exception.SystemException, 2870 com.liferay.portlet.wiki.NoSuchPageException { 2871 return getPersistence() 2872 .filterFindByG_N_S_PrevAndNext(pageId, groupId, nodeId, 2873 status, orderByComparator); 2874 } 2875 2876 /** 2877 * Removes all the wiki pages where groupId = ? and nodeId = ? and status = ? from the database. 2878 * 2879 * @param groupId the group ID 2880 * @param nodeId the node ID 2881 * @param status the status 2882 * @throws SystemException if a system exception occurred 2883 */ 2884 public static void removeByG_N_S(long groupId, long nodeId, int status) 2885 throws com.liferay.portal.kernel.exception.SystemException { 2886 getPersistence().removeByG_N_S(groupId, nodeId, status); 2887 } 2888 2889 /** 2890 * Returns the number of wiki pages where groupId = ? and nodeId = ? and status = ?. 2891 * 2892 * @param groupId the group ID 2893 * @param nodeId the node ID 2894 * @param status the status 2895 * @return the number of matching wiki pages 2896 * @throws SystemException if a system exception occurred 2897 */ 2898 public static int countByG_N_S(long groupId, long nodeId, int status) 2899 throws com.liferay.portal.kernel.exception.SystemException { 2900 return getPersistence().countByG_N_S(groupId, nodeId, status); 2901 } 2902 2903 /** 2904 * Returns the number of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and status = ?. 2905 * 2906 * @param groupId the group ID 2907 * @param nodeId the node ID 2908 * @param status the status 2909 * @return the number of matching wiki pages that the user has permission to view 2910 * @throws SystemException if a system exception occurred 2911 */ 2912 public static int filterCountByG_N_S(long groupId, long nodeId, int status) 2913 throws com.liferay.portal.kernel.exception.SystemException { 2914 return getPersistence().filterCountByG_N_S(groupId, nodeId, status); 2915 } 2916 2917 /** 2918 * Returns all the wiki pages where userId = ? and nodeId = ? and status = ?. 2919 * 2920 * @param userId the user ID 2921 * @param nodeId the node ID 2922 * @param status the status 2923 * @return the matching wiki pages 2924 * @throws SystemException if a system exception occurred 2925 */ 2926 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByU_N_S( 2927 long userId, long nodeId, int status) 2928 throws com.liferay.portal.kernel.exception.SystemException { 2929 return getPersistence().findByU_N_S(userId, nodeId, status); 2930 } 2931 2932 /** 2933 * Returns a range of all the wiki pages where userId = ? and nodeId = ? and status = ?. 2934 * 2935 * <p> 2936 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2937 * </p> 2938 * 2939 * @param userId the user ID 2940 * @param nodeId the node ID 2941 * @param status the status 2942 * @param start the lower bound of the range of wiki pages 2943 * @param end the upper bound of the range of wiki pages (not inclusive) 2944 * @return the range of matching wiki pages 2945 * @throws SystemException if a system exception occurred 2946 */ 2947 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByU_N_S( 2948 long userId, long nodeId, int status, int start, int end) 2949 throws com.liferay.portal.kernel.exception.SystemException { 2950 return getPersistence().findByU_N_S(userId, nodeId, status, start, end); 2951 } 2952 2953 /** 2954 * Returns an ordered range of all the wiki pages where userId = ? and nodeId = ? and status = ?. 2955 * 2956 * <p> 2957 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 2958 * </p> 2959 * 2960 * @param userId the user ID 2961 * @param nodeId the node ID 2962 * @param status the status 2963 * @param start the lower bound of the range of wiki pages 2964 * @param end the upper bound of the range of wiki pages (not inclusive) 2965 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2966 * @return the ordered range of matching wiki pages 2967 * @throws SystemException if a system exception occurred 2968 */ 2969 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByU_N_S( 2970 long userId, long nodeId, int status, int start, int end, 2971 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2972 throws com.liferay.portal.kernel.exception.SystemException { 2973 return getPersistence() 2974 .findByU_N_S(userId, nodeId, status, start, end, 2975 orderByComparator); 2976 } 2977 2978 /** 2979 * Returns the first wiki page in the ordered set where userId = ? and nodeId = ? and status = ?. 2980 * 2981 * @param userId the user ID 2982 * @param nodeId the node ID 2983 * @param status the status 2984 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2985 * @return the first matching wiki page 2986 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 2987 * @throws SystemException if a system exception occurred 2988 */ 2989 public static com.liferay.portlet.wiki.model.WikiPage findByU_N_S_First( 2990 long userId, long nodeId, int status, 2991 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2992 throws com.liferay.portal.kernel.exception.SystemException, 2993 com.liferay.portlet.wiki.NoSuchPageException { 2994 return getPersistence() 2995 .findByU_N_S_First(userId, nodeId, status, orderByComparator); 2996 } 2997 2998 /** 2999 * Returns the first wiki page in the ordered set where userId = ? and nodeId = ? and status = ?. 3000 * 3001 * @param userId the user ID 3002 * @param nodeId the node ID 3003 * @param status the status 3004 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3005 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 3006 * @throws SystemException if a system exception occurred 3007 */ 3008 public static com.liferay.portlet.wiki.model.WikiPage fetchByU_N_S_First( 3009 long userId, long nodeId, int status, 3010 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3011 throws com.liferay.portal.kernel.exception.SystemException { 3012 return getPersistence() 3013 .fetchByU_N_S_First(userId, nodeId, status, orderByComparator); 3014 } 3015 3016 /** 3017 * Returns the last wiki page in the ordered set where userId = ? and nodeId = ? and status = ?. 3018 * 3019 * @param userId the user ID 3020 * @param nodeId the node ID 3021 * @param status the status 3022 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3023 * @return the last matching wiki page 3024 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3025 * @throws SystemException if a system exception occurred 3026 */ 3027 public static com.liferay.portlet.wiki.model.WikiPage findByU_N_S_Last( 3028 long userId, long nodeId, int status, 3029 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3030 throws com.liferay.portal.kernel.exception.SystemException, 3031 com.liferay.portlet.wiki.NoSuchPageException { 3032 return getPersistence() 3033 .findByU_N_S_Last(userId, nodeId, status, orderByComparator); 3034 } 3035 3036 /** 3037 * Returns the last wiki page in the ordered set where userId = ? and nodeId = ? and status = ?. 3038 * 3039 * @param userId the user ID 3040 * @param nodeId the node ID 3041 * @param status the status 3042 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3043 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 3044 * @throws SystemException if a system exception occurred 3045 */ 3046 public static com.liferay.portlet.wiki.model.WikiPage fetchByU_N_S_Last( 3047 long userId, long nodeId, int status, 3048 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3049 throws com.liferay.portal.kernel.exception.SystemException { 3050 return getPersistence() 3051 .fetchByU_N_S_Last(userId, nodeId, status, orderByComparator); 3052 } 3053 3054 /** 3055 * Returns the wiki pages before and after the current wiki page in the ordered set where userId = ? and nodeId = ? and status = ?. 3056 * 3057 * @param pageId the primary key of the current wiki page 3058 * @param userId the user ID 3059 * @param nodeId the node ID 3060 * @param status the status 3061 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3062 * @return the previous, current, and next wiki page 3063 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 3064 * @throws SystemException if a system exception occurred 3065 */ 3066 public static com.liferay.portlet.wiki.model.WikiPage[] findByU_N_S_PrevAndNext( 3067 long pageId, long userId, long nodeId, int status, 3068 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3069 throws com.liferay.portal.kernel.exception.SystemException, 3070 com.liferay.portlet.wiki.NoSuchPageException { 3071 return getPersistence() 3072 .findByU_N_S_PrevAndNext(pageId, userId, nodeId, status, 3073 orderByComparator); 3074 } 3075 3076 /** 3077 * Removes all the wiki pages where userId = ? and nodeId = ? and status = ? from the database. 3078 * 3079 * @param userId the user ID 3080 * @param nodeId the node ID 3081 * @param status the status 3082 * @throws SystemException if a system exception occurred 3083 */ 3084 public static void removeByU_N_S(long userId, long nodeId, int status) 3085 throws com.liferay.portal.kernel.exception.SystemException { 3086 getPersistence().removeByU_N_S(userId, nodeId, status); 3087 } 3088 3089 /** 3090 * Returns the number of wiki pages where userId = ? and nodeId = ? and status = ?. 3091 * 3092 * @param userId the user ID 3093 * @param nodeId the node ID 3094 * @param status the status 3095 * @return the number of matching wiki pages 3096 * @throws SystemException if a system exception occurred 3097 */ 3098 public static int countByU_N_S(long userId, long nodeId, int status) 3099 throws com.liferay.portal.kernel.exception.SystemException { 3100 return getPersistence().countByU_N_S(userId, nodeId, status); 3101 } 3102 3103 /** 3104 * Returns the wiki page where nodeId = ? and title = ? and version = ? or throws a {@link com.liferay.portlet.wiki.NoSuchPageException} if it could not be found. 3105 * 3106 * @param nodeId the node ID 3107 * @param title the title 3108 * @param version the version 3109 * @return the matching wiki page 3110 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3111 * @throws SystemException if a system exception occurred 3112 */ 3113 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_V( 3114 long nodeId, java.lang.String title, double version) 3115 throws com.liferay.portal.kernel.exception.SystemException, 3116 com.liferay.portlet.wiki.NoSuchPageException { 3117 return getPersistence().findByN_T_V(nodeId, title, version); 3118 } 3119 3120 /** 3121 * Returns the wiki page where nodeId = ? and title = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 3122 * 3123 * @param nodeId the node ID 3124 * @param title the title 3125 * @param version the version 3126 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 3127 * @throws SystemException if a system exception occurred 3128 */ 3129 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V( 3130 long nodeId, java.lang.String title, double version) 3131 throws com.liferay.portal.kernel.exception.SystemException { 3132 return getPersistence().fetchByN_T_V(nodeId, title, version); 3133 } 3134 3135 /** 3136 * Returns the wiki page where nodeId = ? and title = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 3137 * 3138 * @param nodeId the node ID 3139 * @param title the title 3140 * @param version the version 3141 * @param retrieveFromCache whether to use the finder cache 3142 * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found 3143 * @throws SystemException if a system exception occurred 3144 */ 3145 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V( 3146 long nodeId, java.lang.String title, double version, 3147 boolean retrieveFromCache) 3148 throws com.liferay.portal.kernel.exception.SystemException { 3149 return getPersistence() 3150 .fetchByN_T_V(nodeId, title, version, retrieveFromCache); 3151 } 3152 3153 /** 3154 * Removes the wiki page where nodeId = ? and title = ? and version = ? from the database. 3155 * 3156 * @param nodeId the node ID 3157 * @param title the title 3158 * @param version the version 3159 * @return the wiki page that was removed 3160 * @throws SystemException if a system exception occurred 3161 */ 3162 public static com.liferay.portlet.wiki.model.WikiPage removeByN_T_V( 3163 long nodeId, java.lang.String title, double version) 3164 throws com.liferay.portal.kernel.exception.SystemException, 3165 com.liferay.portlet.wiki.NoSuchPageException { 3166 return getPersistence().removeByN_T_V(nodeId, title, version); 3167 } 3168 3169 /** 3170 * Returns the number of wiki pages where nodeId = ? and title = ? and version = ?. 3171 * 3172 * @param nodeId the node ID 3173 * @param title the title 3174 * @param version the version 3175 * @return the number of matching wiki pages 3176 * @throws SystemException if a system exception occurred 3177 */ 3178 public static int countByN_T_V(long nodeId, java.lang.String title, 3179 double version) 3180 throws com.liferay.portal.kernel.exception.SystemException { 3181 return getPersistence().countByN_T_V(nodeId, title, version); 3182 } 3183 3184 /** 3185 * Returns all the wiki pages where nodeId = ? and title = ? and head = ?. 3186 * 3187 * @param nodeId the node ID 3188 * @param title the title 3189 * @param head the head 3190 * @return the matching wiki pages 3191 * @throws SystemException if a system exception occurred 3192 */ 3193 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H( 3194 long nodeId, java.lang.String title, boolean head) 3195 throws com.liferay.portal.kernel.exception.SystemException { 3196 return getPersistence().findByN_T_H(nodeId, title, head); 3197 } 3198 3199 /** 3200 * Returns a range of all the wiki pages where nodeId = ? and title = ? and head = ?. 3201 * 3202 * <p> 3203 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3204 * </p> 3205 * 3206 * @param nodeId the node ID 3207 * @param title the title 3208 * @param head the head 3209 * @param start the lower bound of the range of wiki pages 3210 * @param end the upper bound of the range of wiki pages (not inclusive) 3211 * @return the range of matching wiki pages 3212 * @throws SystemException if a system exception occurred 3213 */ 3214 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H( 3215 long nodeId, java.lang.String title, boolean head, int start, int end) 3216 throws com.liferay.portal.kernel.exception.SystemException { 3217 return getPersistence().findByN_T_H(nodeId, title, head, start, end); 3218 } 3219 3220 /** 3221 * Returns an ordered range of all the wiki pages where nodeId = ? and title = ? and head = ?. 3222 * 3223 * <p> 3224 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3225 * </p> 3226 * 3227 * @param nodeId the node ID 3228 * @param title the title 3229 * @param head the head 3230 * @param start the lower bound of the range of wiki pages 3231 * @param end the upper bound of the range of wiki pages (not inclusive) 3232 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3233 * @return the ordered range of matching wiki pages 3234 * @throws SystemException if a system exception occurred 3235 */ 3236 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H( 3237 long nodeId, java.lang.String title, boolean head, int start, int end, 3238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3239 throws com.liferay.portal.kernel.exception.SystemException { 3240 return getPersistence() 3241 .findByN_T_H(nodeId, title, head, start, end, 3242 orderByComparator); 3243 } 3244 3245 /** 3246 * Returns the first wiki page in the ordered set where nodeId = ? and title = ? and head = ?. 3247 * 3248 * @param nodeId the node ID 3249 * @param title the title 3250 * @param head the head 3251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3252 * @return the first matching wiki page 3253 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3254 * @throws SystemException if a system exception occurred 3255 */ 3256 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First( 3257 long nodeId, java.lang.String title, boolean head, 3258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3259 throws com.liferay.portal.kernel.exception.SystemException, 3260 com.liferay.portlet.wiki.NoSuchPageException { 3261 return getPersistence() 3262 .findByN_T_H_First(nodeId, title, head, orderByComparator); 3263 } 3264 3265 /** 3266 * Returns the first wiki page in the ordered set where nodeId = ? and title = ? and head = ?. 3267 * 3268 * @param nodeId the node ID 3269 * @param title the title 3270 * @param head the head 3271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3272 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 3273 * @throws SystemException if a system exception occurred 3274 */ 3275 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_H_First( 3276 long nodeId, java.lang.String title, boolean head, 3277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3278 throws com.liferay.portal.kernel.exception.SystemException { 3279 return getPersistence() 3280 .fetchByN_T_H_First(nodeId, title, head, orderByComparator); 3281 } 3282 3283 /** 3284 * Returns the last wiki page in the ordered set where nodeId = ? and title = ? and head = ?. 3285 * 3286 * @param nodeId the node ID 3287 * @param title the title 3288 * @param head the head 3289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3290 * @return the last matching wiki page 3291 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3292 * @throws SystemException if a system exception occurred 3293 */ 3294 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last( 3295 long nodeId, java.lang.String title, boolean head, 3296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3297 throws com.liferay.portal.kernel.exception.SystemException, 3298 com.liferay.portlet.wiki.NoSuchPageException { 3299 return getPersistence() 3300 .findByN_T_H_Last(nodeId, title, head, orderByComparator); 3301 } 3302 3303 /** 3304 * Returns the last wiki page in the ordered set where nodeId = ? and title = ? and head = ?. 3305 * 3306 * @param nodeId the node ID 3307 * @param title the title 3308 * @param head the head 3309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3310 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 3311 * @throws SystemException if a system exception occurred 3312 */ 3313 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_H_Last( 3314 long nodeId, java.lang.String title, boolean head, 3315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3316 throws com.liferay.portal.kernel.exception.SystemException { 3317 return getPersistence() 3318 .fetchByN_T_H_Last(nodeId, title, head, orderByComparator); 3319 } 3320 3321 /** 3322 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and title = ? and head = ?. 3323 * 3324 * @param pageId the primary key of the current wiki page 3325 * @param nodeId the node ID 3326 * @param title the title 3327 * @param head the head 3328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3329 * @return the previous, current, and next wiki page 3330 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 3331 * @throws SystemException if a system exception occurred 3332 */ 3333 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext( 3334 long pageId, long nodeId, java.lang.String title, boolean head, 3335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3336 throws com.liferay.portal.kernel.exception.SystemException, 3337 com.liferay.portlet.wiki.NoSuchPageException { 3338 return getPersistence() 3339 .findByN_T_H_PrevAndNext(pageId, nodeId, title, head, 3340 orderByComparator); 3341 } 3342 3343 /** 3344 * Removes all the wiki pages where nodeId = ? and title = ? and head = ? from the database. 3345 * 3346 * @param nodeId the node ID 3347 * @param title the title 3348 * @param head the head 3349 * @throws SystemException if a system exception occurred 3350 */ 3351 public static void removeByN_T_H(long nodeId, java.lang.String title, 3352 boolean head) 3353 throws com.liferay.portal.kernel.exception.SystemException { 3354 getPersistence().removeByN_T_H(nodeId, title, head); 3355 } 3356 3357 /** 3358 * Returns the number of wiki pages where nodeId = ? and title = ? and head = ?. 3359 * 3360 * @param nodeId the node ID 3361 * @param title the title 3362 * @param head the head 3363 * @return the number of matching wiki pages 3364 * @throws SystemException if a system exception occurred 3365 */ 3366 public static int countByN_T_H(long nodeId, java.lang.String title, 3367 boolean head) 3368 throws com.liferay.portal.kernel.exception.SystemException { 3369 return getPersistence().countByN_T_H(nodeId, title, head); 3370 } 3371 3372 /** 3373 * Returns all the wiki pages where nodeId = ? and title = ? and status = ?. 3374 * 3375 * @param nodeId the node ID 3376 * @param title the title 3377 * @param status the status 3378 * @return the matching wiki pages 3379 * @throws SystemException if a system exception occurred 3380 */ 3381 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_S( 3382 long nodeId, java.lang.String title, int status) 3383 throws com.liferay.portal.kernel.exception.SystemException { 3384 return getPersistence().findByN_T_S(nodeId, title, status); 3385 } 3386 3387 /** 3388 * Returns a range of all the wiki pages where nodeId = ? and title = ? and status = ?. 3389 * 3390 * <p> 3391 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3392 * </p> 3393 * 3394 * @param nodeId the node ID 3395 * @param title the title 3396 * @param status the status 3397 * @param start the lower bound of the range of wiki pages 3398 * @param end the upper bound of the range of wiki pages (not inclusive) 3399 * @return the range of matching wiki pages 3400 * @throws SystemException if a system exception occurred 3401 */ 3402 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_S( 3403 long nodeId, java.lang.String title, int status, int start, int end) 3404 throws com.liferay.portal.kernel.exception.SystemException { 3405 return getPersistence().findByN_T_S(nodeId, title, status, start, end); 3406 } 3407 3408 /** 3409 * Returns an ordered range of all the wiki pages where nodeId = ? and title = ? and status = ?. 3410 * 3411 * <p> 3412 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3413 * </p> 3414 * 3415 * @param nodeId the node ID 3416 * @param title the title 3417 * @param status the status 3418 * @param start the lower bound of the range of wiki pages 3419 * @param end the upper bound of the range of wiki pages (not inclusive) 3420 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3421 * @return the ordered range of matching wiki pages 3422 * @throws SystemException if a system exception occurred 3423 */ 3424 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_S( 3425 long nodeId, java.lang.String title, int status, int start, int end, 3426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3427 throws com.liferay.portal.kernel.exception.SystemException { 3428 return getPersistence() 3429 .findByN_T_S(nodeId, title, status, start, end, 3430 orderByComparator); 3431 } 3432 3433 /** 3434 * Returns the first wiki page in the ordered set where nodeId = ? and title = ? and status = ?. 3435 * 3436 * @param nodeId the node ID 3437 * @param title the title 3438 * @param status the status 3439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3440 * @return the first matching wiki page 3441 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3442 * @throws SystemException if a system exception occurred 3443 */ 3444 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_S_First( 3445 long nodeId, java.lang.String title, int status, 3446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3447 throws com.liferay.portal.kernel.exception.SystemException, 3448 com.liferay.portlet.wiki.NoSuchPageException { 3449 return getPersistence() 3450 .findByN_T_S_First(nodeId, title, status, orderByComparator); 3451 } 3452 3453 /** 3454 * Returns the first wiki page in the ordered set where nodeId = ? and title = ? and status = ?. 3455 * 3456 * @param nodeId the node ID 3457 * @param title the title 3458 * @param status the status 3459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3460 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 3461 * @throws SystemException if a system exception occurred 3462 */ 3463 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_S_First( 3464 long nodeId, java.lang.String title, int status, 3465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3466 throws com.liferay.portal.kernel.exception.SystemException { 3467 return getPersistence() 3468 .fetchByN_T_S_First(nodeId, title, status, orderByComparator); 3469 } 3470 3471 /** 3472 * Returns the last wiki page in the ordered set where nodeId = ? and title = ? and status = ?. 3473 * 3474 * @param nodeId the node ID 3475 * @param title the title 3476 * @param status the status 3477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3478 * @return the last matching wiki page 3479 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3480 * @throws SystemException if a system exception occurred 3481 */ 3482 public static com.liferay.portlet.wiki.model.WikiPage findByN_T_S_Last( 3483 long nodeId, java.lang.String title, int status, 3484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3485 throws com.liferay.portal.kernel.exception.SystemException, 3486 com.liferay.portlet.wiki.NoSuchPageException { 3487 return getPersistence() 3488 .findByN_T_S_Last(nodeId, title, status, orderByComparator); 3489 } 3490 3491 /** 3492 * Returns the last wiki page in the ordered set where nodeId = ? and title = ? and status = ?. 3493 * 3494 * @param nodeId the node ID 3495 * @param title the title 3496 * @param status the status 3497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3498 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 3499 * @throws SystemException if a system exception occurred 3500 */ 3501 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_S_Last( 3502 long nodeId, java.lang.String title, int status, 3503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3504 throws com.liferay.portal.kernel.exception.SystemException { 3505 return getPersistence() 3506 .fetchByN_T_S_Last(nodeId, title, status, orderByComparator); 3507 } 3508 3509 /** 3510 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and title = ? and status = ?. 3511 * 3512 * @param pageId the primary key of the current wiki page 3513 * @param nodeId the node ID 3514 * @param title the title 3515 * @param status the status 3516 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3517 * @return the previous, current, and next wiki page 3518 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 3519 * @throws SystemException if a system exception occurred 3520 */ 3521 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_S_PrevAndNext( 3522 long pageId, long nodeId, java.lang.String title, int status, 3523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3524 throws com.liferay.portal.kernel.exception.SystemException, 3525 com.liferay.portlet.wiki.NoSuchPageException { 3526 return getPersistence() 3527 .findByN_T_S_PrevAndNext(pageId, nodeId, title, status, 3528 orderByComparator); 3529 } 3530 3531 /** 3532 * Removes all the wiki pages where nodeId = ? and title = ? and status = ? from the database. 3533 * 3534 * @param nodeId the node ID 3535 * @param title the title 3536 * @param status the status 3537 * @throws SystemException if a system exception occurred 3538 */ 3539 public static void removeByN_T_S(long nodeId, java.lang.String title, 3540 int status) throws com.liferay.portal.kernel.exception.SystemException { 3541 getPersistence().removeByN_T_S(nodeId, title, status); 3542 } 3543 3544 /** 3545 * Returns the number of wiki pages where nodeId = ? and title = ? and status = ?. 3546 * 3547 * @param nodeId the node ID 3548 * @param title the title 3549 * @param status the status 3550 * @return the number of matching wiki pages 3551 * @throws SystemException if a system exception occurred 3552 */ 3553 public static int countByN_T_S(long nodeId, java.lang.String title, 3554 int status) throws com.liferay.portal.kernel.exception.SystemException { 3555 return getPersistence().countByN_T_S(nodeId, title, status); 3556 } 3557 3558 /** 3559 * Returns all the wiki pages where nodeId = ? and head = ? and parentTitle = ?. 3560 * 3561 * @param nodeId the node ID 3562 * @param head the head 3563 * @param parentTitle the parent title 3564 * @return the matching wiki pages 3565 * @throws SystemException if a system exception occurred 3566 */ 3567 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P( 3568 long nodeId, boolean head, java.lang.String parentTitle) 3569 throws com.liferay.portal.kernel.exception.SystemException { 3570 return getPersistence().findByN_H_P(nodeId, head, parentTitle); 3571 } 3572 3573 /** 3574 * Returns a range of all the wiki pages where nodeId = ? and head = ? and parentTitle = ?. 3575 * 3576 * <p> 3577 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3578 * </p> 3579 * 3580 * @param nodeId the node ID 3581 * @param head the head 3582 * @param parentTitle the parent title 3583 * @param start the lower bound of the range of wiki pages 3584 * @param end the upper bound of the range of wiki pages (not inclusive) 3585 * @return the range of matching wiki pages 3586 * @throws SystemException if a system exception occurred 3587 */ 3588 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P( 3589 long nodeId, boolean head, java.lang.String parentTitle, int start, 3590 int end) throws com.liferay.portal.kernel.exception.SystemException { 3591 return getPersistence() 3592 .findByN_H_P(nodeId, head, parentTitle, start, end); 3593 } 3594 3595 /** 3596 * Returns an ordered range of all the wiki pages where nodeId = ? and head = ? and parentTitle = ?. 3597 * 3598 * <p> 3599 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3600 * </p> 3601 * 3602 * @param nodeId the node ID 3603 * @param head the head 3604 * @param parentTitle the parent title 3605 * @param start the lower bound of the range of wiki pages 3606 * @param end the upper bound of the range of wiki pages (not inclusive) 3607 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3608 * @return the ordered range of matching wiki pages 3609 * @throws SystemException if a system exception occurred 3610 */ 3611 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P( 3612 long nodeId, boolean head, java.lang.String parentTitle, int start, 3613 int end, 3614 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3615 throws com.liferay.portal.kernel.exception.SystemException { 3616 return getPersistence() 3617 .findByN_H_P(nodeId, head, parentTitle, start, end, 3618 orderByComparator); 3619 } 3620 3621 /** 3622 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ?. 3623 * 3624 * @param nodeId the node ID 3625 * @param head the head 3626 * @param parentTitle the parent title 3627 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3628 * @return the first matching wiki page 3629 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3630 * @throws SystemException if a system exception occurred 3631 */ 3632 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_First( 3633 long nodeId, boolean head, java.lang.String parentTitle, 3634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3635 throws com.liferay.portal.kernel.exception.SystemException, 3636 com.liferay.portlet.wiki.NoSuchPageException { 3637 return getPersistence() 3638 .findByN_H_P_First(nodeId, head, parentTitle, 3639 orderByComparator); 3640 } 3641 3642 /** 3643 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ?. 3644 * 3645 * @param nodeId the node ID 3646 * @param head the head 3647 * @param parentTitle the parent title 3648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3649 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 3650 * @throws SystemException if a system exception occurred 3651 */ 3652 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_P_First( 3653 long nodeId, boolean head, java.lang.String parentTitle, 3654 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3655 throws com.liferay.portal.kernel.exception.SystemException { 3656 return getPersistence() 3657 .fetchByN_H_P_First(nodeId, head, parentTitle, 3658 orderByComparator); 3659 } 3660 3661 /** 3662 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ?. 3663 * 3664 * @param nodeId the node ID 3665 * @param head the head 3666 * @param parentTitle the parent title 3667 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3668 * @return the last matching wiki page 3669 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3670 * @throws SystemException if a system exception occurred 3671 */ 3672 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_Last( 3673 long nodeId, boolean head, java.lang.String parentTitle, 3674 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3675 throws com.liferay.portal.kernel.exception.SystemException, 3676 com.liferay.portlet.wiki.NoSuchPageException { 3677 return getPersistence() 3678 .findByN_H_P_Last(nodeId, head, parentTitle, 3679 orderByComparator); 3680 } 3681 3682 /** 3683 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ?. 3684 * 3685 * @param nodeId the node ID 3686 * @param head the head 3687 * @param parentTitle the parent title 3688 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3689 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 3690 * @throws SystemException if a system exception occurred 3691 */ 3692 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_P_Last( 3693 long nodeId, boolean head, java.lang.String parentTitle, 3694 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3695 throws com.liferay.portal.kernel.exception.SystemException { 3696 return getPersistence() 3697 .fetchByN_H_P_Last(nodeId, head, parentTitle, 3698 orderByComparator); 3699 } 3700 3701 /** 3702 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ?. 3703 * 3704 * @param pageId the primary key of the current wiki page 3705 * @param nodeId the node ID 3706 * @param head the head 3707 * @param parentTitle the parent title 3708 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3709 * @return the previous, current, and next wiki page 3710 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 3711 * @throws SystemException if a system exception occurred 3712 */ 3713 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_P_PrevAndNext( 3714 long pageId, long nodeId, boolean head, java.lang.String parentTitle, 3715 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3716 throws com.liferay.portal.kernel.exception.SystemException, 3717 com.liferay.portlet.wiki.NoSuchPageException { 3718 return getPersistence() 3719 .findByN_H_P_PrevAndNext(pageId, nodeId, head, parentTitle, 3720 orderByComparator); 3721 } 3722 3723 /** 3724 * Removes all the wiki pages where nodeId = ? and head = ? and parentTitle = ? from the database. 3725 * 3726 * @param nodeId the node ID 3727 * @param head the head 3728 * @param parentTitle the parent title 3729 * @throws SystemException if a system exception occurred 3730 */ 3731 public static void removeByN_H_P(long nodeId, boolean head, 3732 java.lang.String parentTitle) 3733 throws com.liferay.portal.kernel.exception.SystemException { 3734 getPersistence().removeByN_H_P(nodeId, head, parentTitle); 3735 } 3736 3737 /** 3738 * Returns the number of wiki pages where nodeId = ? and head = ? and parentTitle = ?. 3739 * 3740 * @param nodeId the node ID 3741 * @param head the head 3742 * @param parentTitle the parent title 3743 * @return the number of matching wiki pages 3744 * @throws SystemException if a system exception occurred 3745 */ 3746 public static int countByN_H_P(long nodeId, boolean head, 3747 java.lang.String parentTitle) 3748 throws com.liferay.portal.kernel.exception.SystemException { 3749 return getPersistence().countByN_H_P(nodeId, head, parentTitle); 3750 } 3751 3752 /** 3753 * Returns all the wiki pages where nodeId = ? and head = ? and status = ?. 3754 * 3755 * @param nodeId the node ID 3756 * @param head the head 3757 * @param status the status 3758 * @return the matching wiki pages 3759 * @throws SystemException if a system exception occurred 3760 */ 3761 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_S( 3762 long nodeId, boolean head, int status) 3763 throws com.liferay.portal.kernel.exception.SystemException { 3764 return getPersistence().findByN_H_S(nodeId, head, status); 3765 } 3766 3767 /** 3768 * Returns a range of all the wiki pages where nodeId = ? and head = ? and status = ?. 3769 * 3770 * <p> 3771 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3772 * </p> 3773 * 3774 * @param nodeId the node ID 3775 * @param head the head 3776 * @param status the status 3777 * @param start the lower bound of the range of wiki pages 3778 * @param end the upper bound of the range of wiki pages (not inclusive) 3779 * @return the range of matching wiki pages 3780 * @throws SystemException if a system exception occurred 3781 */ 3782 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_S( 3783 long nodeId, boolean head, int status, int start, int end) 3784 throws com.liferay.portal.kernel.exception.SystemException { 3785 return getPersistence().findByN_H_S(nodeId, head, status, start, end); 3786 } 3787 3788 /** 3789 * Returns an ordered range of all the wiki pages where nodeId = ? and head = ? and status = ?. 3790 * 3791 * <p> 3792 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3793 * </p> 3794 * 3795 * @param nodeId the node ID 3796 * @param head the head 3797 * @param status the status 3798 * @param start the lower bound of the range of wiki pages 3799 * @param end the upper bound of the range of wiki pages (not inclusive) 3800 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3801 * @return the ordered range of matching wiki pages 3802 * @throws SystemException if a system exception occurred 3803 */ 3804 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_S( 3805 long nodeId, boolean head, int status, int start, int end, 3806 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3807 throws com.liferay.portal.kernel.exception.SystemException { 3808 return getPersistence() 3809 .findByN_H_S(nodeId, head, status, start, end, 3810 orderByComparator); 3811 } 3812 3813 /** 3814 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and status = ?. 3815 * 3816 * @param nodeId the node ID 3817 * @param head the head 3818 * @param status the status 3819 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3820 * @return the first matching wiki page 3821 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3822 * @throws SystemException if a system exception occurred 3823 */ 3824 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_S_First( 3825 long nodeId, boolean head, int status, 3826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3827 throws com.liferay.portal.kernel.exception.SystemException, 3828 com.liferay.portlet.wiki.NoSuchPageException { 3829 return getPersistence() 3830 .findByN_H_S_First(nodeId, head, status, orderByComparator); 3831 } 3832 3833 /** 3834 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and status = ?. 3835 * 3836 * @param nodeId the node ID 3837 * @param head the head 3838 * @param status the status 3839 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3840 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 3841 * @throws SystemException if a system exception occurred 3842 */ 3843 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_S_First( 3844 long nodeId, boolean head, int status, 3845 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3846 throws com.liferay.portal.kernel.exception.SystemException { 3847 return getPersistence() 3848 .fetchByN_H_S_First(nodeId, head, status, orderByComparator); 3849 } 3850 3851 /** 3852 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and status = ?. 3853 * 3854 * @param nodeId the node ID 3855 * @param head the head 3856 * @param status the status 3857 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3858 * @return the last matching wiki page 3859 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 3860 * @throws SystemException if a system exception occurred 3861 */ 3862 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_S_Last( 3863 long nodeId, boolean head, int status, 3864 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3865 throws com.liferay.portal.kernel.exception.SystemException, 3866 com.liferay.portlet.wiki.NoSuchPageException { 3867 return getPersistence() 3868 .findByN_H_S_Last(nodeId, head, status, orderByComparator); 3869 } 3870 3871 /** 3872 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and status = ?. 3873 * 3874 * @param nodeId the node ID 3875 * @param head the head 3876 * @param status the status 3877 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3878 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 3879 * @throws SystemException if a system exception occurred 3880 */ 3881 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_S_Last( 3882 long nodeId, boolean head, int status, 3883 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3884 throws com.liferay.portal.kernel.exception.SystemException { 3885 return getPersistence() 3886 .fetchByN_H_S_Last(nodeId, head, status, orderByComparator); 3887 } 3888 3889 /** 3890 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and head = ? and status = ?. 3891 * 3892 * @param pageId the primary key of the current wiki page 3893 * @param nodeId the node ID 3894 * @param head the head 3895 * @param status the status 3896 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3897 * @return the previous, current, and next wiki page 3898 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 3899 * @throws SystemException if a system exception occurred 3900 */ 3901 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_S_PrevAndNext( 3902 long pageId, long nodeId, boolean head, int status, 3903 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3904 throws com.liferay.portal.kernel.exception.SystemException, 3905 com.liferay.portlet.wiki.NoSuchPageException { 3906 return getPersistence() 3907 .findByN_H_S_PrevAndNext(pageId, nodeId, head, status, 3908 orderByComparator); 3909 } 3910 3911 /** 3912 * Removes all the wiki pages where nodeId = ? and head = ? and status = ? from the database. 3913 * 3914 * @param nodeId the node ID 3915 * @param head the head 3916 * @param status the status 3917 * @throws SystemException if a system exception occurred 3918 */ 3919 public static void removeByN_H_S(long nodeId, boolean head, int status) 3920 throws com.liferay.portal.kernel.exception.SystemException { 3921 getPersistence().removeByN_H_S(nodeId, head, status); 3922 } 3923 3924 /** 3925 * Returns the number of wiki pages where nodeId = ? and head = ? and status = ?. 3926 * 3927 * @param nodeId the node ID 3928 * @param head the head 3929 * @param status the status 3930 * @return the number of matching wiki pages 3931 * @throws SystemException if a system exception occurred 3932 */ 3933 public static int countByN_H_S(long nodeId, boolean head, int status) 3934 throws com.liferay.portal.kernel.exception.SystemException { 3935 return getPersistence().countByN_H_S(nodeId, head, status); 3936 } 3937 3938 /** 3939 * Returns all the wiki pages where groupId = ? and userId = ? and nodeId = ? and status = ?. 3940 * 3941 * @param groupId the group ID 3942 * @param userId the user ID 3943 * @param nodeId the node ID 3944 * @param status the status 3945 * @return the matching wiki pages 3946 * @throws SystemException if a system exception occurred 3947 */ 3948 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_U_N_S( 3949 long groupId, long userId, long nodeId, int status) 3950 throws com.liferay.portal.kernel.exception.SystemException { 3951 return getPersistence().findByG_U_N_S(groupId, userId, nodeId, status); 3952 } 3953 3954 /** 3955 * Returns a range of all the wiki pages where groupId = ? and userId = ? and nodeId = ? and status = ?. 3956 * 3957 * <p> 3958 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3959 * </p> 3960 * 3961 * @param groupId the group ID 3962 * @param userId the user ID 3963 * @param nodeId the node ID 3964 * @param status the status 3965 * @param start the lower bound of the range of wiki pages 3966 * @param end the upper bound of the range of wiki pages (not inclusive) 3967 * @return the range of matching wiki pages 3968 * @throws SystemException if a system exception occurred 3969 */ 3970 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_U_N_S( 3971 long groupId, long userId, long nodeId, int status, int start, int end) 3972 throws com.liferay.portal.kernel.exception.SystemException { 3973 return getPersistence() 3974 .findByG_U_N_S(groupId, userId, nodeId, status, start, end); 3975 } 3976 3977 /** 3978 * Returns an ordered range of all the wiki pages where groupId = ? and userId = ? and nodeId = ? and status = ?. 3979 * 3980 * <p> 3981 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 3982 * </p> 3983 * 3984 * @param groupId the group ID 3985 * @param userId the user ID 3986 * @param nodeId the node ID 3987 * @param status the status 3988 * @param start the lower bound of the range of wiki pages 3989 * @param end the upper bound of the range of wiki pages (not inclusive) 3990 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3991 * @return the ordered range of matching wiki pages 3992 * @throws SystemException if a system exception occurred 3993 */ 3994 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_U_N_S( 3995 long groupId, long userId, long nodeId, int status, int start, int end, 3996 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3997 throws com.liferay.portal.kernel.exception.SystemException { 3998 return getPersistence() 3999 .findByG_U_N_S(groupId, userId, nodeId, status, start, end, 4000 orderByComparator); 4001 } 4002 4003 /** 4004 * Returns the first wiki page in the ordered set where groupId = ? and userId = ? and nodeId = ? and status = ?. 4005 * 4006 * @param groupId the group ID 4007 * @param userId the user ID 4008 * @param nodeId the node ID 4009 * @param status the status 4010 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4011 * @return the first matching wiki page 4012 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4013 * @throws SystemException if a system exception occurred 4014 */ 4015 public static com.liferay.portlet.wiki.model.WikiPage findByG_U_N_S_First( 4016 long groupId, long userId, long nodeId, int status, 4017 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4018 throws com.liferay.portal.kernel.exception.SystemException, 4019 com.liferay.portlet.wiki.NoSuchPageException { 4020 return getPersistence() 4021 .findByG_U_N_S_First(groupId, userId, nodeId, status, 4022 orderByComparator); 4023 } 4024 4025 /** 4026 * Returns the first wiki page in the ordered set where groupId = ? and userId = ? and nodeId = ? and status = ?. 4027 * 4028 * @param groupId the group ID 4029 * @param userId the user ID 4030 * @param nodeId the node ID 4031 * @param status the status 4032 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4033 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 4034 * @throws SystemException if a system exception occurred 4035 */ 4036 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_U_N_S_First( 4037 long groupId, long userId, long nodeId, int status, 4038 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4039 throws com.liferay.portal.kernel.exception.SystemException { 4040 return getPersistence() 4041 .fetchByG_U_N_S_First(groupId, userId, nodeId, status, 4042 orderByComparator); 4043 } 4044 4045 /** 4046 * Returns the last wiki page in the ordered set where groupId = ? and userId = ? and nodeId = ? and status = ?. 4047 * 4048 * @param groupId the group ID 4049 * @param userId the user ID 4050 * @param nodeId the node ID 4051 * @param status the status 4052 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4053 * @return the last matching wiki page 4054 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4055 * @throws SystemException if a system exception occurred 4056 */ 4057 public static com.liferay.portlet.wiki.model.WikiPage findByG_U_N_S_Last( 4058 long groupId, long userId, long nodeId, int status, 4059 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4060 throws com.liferay.portal.kernel.exception.SystemException, 4061 com.liferay.portlet.wiki.NoSuchPageException { 4062 return getPersistence() 4063 .findByG_U_N_S_Last(groupId, userId, nodeId, status, 4064 orderByComparator); 4065 } 4066 4067 /** 4068 * Returns the last wiki page in the ordered set where groupId = ? and userId = ? and nodeId = ? and status = ?. 4069 * 4070 * @param groupId the group ID 4071 * @param userId the user ID 4072 * @param nodeId the node ID 4073 * @param status the status 4074 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4075 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 4076 * @throws SystemException if a system exception occurred 4077 */ 4078 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_U_N_S_Last( 4079 long groupId, long userId, long nodeId, int status, 4080 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4081 throws com.liferay.portal.kernel.exception.SystemException { 4082 return getPersistence() 4083 .fetchByG_U_N_S_Last(groupId, userId, nodeId, status, 4084 orderByComparator); 4085 } 4086 4087 /** 4088 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and userId = ? and nodeId = ? and status = ?. 4089 * 4090 * @param pageId the primary key of the current wiki page 4091 * @param groupId the group ID 4092 * @param userId the user ID 4093 * @param nodeId the node ID 4094 * @param status the status 4095 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4096 * @return the previous, current, and next wiki page 4097 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4098 * @throws SystemException if a system exception occurred 4099 */ 4100 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_U_N_S_PrevAndNext( 4101 long pageId, long groupId, long userId, long nodeId, int status, 4102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4103 throws com.liferay.portal.kernel.exception.SystemException, 4104 com.liferay.portlet.wiki.NoSuchPageException { 4105 return getPersistence() 4106 .findByG_U_N_S_PrevAndNext(pageId, groupId, userId, nodeId, 4107 status, orderByComparator); 4108 } 4109 4110 /** 4111 * Returns all the wiki pages that the user has permission to view where groupId = ? and userId = ? and nodeId = ? and status = ?. 4112 * 4113 * @param groupId the group ID 4114 * @param userId the user ID 4115 * @param nodeId the node ID 4116 * @param status the status 4117 * @return the matching wiki pages that the user has permission to view 4118 * @throws SystemException if a system exception occurred 4119 */ 4120 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_U_N_S( 4121 long groupId, long userId, long nodeId, int status) 4122 throws com.liferay.portal.kernel.exception.SystemException { 4123 return getPersistence() 4124 .filterFindByG_U_N_S(groupId, userId, nodeId, status); 4125 } 4126 4127 /** 4128 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and userId = ? and nodeId = ? and status = ?. 4129 * 4130 * <p> 4131 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4132 * </p> 4133 * 4134 * @param groupId the group ID 4135 * @param userId the user ID 4136 * @param nodeId the node ID 4137 * @param status the status 4138 * @param start the lower bound of the range of wiki pages 4139 * @param end the upper bound of the range of wiki pages (not inclusive) 4140 * @return the range of matching wiki pages that the user has permission to view 4141 * @throws SystemException if a system exception occurred 4142 */ 4143 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_U_N_S( 4144 long groupId, long userId, long nodeId, int status, int start, int end) 4145 throws com.liferay.portal.kernel.exception.SystemException { 4146 return getPersistence() 4147 .filterFindByG_U_N_S(groupId, userId, nodeId, status, start, 4148 end); 4149 } 4150 4151 /** 4152 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and userId = ? and nodeId = ? and status = ?. 4153 * 4154 * <p> 4155 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4156 * </p> 4157 * 4158 * @param groupId the group ID 4159 * @param userId the user ID 4160 * @param nodeId the node ID 4161 * @param status the status 4162 * @param start the lower bound of the range of wiki pages 4163 * @param end the upper bound of the range of wiki pages (not inclusive) 4164 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4165 * @return the ordered range of matching wiki pages that the user has permission to view 4166 * @throws SystemException if a system exception occurred 4167 */ 4168 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_U_N_S( 4169 long groupId, long userId, long nodeId, int status, int start, int end, 4170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4171 throws com.liferay.portal.kernel.exception.SystemException { 4172 return getPersistence() 4173 .filterFindByG_U_N_S(groupId, userId, nodeId, status, start, 4174 end, orderByComparator); 4175 } 4176 4177 /** 4178 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and userId = ? and nodeId = ? and status = ?. 4179 * 4180 * @param pageId the primary key of the current wiki page 4181 * @param groupId the group ID 4182 * @param userId the user ID 4183 * @param nodeId the node ID 4184 * @param status the status 4185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4186 * @return the previous, current, and next wiki page 4187 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4188 * @throws SystemException if a system exception occurred 4189 */ 4190 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_U_N_S_PrevAndNext( 4191 long pageId, long groupId, long userId, long nodeId, int status, 4192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4193 throws com.liferay.portal.kernel.exception.SystemException, 4194 com.liferay.portlet.wiki.NoSuchPageException { 4195 return getPersistence() 4196 .filterFindByG_U_N_S_PrevAndNext(pageId, groupId, userId, 4197 nodeId, status, orderByComparator); 4198 } 4199 4200 /** 4201 * Removes all the wiki pages where groupId = ? and userId = ? and nodeId = ? and status = ? from the database. 4202 * 4203 * @param groupId the group ID 4204 * @param userId the user ID 4205 * @param nodeId the node ID 4206 * @param status the status 4207 * @throws SystemException if a system exception occurred 4208 */ 4209 public static void removeByG_U_N_S(long groupId, long userId, long nodeId, 4210 int status) throws com.liferay.portal.kernel.exception.SystemException { 4211 getPersistence().removeByG_U_N_S(groupId, userId, nodeId, status); 4212 } 4213 4214 /** 4215 * Returns the number of wiki pages where groupId = ? and userId = ? and nodeId = ? and status = ?. 4216 * 4217 * @param groupId the group ID 4218 * @param userId the user ID 4219 * @param nodeId the node ID 4220 * @param status the status 4221 * @return the number of matching wiki pages 4222 * @throws SystemException if a system exception occurred 4223 */ 4224 public static int countByG_U_N_S(long groupId, long userId, long nodeId, 4225 int status) throws com.liferay.portal.kernel.exception.SystemException { 4226 return getPersistence().countByG_U_N_S(groupId, userId, nodeId, status); 4227 } 4228 4229 /** 4230 * Returns the number of wiki pages that the user has permission to view where groupId = ? and userId = ? and nodeId = ? and status = ?. 4231 * 4232 * @param groupId the group ID 4233 * @param userId the user ID 4234 * @param nodeId the node ID 4235 * @param status the status 4236 * @return the number of matching wiki pages that the user has permission to view 4237 * @throws SystemException if a system exception occurred 4238 */ 4239 public static int filterCountByG_U_N_S(long groupId, long userId, 4240 long nodeId, int status) 4241 throws com.liferay.portal.kernel.exception.SystemException { 4242 return getPersistence() 4243 .filterCountByG_U_N_S(groupId, userId, nodeId, status); 4244 } 4245 4246 /** 4247 * Returns all the wiki pages where groupId = ? and nodeId = ? and title = ? and head = ?. 4248 * 4249 * @param groupId the group ID 4250 * @param nodeId the node ID 4251 * @param title the title 4252 * @param head the head 4253 * @return the matching wiki pages 4254 * @throws SystemException if a system exception occurred 4255 */ 4256 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_T_H( 4257 long groupId, long nodeId, java.lang.String title, boolean head) 4258 throws com.liferay.portal.kernel.exception.SystemException { 4259 return getPersistence().findByG_N_T_H(groupId, nodeId, title, head); 4260 } 4261 4262 /** 4263 * Returns a range of all the wiki pages where groupId = ? and nodeId = ? and title = ? and head = ?. 4264 * 4265 * <p> 4266 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4267 * </p> 4268 * 4269 * @param groupId the group ID 4270 * @param nodeId the node ID 4271 * @param title the title 4272 * @param head the head 4273 * @param start the lower bound of the range of wiki pages 4274 * @param end the upper bound of the range of wiki pages (not inclusive) 4275 * @return the range of matching wiki pages 4276 * @throws SystemException if a system exception occurred 4277 */ 4278 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_T_H( 4279 long groupId, long nodeId, java.lang.String title, boolean head, 4280 int start, int end) 4281 throws com.liferay.portal.kernel.exception.SystemException { 4282 return getPersistence() 4283 .findByG_N_T_H(groupId, nodeId, title, head, start, end); 4284 } 4285 4286 /** 4287 * Returns an ordered range of all the wiki pages where groupId = ? and nodeId = ? and title = ? and head = ?. 4288 * 4289 * <p> 4290 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4291 * </p> 4292 * 4293 * @param groupId the group ID 4294 * @param nodeId the node ID 4295 * @param title the title 4296 * @param head the head 4297 * @param start the lower bound of the range of wiki pages 4298 * @param end the upper bound of the range of wiki pages (not inclusive) 4299 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4300 * @return the ordered range of matching wiki pages 4301 * @throws SystemException if a system exception occurred 4302 */ 4303 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_T_H( 4304 long groupId, long nodeId, java.lang.String title, boolean head, 4305 int start, int end, 4306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4307 throws com.liferay.portal.kernel.exception.SystemException { 4308 return getPersistence() 4309 .findByG_N_T_H(groupId, nodeId, title, head, start, end, 4310 orderByComparator); 4311 } 4312 4313 /** 4314 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and title = ? and head = ?. 4315 * 4316 * @param groupId the group ID 4317 * @param nodeId the node ID 4318 * @param title the title 4319 * @param head the head 4320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4321 * @return the first matching wiki page 4322 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4323 * @throws SystemException if a system exception occurred 4324 */ 4325 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_T_H_First( 4326 long groupId, long nodeId, java.lang.String title, boolean head, 4327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4328 throws com.liferay.portal.kernel.exception.SystemException, 4329 com.liferay.portlet.wiki.NoSuchPageException { 4330 return getPersistence() 4331 .findByG_N_T_H_First(groupId, nodeId, title, head, 4332 orderByComparator); 4333 } 4334 4335 /** 4336 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and title = ? and head = ?. 4337 * 4338 * @param groupId the group ID 4339 * @param nodeId the node ID 4340 * @param title the title 4341 * @param head the head 4342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4343 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 4344 * @throws SystemException if a system exception occurred 4345 */ 4346 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_T_H_First( 4347 long groupId, long nodeId, java.lang.String title, boolean head, 4348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4349 throws com.liferay.portal.kernel.exception.SystemException { 4350 return getPersistence() 4351 .fetchByG_N_T_H_First(groupId, nodeId, title, head, 4352 orderByComparator); 4353 } 4354 4355 /** 4356 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and title = ? and head = ?. 4357 * 4358 * @param groupId the group ID 4359 * @param nodeId the node ID 4360 * @param title the title 4361 * @param head the head 4362 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4363 * @return the last matching wiki page 4364 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4365 * @throws SystemException if a system exception occurred 4366 */ 4367 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_T_H_Last( 4368 long groupId, long nodeId, java.lang.String title, boolean head, 4369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4370 throws com.liferay.portal.kernel.exception.SystemException, 4371 com.liferay.portlet.wiki.NoSuchPageException { 4372 return getPersistence() 4373 .findByG_N_T_H_Last(groupId, nodeId, title, head, 4374 orderByComparator); 4375 } 4376 4377 /** 4378 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and title = ? and head = ?. 4379 * 4380 * @param groupId the group ID 4381 * @param nodeId the node ID 4382 * @param title the title 4383 * @param head the head 4384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4385 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 4386 * @throws SystemException if a system exception occurred 4387 */ 4388 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_T_H_Last( 4389 long groupId, long nodeId, java.lang.String title, boolean head, 4390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4391 throws com.liferay.portal.kernel.exception.SystemException { 4392 return getPersistence() 4393 .fetchByG_N_T_H_Last(groupId, nodeId, title, head, 4394 orderByComparator); 4395 } 4396 4397 /** 4398 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and nodeId = ? and title = ? and head = ?. 4399 * 4400 * @param pageId the primary key of the current wiki page 4401 * @param groupId the group ID 4402 * @param nodeId the node ID 4403 * @param title the title 4404 * @param head the head 4405 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4406 * @return the previous, current, and next wiki page 4407 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4408 * @throws SystemException if a system exception occurred 4409 */ 4410 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_N_T_H_PrevAndNext( 4411 long pageId, long groupId, long nodeId, java.lang.String title, 4412 boolean head, 4413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4414 throws com.liferay.portal.kernel.exception.SystemException, 4415 com.liferay.portlet.wiki.NoSuchPageException { 4416 return getPersistence() 4417 .findByG_N_T_H_PrevAndNext(pageId, groupId, nodeId, title, 4418 head, orderByComparator); 4419 } 4420 4421 /** 4422 * Returns all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and title = ? and head = ?. 4423 * 4424 * @param groupId the group ID 4425 * @param nodeId the node ID 4426 * @param title the title 4427 * @param head the head 4428 * @return the matching wiki pages that the user has permission to view 4429 * @throws SystemException if a system exception occurred 4430 */ 4431 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_T_H( 4432 long groupId, long nodeId, java.lang.String title, boolean head) 4433 throws com.liferay.portal.kernel.exception.SystemException { 4434 return getPersistence().filterFindByG_N_T_H(groupId, nodeId, title, head); 4435 } 4436 4437 /** 4438 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and title = ? and head = ?. 4439 * 4440 * <p> 4441 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4442 * </p> 4443 * 4444 * @param groupId the group ID 4445 * @param nodeId the node ID 4446 * @param title the title 4447 * @param head the head 4448 * @param start the lower bound of the range of wiki pages 4449 * @param end the upper bound of the range of wiki pages (not inclusive) 4450 * @return the range of matching wiki pages that the user has permission to view 4451 * @throws SystemException if a system exception occurred 4452 */ 4453 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_T_H( 4454 long groupId, long nodeId, java.lang.String title, boolean head, 4455 int start, int end) 4456 throws com.liferay.portal.kernel.exception.SystemException { 4457 return getPersistence() 4458 .filterFindByG_N_T_H(groupId, nodeId, title, head, start, end); 4459 } 4460 4461 /** 4462 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and nodeId = ? and title = ? and head = ?. 4463 * 4464 * <p> 4465 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4466 * </p> 4467 * 4468 * @param groupId the group ID 4469 * @param nodeId the node ID 4470 * @param title the title 4471 * @param head the head 4472 * @param start the lower bound of the range of wiki pages 4473 * @param end the upper bound of the range of wiki pages (not inclusive) 4474 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4475 * @return the ordered range of matching wiki pages that the user has permission to view 4476 * @throws SystemException if a system exception occurred 4477 */ 4478 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_T_H( 4479 long groupId, long nodeId, java.lang.String title, boolean head, 4480 int start, int end, 4481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4482 throws com.liferay.portal.kernel.exception.SystemException { 4483 return getPersistence() 4484 .filterFindByG_N_T_H(groupId, nodeId, title, head, start, 4485 end, orderByComparator); 4486 } 4487 4488 /** 4489 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and title = ? and head = ?. 4490 * 4491 * @param pageId the primary key of the current wiki page 4492 * @param groupId the group ID 4493 * @param nodeId the node ID 4494 * @param title the title 4495 * @param head the head 4496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4497 * @return the previous, current, and next wiki page 4498 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4499 * @throws SystemException if a system exception occurred 4500 */ 4501 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_N_T_H_PrevAndNext( 4502 long pageId, long groupId, long nodeId, java.lang.String title, 4503 boolean head, 4504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4505 throws com.liferay.portal.kernel.exception.SystemException, 4506 com.liferay.portlet.wiki.NoSuchPageException { 4507 return getPersistence() 4508 .filterFindByG_N_T_H_PrevAndNext(pageId, groupId, nodeId, 4509 title, head, orderByComparator); 4510 } 4511 4512 /** 4513 * Removes all the wiki pages where groupId = ? and nodeId = ? and title = ? and head = ? from the database. 4514 * 4515 * @param groupId the group ID 4516 * @param nodeId the node ID 4517 * @param title the title 4518 * @param head the head 4519 * @throws SystemException if a system exception occurred 4520 */ 4521 public static void removeByG_N_T_H(long groupId, long nodeId, 4522 java.lang.String title, boolean head) 4523 throws com.liferay.portal.kernel.exception.SystemException { 4524 getPersistence().removeByG_N_T_H(groupId, nodeId, title, head); 4525 } 4526 4527 /** 4528 * Returns the number of wiki pages where groupId = ? and nodeId = ? and title = ? and head = ?. 4529 * 4530 * @param groupId the group ID 4531 * @param nodeId the node ID 4532 * @param title the title 4533 * @param head the head 4534 * @return the number of matching wiki pages 4535 * @throws SystemException if a system exception occurred 4536 */ 4537 public static int countByG_N_T_H(long groupId, long nodeId, 4538 java.lang.String title, boolean head) 4539 throws com.liferay.portal.kernel.exception.SystemException { 4540 return getPersistence().countByG_N_T_H(groupId, nodeId, title, head); 4541 } 4542 4543 /** 4544 * Returns the number of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and title = ? and head = ?. 4545 * 4546 * @param groupId the group ID 4547 * @param nodeId the node ID 4548 * @param title the title 4549 * @param head the head 4550 * @return the number of matching wiki pages that the user has permission to view 4551 * @throws SystemException if a system exception occurred 4552 */ 4553 public static int filterCountByG_N_T_H(long groupId, long nodeId, 4554 java.lang.String title, boolean head) 4555 throws com.liferay.portal.kernel.exception.SystemException { 4556 return getPersistence() 4557 .filterCountByG_N_T_H(groupId, nodeId, title, head); 4558 } 4559 4560 /** 4561 * Returns all the wiki pages where groupId = ? and nodeId = ? and head = ? and status = ?. 4562 * 4563 * @param groupId the group ID 4564 * @param nodeId the node ID 4565 * @param head the head 4566 * @param status the status 4567 * @return the matching wiki pages 4568 * @throws SystemException if a system exception occurred 4569 */ 4570 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_S( 4571 long groupId, long nodeId, boolean head, int status) 4572 throws com.liferay.portal.kernel.exception.SystemException { 4573 return getPersistence().findByG_N_H_S(groupId, nodeId, head, status); 4574 } 4575 4576 /** 4577 * Returns a range of all the wiki pages where groupId = ? and nodeId = ? and head = ? and status = ?. 4578 * 4579 * <p> 4580 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4581 * </p> 4582 * 4583 * @param groupId the group ID 4584 * @param nodeId the node ID 4585 * @param head the head 4586 * @param status the status 4587 * @param start the lower bound of the range of wiki pages 4588 * @param end the upper bound of the range of wiki pages (not inclusive) 4589 * @return the range of matching wiki pages 4590 * @throws SystemException if a system exception occurred 4591 */ 4592 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_S( 4593 long groupId, long nodeId, boolean head, int status, int start, int end) 4594 throws com.liferay.portal.kernel.exception.SystemException { 4595 return getPersistence() 4596 .findByG_N_H_S(groupId, nodeId, head, status, start, end); 4597 } 4598 4599 /** 4600 * Returns an ordered range of all the wiki pages where groupId = ? and nodeId = ? and head = ? and status = ?. 4601 * 4602 * <p> 4603 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4604 * </p> 4605 * 4606 * @param groupId the group ID 4607 * @param nodeId the node ID 4608 * @param head the head 4609 * @param status the status 4610 * @param start the lower bound of the range of wiki pages 4611 * @param end the upper bound of the range of wiki pages (not inclusive) 4612 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4613 * @return the ordered range of matching wiki pages 4614 * @throws SystemException if a system exception occurred 4615 */ 4616 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_S( 4617 long groupId, long nodeId, boolean head, int status, int start, 4618 int end, 4619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4620 throws com.liferay.portal.kernel.exception.SystemException { 4621 return getPersistence() 4622 .findByG_N_H_S(groupId, nodeId, head, status, start, end, 4623 orderByComparator); 4624 } 4625 4626 /** 4627 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and status = ?. 4628 * 4629 * @param groupId the group ID 4630 * @param nodeId the node ID 4631 * @param head the head 4632 * @param status the status 4633 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4634 * @return the first matching wiki page 4635 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4636 * @throws SystemException if a system exception occurred 4637 */ 4638 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_S_First( 4639 long groupId, long nodeId, boolean head, int status, 4640 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4641 throws com.liferay.portal.kernel.exception.SystemException, 4642 com.liferay.portlet.wiki.NoSuchPageException { 4643 return getPersistence() 4644 .findByG_N_H_S_First(groupId, nodeId, head, status, 4645 orderByComparator); 4646 } 4647 4648 /** 4649 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and status = ?. 4650 * 4651 * @param groupId the group ID 4652 * @param nodeId the node ID 4653 * @param head the head 4654 * @param status the status 4655 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4656 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 4657 * @throws SystemException if a system exception occurred 4658 */ 4659 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_S_First( 4660 long groupId, long nodeId, boolean head, int status, 4661 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4662 throws com.liferay.portal.kernel.exception.SystemException { 4663 return getPersistence() 4664 .fetchByG_N_H_S_First(groupId, nodeId, head, status, 4665 orderByComparator); 4666 } 4667 4668 /** 4669 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and status = ?. 4670 * 4671 * @param groupId the group ID 4672 * @param nodeId the node ID 4673 * @param head the head 4674 * @param status the status 4675 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4676 * @return the last matching wiki page 4677 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4678 * @throws SystemException if a system exception occurred 4679 */ 4680 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_S_Last( 4681 long groupId, long nodeId, boolean head, int status, 4682 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4683 throws com.liferay.portal.kernel.exception.SystemException, 4684 com.liferay.portlet.wiki.NoSuchPageException { 4685 return getPersistence() 4686 .findByG_N_H_S_Last(groupId, nodeId, head, status, 4687 orderByComparator); 4688 } 4689 4690 /** 4691 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and status = ?. 4692 * 4693 * @param groupId the group ID 4694 * @param nodeId the node ID 4695 * @param head the head 4696 * @param status the status 4697 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4698 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 4699 * @throws SystemException if a system exception occurred 4700 */ 4701 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_S_Last( 4702 long groupId, long nodeId, boolean head, int status, 4703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4704 throws com.liferay.portal.kernel.exception.SystemException { 4705 return getPersistence() 4706 .fetchByG_N_H_S_Last(groupId, nodeId, head, status, 4707 orderByComparator); 4708 } 4709 4710 /** 4711 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and status = ?. 4712 * 4713 * @param pageId the primary key of the current wiki page 4714 * @param groupId the group ID 4715 * @param nodeId the node ID 4716 * @param head the head 4717 * @param status the status 4718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4719 * @return the previous, current, and next wiki page 4720 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4721 * @throws SystemException if a system exception occurred 4722 */ 4723 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_N_H_S_PrevAndNext( 4724 long pageId, long groupId, long nodeId, boolean head, int status, 4725 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4726 throws com.liferay.portal.kernel.exception.SystemException, 4727 com.liferay.portlet.wiki.NoSuchPageException { 4728 return getPersistence() 4729 .findByG_N_H_S_PrevAndNext(pageId, groupId, nodeId, head, 4730 status, orderByComparator); 4731 } 4732 4733 /** 4734 * Returns all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and status = ?. 4735 * 4736 * @param groupId the group ID 4737 * @param nodeId the node ID 4738 * @param head the head 4739 * @param status the status 4740 * @return the matching wiki pages that the user has permission to view 4741 * @throws SystemException if a system exception occurred 4742 */ 4743 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_S( 4744 long groupId, long nodeId, boolean head, int status) 4745 throws com.liferay.portal.kernel.exception.SystemException { 4746 return getPersistence() 4747 .filterFindByG_N_H_S(groupId, nodeId, head, status); 4748 } 4749 4750 /** 4751 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and status = ?. 4752 * 4753 * <p> 4754 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4755 * </p> 4756 * 4757 * @param groupId the group ID 4758 * @param nodeId the node ID 4759 * @param head the head 4760 * @param status the status 4761 * @param start the lower bound of the range of wiki pages 4762 * @param end the upper bound of the range of wiki pages (not inclusive) 4763 * @return the range of matching wiki pages that the user has permission to view 4764 * @throws SystemException if a system exception occurred 4765 */ 4766 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_S( 4767 long groupId, long nodeId, boolean head, int status, int start, int end) 4768 throws com.liferay.portal.kernel.exception.SystemException { 4769 return getPersistence() 4770 .filterFindByG_N_H_S(groupId, nodeId, head, status, start, 4771 end); 4772 } 4773 4774 /** 4775 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and nodeId = ? and head = ? and status = ?. 4776 * 4777 * <p> 4778 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4779 * </p> 4780 * 4781 * @param groupId the group ID 4782 * @param nodeId the node ID 4783 * @param head the head 4784 * @param status the status 4785 * @param start the lower bound of the range of wiki pages 4786 * @param end the upper bound of the range of wiki pages (not inclusive) 4787 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4788 * @return the ordered range of matching wiki pages that the user has permission to view 4789 * @throws SystemException if a system exception occurred 4790 */ 4791 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_S( 4792 long groupId, long nodeId, boolean head, int status, int start, 4793 int end, 4794 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4795 throws com.liferay.portal.kernel.exception.SystemException { 4796 return getPersistence() 4797 .filterFindByG_N_H_S(groupId, nodeId, head, status, start, 4798 end, orderByComparator); 4799 } 4800 4801 /** 4802 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and status = ?. 4803 * 4804 * @param pageId the primary key of the current wiki page 4805 * @param groupId the group ID 4806 * @param nodeId the node ID 4807 * @param head the head 4808 * @param status the status 4809 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4810 * @return the previous, current, and next wiki page 4811 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 4812 * @throws SystemException if a system exception occurred 4813 */ 4814 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_N_H_S_PrevAndNext( 4815 long pageId, long groupId, long nodeId, boolean head, int status, 4816 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4817 throws com.liferay.portal.kernel.exception.SystemException, 4818 com.liferay.portlet.wiki.NoSuchPageException { 4819 return getPersistence() 4820 .filterFindByG_N_H_S_PrevAndNext(pageId, groupId, nodeId, 4821 head, status, orderByComparator); 4822 } 4823 4824 /** 4825 * Removes all the wiki pages where groupId = ? and nodeId = ? and head = ? and status = ? from the database. 4826 * 4827 * @param groupId the group ID 4828 * @param nodeId the node ID 4829 * @param head the head 4830 * @param status the status 4831 * @throws SystemException if a system exception occurred 4832 */ 4833 public static void removeByG_N_H_S(long groupId, long nodeId, boolean head, 4834 int status) throws com.liferay.portal.kernel.exception.SystemException { 4835 getPersistence().removeByG_N_H_S(groupId, nodeId, head, status); 4836 } 4837 4838 /** 4839 * Returns the number of wiki pages where groupId = ? and nodeId = ? and head = ? and status = ?. 4840 * 4841 * @param groupId the group ID 4842 * @param nodeId the node ID 4843 * @param head the head 4844 * @param status the status 4845 * @return the number of matching wiki pages 4846 * @throws SystemException if a system exception occurred 4847 */ 4848 public static int countByG_N_H_S(long groupId, long nodeId, boolean head, 4849 int status) throws com.liferay.portal.kernel.exception.SystemException { 4850 return getPersistence().countByG_N_H_S(groupId, nodeId, head, status); 4851 } 4852 4853 /** 4854 * Returns the number of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and status = ?. 4855 * 4856 * @param groupId the group ID 4857 * @param nodeId the node ID 4858 * @param head the head 4859 * @param status the status 4860 * @return the number of matching wiki pages that the user has permission to view 4861 * @throws SystemException if a system exception occurred 4862 */ 4863 public static int filterCountByG_N_H_S(long groupId, long nodeId, 4864 boolean head, int status) 4865 throws com.liferay.portal.kernel.exception.SystemException { 4866 return getPersistence() 4867 .filterCountByG_N_H_S(groupId, nodeId, head, status); 4868 } 4869 4870 /** 4871 * Returns all the wiki pages where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4872 * 4873 * @param nodeId the node ID 4874 * @param head the head 4875 * @param parentTitle the parent title 4876 * @param status the status 4877 * @return the matching wiki pages 4878 * @throws SystemException if a system exception occurred 4879 */ 4880 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P_S( 4881 long nodeId, boolean head, java.lang.String parentTitle, int status) 4882 throws com.liferay.portal.kernel.exception.SystemException { 4883 return getPersistence().findByN_H_P_S(nodeId, head, parentTitle, status); 4884 } 4885 4886 /** 4887 * Returns a range of all the wiki pages where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4888 * 4889 * <p> 4890 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4891 * </p> 4892 * 4893 * @param nodeId the node ID 4894 * @param head the head 4895 * @param parentTitle the parent title 4896 * @param status the status 4897 * @param start the lower bound of the range of wiki pages 4898 * @param end the upper bound of the range of wiki pages (not inclusive) 4899 * @return the range of matching wiki pages 4900 * @throws SystemException if a system exception occurred 4901 */ 4902 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P_S( 4903 long nodeId, boolean head, java.lang.String parentTitle, int status, 4904 int start, int end) 4905 throws com.liferay.portal.kernel.exception.SystemException { 4906 return getPersistence() 4907 .findByN_H_P_S(nodeId, head, parentTitle, status, start, end); 4908 } 4909 4910 /** 4911 * Returns an ordered range of all the wiki pages where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4912 * 4913 * <p> 4914 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 4915 * </p> 4916 * 4917 * @param nodeId the node ID 4918 * @param head the head 4919 * @param parentTitle the parent title 4920 * @param status the status 4921 * @param start the lower bound of the range of wiki pages 4922 * @param end the upper bound of the range of wiki pages (not inclusive) 4923 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 4924 * @return the ordered range of matching wiki pages 4925 * @throws SystemException if a system exception occurred 4926 */ 4927 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P_S( 4928 long nodeId, boolean head, java.lang.String parentTitle, int status, 4929 int start, int end, 4930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4931 throws com.liferay.portal.kernel.exception.SystemException { 4932 return getPersistence() 4933 .findByN_H_P_S(nodeId, head, parentTitle, status, start, 4934 end, orderByComparator); 4935 } 4936 4937 /** 4938 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4939 * 4940 * @param nodeId the node ID 4941 * @param head the head 4942 * @param parentTitle the parent title 4943 * @param status the status 4944 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4945 * @return the first matching wiki page 4946 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4947 * @throws SystemException if a system exception occurred 4948 */ 4949 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_S_First( 4950 long nodeId, boolean head, java.lang.String parentTitle, int status, 4951 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4952 throws com.liferay.portal.kernel.exception.SystemException, 4953 com.liferay.portlet.wiki.NoSuchPageException { 4954 return getPersistence() 4955 .findByN_H_P_S_First(nodeId, head, parentTitle, status, 4956 orderByComparator); 4957 } 4958 4959 /** 4960 * Returns the first wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4961 * 4962 * @param nodeId the node ID 4963 * @param head the head 4964 * @param parentTitle the parent title 4965 * @param status the status 4966 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4967 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 4968 * @throws SystemException if a system exception occurred 4969 */ 4970 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_P_S_First( 4971 long nodeId, boolean head, java.lang.String parentTitle, int status, 4972 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4973 throws com.liferay.portal.kernel.exception.SystemException { 4974 return getPersistence() 4975 .fetchByN_H_P_S_First(nodeId, head, parentTitle, status, 4976 orderByComparator); 4977 } 4978 4979 /** 4980 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ? and status = ?. 4981 * 4982 * @param nodeId the node ID 4983 * @param head the head 4984 * @param parentTitle the parent title 4985 * @param status the status 4986 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 4987 * @return the last matching wiki page 4988 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 4989 * @throws SystemException if a system exception occurred 4990 */ 4991 public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_S_Last( 4992 long nodeId, boolean head, java.lang.String parentTitle, int status, 4993 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 4994 throws com.liferay.portal.kernel.exception.SystemException, 4995 com.liferay.portlet.wiki.NoSuchPageException { 4996 return getPersistence() 4997 .findByN_H_P_S_Last(nodeId, head, parentTitle, status, 4998 orderByComparator); 4999 } 5000 5001 /** 5002 * Returns the last wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ? and status = ?. 5003 * 5004 * @param nodeId the node ID 5005 * @param head the head 5006 * @param parentTitle the parent title 5007 * @param status the status 5008 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5009 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 5010 * @throws SystemException if a system exception occurred 5011 */ 5012 public static com.liferay.portlet.wiki.model.WikiPage fetchByN_H_P_S_Last( 5013 long nodeId, boolean head, java.lang.String parentTitle, int status, 5014 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5015 throws com.liferay.portal.kernel.exception.SystemException { 5016 return getPersistence() 5017 .fetchByN_H_P_S_Last(nodeId, head, parentTitle, status, 5018 orderByComparator); 5019 } 5020 5021 /** 5022 * Returns the wiki pages before and after the current wiki page in the ordered set where nodeId = ? and head = ? and parentTitle = ? and status = ?. 5023 * 5024 * @param pageId the primary key of the current wiki page 5025 * @param nodeId the node ID 5026 * @param head the head 5027 * @param parentTitle the parent title 5028 * @param status the status 5029 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5030 * @return the previous, current, and next wiki page 5031 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 5032 * @throws SystemException if a system exception occurred 5033 */ 5034 public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_P_S_PrevAndNext( 5035 long pageId, long nodeId, boolean head, java.lang.String parentTitle, 5036 int status, 5037 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5038 throws com.liferay.portal.kernel.exception.SystemException, 5039 com.liferay.portlet.wiki.NoSuchPageException { 5040 return getPersistence() 5041 .findByN_H_P_S_PrevAndNext(pageId, nodeId, head, 5042 parentTitle, status, orderByComparator); 5043 } 5044 5045 /** 5046 * Removes all the wiki pages where nodeId = ? and head = ? and parentTitle = ? and status = ? from the database. 5047 * 5048 * @param nodeId the node ID 5049 * @param head the head 5050 * @param parentTitle the parent title 5051 * @param status the status 5052 * @throws SystemException if a system exception occurred 5053 */ 5054 public static void removeByN_H_P_S(long nodeId, boolean head, 5055 java.lang.String parentTitle, int status) 5056 throws com.liferay.portal.kernel.exception.SystemException { 5057 getPersistence().removeByN_H_P_S(nodeId, head, parentTitle, status); 5058 } 5059 5060 /** 5061 * Returns the number of wiki pages where nodeId = ? and head = ? and parentTitle = ? and status = ?. 5062 * 5063 * @param nodeId the node ID 5064 * @param head the head 5065 * @param parentTitle the parent title 5066 * @param status the status 5067 * @return the number of matching wiki pages 5068 * @throws SystemException if a system exception occurred 5069 */ 5070 public static int countByN_H_P_S(long nodeId, boolean head, 5071 java.lang.String parentTitle, int status) 5072 throws com.liferay.portal.kernel.exception.SystemException { 5073 return getPersistence().countByN_H_P_S(nodeId, head, parentTitle, status); 5074 } 5075 5076 /** 5077 * Returns all the wiki pages where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5078 * 5079 * @param groupId the group ID 5080 * @param nodeId the node ID 5081 * @param head the head 5082 * @param parentTitle the parent title 5083 * @param status the status 5084 * @return the matching wiki pages 5085 * @throws SystemException if a system exception occurred 5086 */ 5087 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_P_S( 5088 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5089 int status) throws com.liferay.portal.kernel.exception.SystemException { 5090 return getPersistence() 5091 .findByG_N_H_P_S(groupId, nodeId, head, parentTitle, status); 5092 } 5093 5094 /** 5095 * Returns a range of all the wiki pages where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5096 * 5097 * <p> 5098 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5099 * </p> 5100 * 5101 * @param groupId the group ID 5102 * @param nodeId the node ID 5103 * @param head the head 5104 * @param parentTitle the parent title 5105 * @param status the status 5106 * @param start the lower bound of the range of wiki pages 5107 * @param end the upper bound of the range of wiki pages (not inclusive) 5108 * @return the range of matching wiki pages 5109 * @throws SystemException if a system exception occurred 5110 */ 5111 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_P_S( 5112 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5113 int status, int start, int end) 5114 throws com.liferay.portal.kernel.exception.SystemException { 5115 return getPersistence() 5116 .findByG_N_H_P_S(groupId, nodeId, head, parentTitle, status, 5117 start, end); 5118 } 5119 5120 /** 5121 * Returns an ordered range of all the wiki pages where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5122 * 5123 * <p> 5124 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5125 * </p> 5126 * 5127 * @param groupId the group ID 5128 * @param nodeId the node ID 5129 * @param head the head 5130 * @param parentTitle the parent title 5131 * @param status the status 5132 * @param start the lower bound of the range of wiki pages 5133 * @param end the upper bound of the range of wiki pages (not inclusive) 5134 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 5135 * @return the ordered range of matching wiki pages 5136 * @throws SystemException if a system exception occurred 5137 */ 5138 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_P_S( 5139 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5140 int status, int start, int end, 5141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5142 throws com.liferay.portal.kernel.exception.SystemException { 5143 return getPersistence() 5144 .findByG_N_H_P_S(groupId, nodeId, head, parentTitle, status, 5145 start, end, orderByComparator); 5146 } 5147 5148 /** 5149 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5150 * 5151 * @param groupId the group ID 5152 * @param nodeId the node ID 5153 * @param head the head 5154 * @param parentTitle the parent title 5155 * @param status the status 5156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5157 * @return the first matching wiki page 5158 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 5159 * @throws SystemException if a system exception occurred 5160 */ 5161 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_P_S_First( 5162 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5163 int status, 5164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5165 throws com.liferay.portal.kernel.exception.SystemException, 5166 com.liferay.portlet.wiki.NoSuchPageException { 5167 return getPersistence() 5168 .findByG_N_H_P_S_First(groupId, nodeId, head, parentTitle, 5169 status, orderByComparator); 5170 } 5171 5172 /** 5173 * Returns the first wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5174 * 5175 * @param groupId the group ID 5176 * @param nodeId the node ID 5177 * @param head the head 5178 * @param parentTitle the parent title 5179 * @param status the status 5180 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5181 * @return the first matching wiki page, or <code>null</code> if a matching wiki page could not be found 5182 * @throws SystemException if a system exception occurred 5183 */ 5184 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_P_S_First( 5185 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5186 int status, 5187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5188 throws com.liferay.portal.kernel.exception.SystemException { 5189 return getPersistence() 5190 .fetchByG_N_H_P_S_First(groupId, nodeId, head, parentTitle, 5191 status, orderByComparator); 5192 } 5193 5194 /** 5195 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5196 * 5197 * @param groupId the group ID 5198 * @param nodeId the node ID 5199 * @param head the head 5200 * @param parentTitle the parent title 5201 * @param status the status 5202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5203 * @return the last matching wiki page 5204 * @throws com.liferay.portlet.wiki.NoSuchPageException if a matching wiki page could not be found 5205 * @throws SystemException if a system exception occurred 5206 */ 5207 public static com.liferay.portlet.wiki.model.WikiPage findByG_N_H_P_S_Last( 5208 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5209 int status, 5210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5211 throws com.liferay.portal.kernel.exception.SystemException, 5212 com.liferay.portlet.wiki.NoSuchPageException { 5213 return getPersistence() 5214 .findByG_N_H_P_S_Last(groupId, nodeId, head, parentTitle, 5215 status, orderByComparator); 5216 } 5217 5218 /** 5219 * Returns the last wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5220 * 5221 * @param groupId the group ID 5222 * @param nodeId the node ID 5223 * @param head the head 5224 * @param parentTitle the parent title 5225 * @param status the status 5226 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5227 * @return the last matching wiki page, or <code>null</code> if a matching wiki page could not be found 5228 * @throws SystemException if a system exception occurred 5229 */ 5230 public static com.liferay.portlet.wiki.model.WikiPage fetchByG_N_H_P_S_Last( 5231 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5232 int status, 5233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5234 throws com.liferay.portal.kernel.exception.SystemException { 5235 return getPersistence() 5236 .fetchByG_N_H_P_S_Last(groupId, nodeId, head, parentTitle, 5237 status, orderByComparator); 5238 } 5239 5240 /** 5241 * Returns the wiki pages before and after the current wiki page in the ordered set where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5242 * 5243 * @param pageId the primary key of the current wiki page 5244 * @param groupId the group ID 5245 * @param nodeId the node ID 5246 * @param head the head 5247 * @param parentTitle the parent title 5248 * @param status the status 5249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5250 * @return the previous, current, and next wiki page 5251 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 5252 * @throws SystemException if a system exception occurred 5253 */ 5254 public static com.liferay.portlet.wiki.model.WikiPage[] findByG_N_H_P_S_PrevAndNext( 5255 long pageId, long groupId, long nodeId, boolean head, 5256 java.lang.String parentTitle, int status, 5257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5258 throws com.liferay.portal.kernel.exception.SystemException, 5259 com.liferay.portlet.wiki.NoSuchPageException { 5260 return getPersistence() 5261 .findByG_N_H_P_S_PrevAndNext(pageId, groupId, nodeId, head, 5262 parentTitle, status, orderByComparator); 5263 } 5264 5265 /** 5266 * Returns all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5267 * 5268 * @param groupId the group ID 5269 * @param nodeId the node ID 5270 * @param head the head 5271 * @param parentTitle the parent title 5272 * @param status the status 5273 * @return the matching wiki pages that the user has permission to view 5274 * @throws SystemException if a system exception occurred 5275 */ 5276 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_P_S( 5277 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5278 int status) throws com.liferay.portal.kernel.exception.SystemException { 5279 return getPersistence() 5280 .filterFindByG_N_H_P_S(groupId, nodeId, head, parentTitle, 5281 status); 5282 } 5283 5284 /** 5285 * Returns a range of all the wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5286 * 5287 * <p> 5288 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5289 * </p> 5290 * 5291 * @param groupId the group ID 5292 * @param nodeId the node ID 5293 * @param head the head 5294 * @param parentTitle the parent title 5295 * @param status the status 5296 * @param start the lower bound of the range of wiki pages 5297 * @param end the upper bound of the range of wiki pages (not inclusive) 5298 * @return the range of matching wiki pages that the user has permission to view 5299 * @throws SystemException if a system exception occurred 5300 */ 5301 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_P_S( 5302 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5303 int status, int start, int end) 5304 throws com.liferay.portal.kernel.exception.SystemException { 5305 return getPersistence() 5306 .filterFindByG_N_H_P_S(groupId, nodeId, head, parentTitle, 5307 status, start, end); 5308 } 5309 5310 /** 5311 * Returns an ordered range of all the wiki pages that the user has permissions to view where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5312 * 5313 * <p> 5314 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5315 * </p> 5316 * 5317 * @param groupId the group ID 5318 * @param nodeId the node ID 5319 * @param head the head 5320 * @param parentTitle the parent title 5321 * @param status the status 5322 * @param start the lower bound of the range of wiki pages 5323 * @param end the upper bound of the range of wiki pages (not inclusive) 5324 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 5325 * @return the ordered range of matching wiki pages that the user has permission to view 5326 * @throws SystemException if a system exception occurred 5327 */ 5328 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_P_S( 5329 long groupId, long nodeId, boolean head, java.lang.String parentTitle, 5330 int status, int start, int end, 5331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5332 throws com.liferay.portal.kernel.exception.SystemException { 5333 return getPersistence() 5334 .filterFindByG_N_H_P_S(groupId, nodeId, head, parentTitle, 5335 status, start, end, orderByComparator); 5336 } 5337 5338 /** 5339 * Returns the wiki pages before and after the current wiki page in the ordered set of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5340 * 5341 * @param pageId the primary key of the current wiki page 5342 * @param groupId the group ID 5343 * @param nodeId the node ID 5344 * @param head the head 5345 * @param parentTitle the parent title 5346 * @param status the status 5347 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 5348 * @return the previous, current, and next wiki page 5349 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 5350 * @throws SystemException if a system exception occurred 5351 */ 5352 public static com.liferay.portlet.wiki.model.WikiPage[] filterFindByG_N_H_P_S_PrevAndNext( 5353 long pageId, long groupId, long nodeId, boolean head, 5354 java.lang.String parentTitle, int status, 5355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5356 throws com.liferay.portal.kernel.exception.SystemException, 5357 com.liferay.portlet.wiki.NoSuchPageException { 5358 return getPersistence() 5359 .filterFindByG_N_H_P_S_PrevAndNext(pageId, groupId, nodeId, 5360 head, parentTitle, status, orderByComparator); 5361 } 5362 5363 /** 5364 * Removes all the wiki pages where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ? from the database. 5365 * 5366 * @param groupId the group ID 5367 * @param nodeId the node ID 5368 * @param head the head 5369 * @param parentTitle the parent title 5370 * @param status the status 5371 * @throws SystemException if a system exception occurred 5372 */ 5373 public static void removeByG_N_H_P_S(long groupId, long nodeId, 5374 boolean head, java.lang.String parentTitle, int status) 5375 throws com.liferay.portal.kernel.exception.SystemException { 5376 getPersistence() 5377 .removeByG_N_H_P_S(groupId, nodeId, head, parentTitle, status); 5378 } 5379 5380 /** 5381 * Returns the number of wiki pages where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5382 * 5383 * @param groupId the group ID 5384 * @param nodeId the node ID 5385 * @param head the head 5386 * @param parentTitle the parent title 5387 * @param status the status 5388 * @return the number of matching wiki pages 5389 * @throws SystemException if a system exception occurred 5390 */ 5391 public static int countByG_N_H_P_S(long groupId, long nodeId, boolean head, 5392 java.lang.String parentTitle, int status) 5393 throws com.liferay.portal.kernel.exception.SystemException { 5394 return getPersistence() 5395 .countByG_N_H_P_S(groupId, nodeId, head, parentTitle, status); 5396 } 5397 5398 /** 5399 * Returns the number of wiki pages that the user has permission to view where groupId = ? and nodeId = ? and head = ? and parentTitle = ? and status = ?. 5400 * 5401 * @param groupId the group ID 5402 * @param nodeId the node ID 5403 * @param head the head 5404 * @param parentTitle the parent title 5405 * @param status the status 5406 * @return the number of matching wiki pages that the user has permission to view 5407 * @throws SystemException if a system exception occurred 5408 */ 5409 public static int filterCountByG_N_H_P_S(long groupId, long nodeId, 5410 boolean head, java.lang.String parentTitle, int status) 5411 throws com.liferay.portal.kernel.exception.SystemException { 5412 return getPersistence() 5413 .filterCountByG_N_H_P_S(groupId, nodeId, head, parentTitle, 5414 status); 5415 } 5416 5417 /** 5418 * Caches the wiki page in the entity cache if it is enabled. 5419 * 5420 * @param wikiPage the wiki page 5421 */ 5422 public static void cacheResult( 5423 com.liferay.portlet.wiki.model.WikiPage wikiPage) { 5424 getPersistence().cacheResult(wikiPage); 5425 } 5426 5427 /** 5428 * Caches the wiki pages in the entity cache if it is enabled. 5429 * 5430 * @param wikiPages the wiki pages 5431 */ 5432 public static void cacheResult( 5433 java.util.List<com.liferay.portlet.wiki.model.WikiPage> wikiPages) { 5434 getPersistence().cacheResult(wikiPages); 5435 } 5436 5437 /** 5438 * Creates a new wiki page with the primary key. Does not add the wiki page to the database. 5439 * 5440 * @param pageId the primary key for the new wiki page 5441 * @return the new wiki page 5442 */ 5443 public static com.liferay.portlet.wiki.model.WikiPage create(long pageId) { 5444 return getPersistence().create(pageId); 5445 } 5446 5447 /** 5448 * Removes the wiki page with the primary key from the database. Also notifies the appropriate model listeners. 5449 * 5450 * @param pageId the primary key of the wiki page 5451 * @return the wiki page that was removed 5452 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 5453 * @throws SystemException if a system exception occurred 5454 */ 5455 public static com.liferay.portlet.wiki.model.WikiPage remove(long pageId) 5456 throws com.liferay.portal.kernel.exception.SystemException, 5457 com.liferay.portlet.wiki.NoSuchPageException { 5458 return getPersistence().remove(pageId); 5459 } 5460 5461 public static com.liferay.portlet.wiki.model.WikiPage updateImpl( 5462 com.liferay.portlet.wiki.model.WikiPage wikiPage) 5463 throws com.liferay.portal.kernel.exception.SystemException { 5464 return getPersistence().updateImpl(wikiPage); 5465 } 5466 5467 /** 5468 * Returns the wiki page with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchPageException} if it could not be found. 5469 * 5470 * @param pageId the primary key of the wiki page 5471 * @return the wiki page 5472 * @throws com.liferay.portlet.wiki.NoSuchPageException if a wiki page with the primary key could not be found 5473 * @throws SystemException if a system exception occurred 5474 */ 5475 public static com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey( 5476 long pageId) 5477 throws com.liferay.portal.kernel.exception.SystemException, 5478 com.liferay.portlet.wiki.NoSuchPageException { 5479 return getPersistence().findByPrimaryKey(pageId); 5480 } 5481 5482 /** 5483 * Returns the wiki page with the primary key or returns <code>null</code> if it could not be found. 5484 * 5485 * @param pageId the primary key of the wiki page 5486 * @return the wiki page, or <code>null</code> if a wiki page with the primary key could not be found 5487 * @throws SystemException if a system exception occurred 5488 */ 5489 public static com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey( 5490 long pageId) throws com.liferay.portal.kernel.exception.SystemException { 5491 return getPersistence().fetchByPrimaryKey(pageId); 5492 } 5493 5494 /** 5495 * Returns all the wiki pages. 5496 * 5497 * @return the wiki pages 5498 * @throws SystemException if a system exception occurred 5499 */ 5500 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll() 5501 throws com.liferay.portal.kernel.exception.SystemException { 5502 return getPersistence().findAll(); 5503 } 5504 5505 /** 5506 * Returns a range of all the wiki pages. 5507 * 5508 * <p> 5509 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5510 * </p> 5511 * 5512 * @param start the lower bound of the range of wiki pages 5513 * @param end the upper bound of the range of wiki pages (not inclusive) 5514 * @return the range of wiki pages 5515 * @throws SystemException if a system exception occurred 5516 */ 5517 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll( 5518 int start, int end) 5519 throws com.liferay.portal.kernel.exception.SystemException { 5520 return getPersistence().findAll(start, end); 5521 } 5522 5523 /** 5524 * Returns an ordered range of all the wiki pages. 5525 * 5526 * <p> 5527 * 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.portlet.wiki.model.impl.WikiPageModelImpl}. 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. 5528 * </p> 5529 * 5530 * @param start the lower bound of the range of wiki pages 5531 * @param end the upper bound of the range of wiki pages (not inclusive) 5532 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 5533 * @return the ordered range of wiki pages 5534 * @throws SystemException if a system exception occurred 5535 */ 5536 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll( 5537 int start, int end, 5538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 5539 throws com.liferay.portal.kernel.exception.SystemException { 5540 return getPersistence().findAll(start, end, orderByComparator); 5541 } 5542 5543 /** 5544 * Removes all the wiki pages from the database. 5545 * 5546 * @throws SystemException if a system exception occurred 5547 */ 5548 public static void removeAll() 5549 throws com.liferay.portal.kernel.exception.SystemException { 5550 getPersistence().removeAll(); 5551 } 5552 5553 /** 5554 * Returns the number of wiki pages. 5555 * 5556 * @return the number of wiki pages 5557 * @throws SystemException if a system exception occurred 5558 */ 5559 public static int countAll() 5560 throws com.liferay.portal.kernel.exception.SystemException { 5561 return getPersistence().countAll(); 5562 } 5563 5564 public static WikiPagePersistence getPersistence() { 5565 if (_persistence == null) { 5566 _persistence = (WikiPagePersistence)PortalBeanLocatorUtil.locate(WikiPagePersistence.class.getName()); 5567 5568 ReferenceRegistry.registerReference(WikiPageUtil.class, 5569 "_persistence"); 5570 } 5571 5572 return _persistence; 5573 } 5574 5575 /** 5576 * @deprecated As of 6.2.0 5577 */ 5578 public void setPersistence(WikiPagePersistence persistence) { 5579 } 5580 5581 private static WikiPagePersistence _persistence; 5582 }