001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.wiki.model.WikiNode; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the wiki node service. This utility wraps {@link WikiNodePersistenceImpl} 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see WikiNodePersistence 038 * @see WikiNodePersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class WikiNodeUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(WikiNode wikiNode) { 060 getPersistence().clearCache(wikiNode); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery) { 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<WikiNode> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<WikiNode> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator<WikiNode> orderByComparator) { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static WikiNode update(WikiNode wikiNode) { 100 return getPersistence().update(wikiNode); 101 } 102 103 /** 104 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 105 */ 106 public static WikiNode update(WikiNode wikiNode, 107 ServiceContext serviceContext) { 108 return getPersistence().update(wikiNode, serviceContext); 109 } 110 111 /** 112 * Returns all the wiki nodes where uuid = ?. 113 * 114 * @param uuid the uuid 115 * @return the matching wiki nodes 116 */ 117 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 118 java.lang.String uuid) { 119 return getPersistence().findByUuid(uuid); 120 } 121 122 /** 123 * Returns a range of all the wiki nodes where uuid = ?. 124 * 125 * <p> 126 * 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.WikiNodeModelImpl}. 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. 127 * </p> 128 * 129 * @param uuid the uuid 130 * @param start the lower bound of the range of wiki nodes 131 * @param end the upper bound of the range of wiki nodes (not inclusive) 132 * @return the range of matching wiki nodes 133 */ 134 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 135 java.lang.String uuid, int start, int end) { 136 return getPersistence().findByUuid(uuid, start, end); 137 } 138 139 /** 140 * Returns an ordered range of all the wiki nodes where uuid = ?. 141 * 142 * <p> 143 * 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.WikiNodeModelImpl}. 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. 144 * </p> 145 * 146 * @param uuid the uuid 147 * @param start the lower bound of the range of wiki nodes 148 * @param end the upper bound of the range of wiki nodes (not inclusive) 149 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 150 * @return the ordered range of matching wiki nodes 151 */ 152 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 153 java.lang.String uuid, int start, int end, 154 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 155 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 156 } 157 158 /** 159 * Returns the first wiki node in the ordered set where uuid = ?. 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching wiki node 164 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 165 */ 166 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 167 java.lang.String uuid, 168 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 169 throws com.liferay.portlet.wiki.NoSuchNodeException { 170 return getPersistence().findByUuid_First(uuid, orderByComparator); 171 } 172 173 /** 174 * Returns the first wiki node in the ordered set where uuid = ?. 175 * 176 * @param uuid the uuid 177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 178 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 179 */ 180 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_First( 181 java.lang.String uuid, 182 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 183 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 184 } 185 186 /** 187 * Returns the last wiki node in the ordered set where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the last matching wiki node 192 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 193 */ 194 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 195 java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 197 throws com.liferay.portlet.wiki.NoSuchNodeException { 198 return getPersistence().findByUuid_Last(uuid, orderByComparator); 199 } 200 201 /** 202 * Returns the last wiki node in the ordered set where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 207 */ 208 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_Last( 209 java.lang.String uuid, 210 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 211 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 212 } 213 214 /** 215 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 216 * 217 * @param nodeId the primary key of the current wiki node 218 * @param uuid the uuid 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the previous, current, and next wiki node 221 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 222 */ 223 public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 224 long nodeId, java.lang.String uuid, 225 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 226 throws com.liferay.portlet.wiki.NoSuchNodeException { 227 return getPersistence() 228 .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator); 229 } 230 231 /** 232 * Removes all the wiki nodes where uuid = ? from the database. 233 * 234 * @param uuid the uuid 235 */ 236 public static void removeByUuid(java.lang.String uuid) { 237 getPersistence().removeByUuid(uuid); 238 } 239 240 /** 241 * Returns the number of wiki nodes where uuid = ?. 242 * 243 * @param uuid the uuid 244 * @return the number of matching wiki nodes 245 */ 246 public static int countByUuid(java.lang.String uuid) { 247 return getPersistence().countByUuid(uuid); 248 } 249 250 /** 251 * Returns the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 252 * 253 * @param uuid the uuid 254 * @param groupId the group ID 255 * @return the matching wiki node 256 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 257 */ 258 public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 259 java.lang.String uuid, long groupId) 260 throws com.liferay.portlet.wiki.NoSuchNodeException { 261 return getPersistence().findByUUID_G(uuid, groupId); 262 } 263 264 /** 265 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 266 * 267 * @param uuid the uuid 268 * @param groupId the group ID 269 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 270 */ 271 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 272 java.lang.String uuid, long groupId) { 273 return getPersistence().fetchByUUID_G(uuid, groupId); 274 } 275 276 /** 277 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 278 * 279 * @param uuid the uuid 280 * @param groupId the group ID 281 * @param retrieveFromCache whether to use the finder cache 282 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 283 */ 284 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 285 java.lang.String uuid, long groupId, boolean retrieveFromCache) { 286 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 287 } 288 289 /** 290 * Removes the wiki node where uuid = ? and groupId = ? from the database. 291 * 292 * @param uuid the uuid 293 * @param groupId the group ID 294 * @return the wiki node that was removed 295 */ 296 public static com.liferay.portlet.wiki.model.WikiNode removeByUUID_G( 297 java.lang.String uuid, long groupId) 298 throws com.liferay.portlet.wiki.NoSuchNodeException { 299 return getPersistence().removeByUUID_G(uuid, groupId); 300 } 301 302 /** 303 * Returns the number of wiki nodes where uuid = ? and groupId = ?. 304 * 305 * @param uuid the uuid 306 * @param groupId the group ID 307 * @return the number of matching wiki nodes 308 */ 309 public static int countByUUID_G(java.lang.String uuid, long groupId) { 310 return getPersistence().countByUUID_G(uuid, groupId); 311 } 312 313 /** 314 * Returns all the wiki nodes where uuid = ? and companyId = ?. 315 * 316 * @param uuid the uuid 317 * @param companyId the company ID 318 * @return the matching wiki nodes 319 */ 320 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 321 java.lang.String uuid, long companyId) { 322 return getPersistence().findByUuid_C(uuid, companyId); 323 } 324 325 /** 326 * Returns a range of all the wiki nodes where uuid = ? and companyId = ?. 327 * 328 * <p> 329 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 330 * </p> 331 * 332 * @param uuid the uuid 333 * @param companyId the company ID 334 * @param start the lower bound of the range of wiki nodes 335 * @param end the upper bound of the range of wiki nodes (not inclusive) 336 * @return the range of matching wiki nodes 337 */ 338 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 339 java.lang.String uuid, long companyId, int start, int end) { 340 return getPersistence().findByUuid_C(uuid, companyId, start, end); 341 } 342 343 /** 344 * Returns an ordered range of all the wiki nodes where uuid = ? and companyId = ?. 345 * 346 * <p> 347 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 348 * </p> 349 * 350 * @param uuid the uuid 351 * @param companyId the company ID 352 * @param start the lower bound of the range of wiki nodes 353 * @param end the upper bound of the range of wiki nodes (not inclusive) 354 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 355 * @return the ordered range of matching wiki nodes 356 */ 357 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 358 java.lang.String uuid, long companyId, int start, int end, 359 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 360 return getPersistence() 361 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 362 } 363 364 /** 365 * Returns the first wiki node in the ordered set where uuid = ? and companyId = ?. 366 * 367 * @param uuid the uuid 368 * @param companyId the company ID 369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 370 * @return the first matching wiki node 371 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 372 */ 373 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_C_First( 374 java.lang.String uuid, long companyId, 375 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 376 throws com.liferay.portlet.wiki.NoSuchNodeException { 377 return getPersistence() 378 .findByUuid_C_First(uuid, companyId, orderByComparator); 379 } 380 381 /** 382 * Returns the first wiki node in the ordered set where uuid = ? and companyId = ?. 383 * 384 * @param uuid the uuid 385 * @param companyId the company ID 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 388 */ 389 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_First( 390 java.lang.String uuid, long companyId, 391 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 392 return getPersistence() 393 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 394 } 395 396 /** 397 * Returns the last wiki node in the ordered set where uuid = ? and companyId = ?. 398 * 399 * @param uuid the uuid 400 * @param companyId the company ID 401 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 402 * @return the last matching wiki node 403 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 404 */ 405 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_C_Last( 406 java.lang.String uuid, long companyId, 407 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 408 throws com.liferay.portlet.wiki.NoSuchNodeException { 409 return getPersistence() 410 .findByUuid_C_Last(uuid, companyId, orderByComparator); 411 } 412 413 /** 414 * Returns the last wiki node in the ordered set where uuid = ? and companyId = ?. 415 * 416 * @param uuid the uuid 417 * @param companyId the company ID 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 420 */ 421 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_Last( 422 java.lang.String uuid, long companyId, 423 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 424 return getPersistence() 425 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 426 } 427 428 /** 429 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ? and companyId = ?. 430 * 431 * @param nodeId the primary key of the current wiki node 432 * @param uuid the uuid 433 * @param companyId the company ID 434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 435 * @return the previous, current, and next wiki node 436 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 437 */ 438 public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_C_PrevAndNext( 439 long nodeId, java.lang.String uuid, long companyId, 440 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 441 throws com.liferay.portlet.wiki.NoSuchNodeException { 442 return getPersistence() 443 .findByUuid_C_PrevAndNext(nodeId, uuid, companyId, 444 orderByComparator); 445 } 446 447 /** 448 * Removes all the wiki nodes where uuid = ? and companyId = ? from the database. 449 * 450 * @param uuid the uuid 451 * @param companyId the company ID 452 */ 453 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 454 getPersistence().removeByUuid_C(uuid, companyId); 455 } 456 457 /** 458 * Returns the number of wiki nodes where uuid = ? and companyId = ?. 459 * 460 * @param uuid the uuid 461 * @param companyId the company ID 462 * @return the number of matching wiki nodes 463 */ 464 public static int countByUuid_C(java.lang.String uuid, long companyId) { 465 return getPersistence().countByUuid_C(uuid, companyId); 466 } 467 468 /** 469 * Returns all the wiki nodes where groupId = ?. 470 * 471 * @param groupId the group ID 472 * @return the matching wiki nodes 473 */ 474 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 475 long groupId) { 476 return getPersistence().findByGroupId(groupId); 477 } 478 479 /** 480 * Returns a range of all the wiki nodes where groupId = ?. 481 * 482 * <p> 483 * 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.WikiNodeModelImpl}. 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. 484 * </p> 485 * 486 * @param groupId the group ID 487 * @param start the lower bound of the range of wiki nodes 488 * @param end the upper bound of the range of wiki nodes (not inclusive) 489 * @return the range of matching wiki nodes 490 */ 491 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 492 long groupId, int start, int end) { 493 return getPersistence().findByGroupId(groupId, start, end); 494 } 495 496 /** 497 * Returns an ordered range of all the wiki nodes where groupId = ?. 498 * 499 * <p> 500 * 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.WikiNodeModelImpl}. 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. 501 * </p> 502 * 503 * @param groupId the group ID 504 * @param start the lower bound of the range of wiki nodes 505 * @param end the upper bound of the range of wiki nodes (not inclusive) 506 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 507 * @return the ordered range of matching wiki nodes 508 */ 509 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 510 long groupId, int start, int end, 511 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 512 return getPersistence() 513 .findByGroupId(groupId, start, end, orderByComparator); 514 } 515 516 /** 517 * Returns the first wiki node in the ordered set where groupId = ?. 518 * 519 * @param groupId the group ID 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the first matching wiki node 522 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 523 */ 524 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 525 long groupId, 526 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 527 throws com.liferay.portlet.wiki.NoSuchNodeException { 528 return getPersistence().findByGroupId_First(groupId, orderByComparator); 529 } 530 531 /** 532 * Returns the first wiki node in the ordered set where groupId = ?. 533 * 534 * @param groupId the group ID 535 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 536 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 537 */ 538 public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_First( 539 long groupId, 540 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 541 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 542 } 543 544 /** 545 * Returns the last wiki node in the ordered set where groupId = ?. 546 * 547 * @param groupId the group ID 548 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 549 * @return the last matching wiki node 550 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 551 */ 552 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 553 long groupId, 554 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 555 throws com.liferay.portlet.wiki.NoSuchNodeException { 556 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 557 } 558 559 /** 560 * Returns the last wiki node in the ordered set where groupId = ?. 561 * 562 * @param groupId the group ID 563 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 564 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 565 */ 566 public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_Last( 567 long groupId, 568 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 569 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 570 } 571 572 /** 573 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 574 * 575 * @param nodeId the primary key of the current wiki node 576 * @param groupId the group ID 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the previous, current, and next wiki node 579 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 580 */ 581 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 582 long nodeId, long groupId, 583 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 584 throws com.liferay.portlet.wiki.NoSuchNodeException { 585 return getPersistence() 586 .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator); 587 } 588 589 /** 590 * Returns all the wiki nodes that the user has permission to view where groupId = ?. 591 * 592 * @param groupId the group ID 593 * @return the matching wiki nodes that the user has permission to view 594 */ 595 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 596 long groupId) { 597 return getPersistence().filterFindByGroupId(groupId); 598 } 599 600 /** 601 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ?. 602 * 603 * <p> 604 * 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.WikiNodeModelImpl}. 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. 605 * </p> 606 * 607 * @param groupId the group ID 608 * @param start the lower bound of the range of wiki nodes 609 * @param end the upper bound of the range of wiki nodes (not inclusive) 610 * @return the range of matching wiki nodes that the user has permission to view 611 */ 612 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 613 long groupId, int start, int end) { 614 return getPersistence().filterFindByGroupId(groupId, start, end); 615 } 616 617 /** 618 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ?. 619 * 620 * <p> 621 * 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.WikiNodeModelImpl}. 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. 622 * </p> 623 * 624 * @param groupId the group ID 625 * @param start the lower bound of the range of wiki nodes 626 * @param end the upper bound of the range of wiki nodes (not inclusive) 627 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 628 * @return the ordered range of matching wiki nodes that the user has permission to view 629 */ 630 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 631 long groupId, int start, int end, 632 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 633 return getPersistence() 634 .filterFindByGroupId(groupId, start, end, orderByComparator); 635 } 636 637 /** 638 * Returns the wiki nodes before and after the current wiki node in the ordered set of wiki nodes that the user has permission to view where groupId = ?. 639 * 640 * @param nodeId the primary key of the current wiki node 641 * @param groupId the group ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the previous, current, and next wiki node 644 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 645 */ 646 public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 647 long nodeId, long groupId, 648 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 649 throws com.liferay.portlet.wiki.NoSuchNodeException { 650 return getPersistence() 651 .filterFindByGroupId_PrevAndNext(nodeId, groupId, 652 orderByComparator); 653 } 654 655 /** 656 * Removes all the wiki nodes where groupId = ? from the database. 657 * 658 * @param groupId the group ID 659 */ 660 public static void removeByGroupId(long groupId) { 661 getPersistence().removeByGroupId(groupId); 662 } 663 664 /** 665 * Returns the number of wiki nodes where groupId = ?. 666 * 667 * @param groupId the group ID 668 * @return the number of matching wiki nodes 669 */ 670 public static int countByGroupId(long groupId) { 671 return getPersistence().countByGroupId(groupId); 672 } 673 674 /** 675 * Returns the number of wiki nodes that the user has permission to view where groupId = ?. 676 * 677 * @param groupId the group ID 678 * @return the number of matching wiki nodes that the user has permission to view 679 */ 680 public static int filterCountByGroupId(long groupId) { 681 return getPersistence().filterCountByGroupId(groupId); 682 } 683 684 /** 685 * Returns all the wiki nodes where companyId = ?. 686 * 687 * @param companyId the company ID 688 * @return the matching wiki nodes 689 */ 690 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 691 long companyId) { 692 return getPersistence().findByCompanyId(companyId); 693 } 694 695 /** 696 * Returns a range of all the wiki nodes where companyId = ?. 697 * 698 * <p> 699 * 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.WikiNodeModelImpl}. 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. 700 * </p> 701 * 702 * @param companyId the company ID 703 * @param start the lower bound of the range of wiki nodes 704 * @param end the upper bound of the range of wiki nodes (not inclusive) 705 * @return the range of matching wiki nodes 706 */ 707 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 708 long companyId, int start, int end) { 709 return getPersistence().findByCompanyId(companyId, start, end); 710 } 711 712 /** 713 * Returns an ordered range of all the wiki nodes where companyId = ?. 714 * 715 * <p> 716 * 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.WikiNodeModelImpl}. 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. 717 * </p> 718 * 719 * @param companyId the company ID 720 * @param start the lower bound of the range of wiki nodes 721 * @param end the upper bound of the range of wiki nodes (not inclusive) 722 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 723 * @return the ordered range of matching wiki nodes 724 */ 725 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 726 long companyId, int start, int end, 727 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 728 return getPersistence() 729 .findByCompanyId(companyId, start, end, orderByComparator); 730 } 731 732 /** 733 * Returns the first wiki node in the ordered set where companyId = ?. 734 * 735 * @param companyId the company ID 736 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 737 * @return the first matching wiki node 738 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 739 */ 740 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 741 long companyId, 742 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 743 throws com.liferay.portlet.wiki.NoSuchNodeException { 744 return getPersistence() 745 .findByCompanyId_First(companyId, orderByComparator); 746 } 747 748 /** 749 * Returns the first wiki node in the ordered set where companyId = ?. 750 * 751 * @param companyId the company ID 752 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 753 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 754 */ 755 public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_First( 756 long companyId, 757 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 758 return getPersistence() 759 .fetchByCompanyId_First(companyId, orderByComparator); 760 } 761 762 /** 763 * Returns the last wiki node in the ordered set where companyId = ?. 764 * 765 * @param companyId the company ID 766 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 767 * @return the last matching wiki node 768 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 769 */ 770 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 771 long companyId, 772 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 773 throws com.liferay.portlet.wiki.NoSuchNodeException { 774 return getPersistence() 775 .findByCompanyId_Last(companyId, orderByComparator); 776 } 777 778 /** 779 * Returns the last wiki node in the ordered set where companyId = ?. 780 * 781 * @param companyId the company ID 782 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 783 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 784 */ 785 public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_Last( 786 long companyId, 787 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 788 return getPersistence() 789 .fetchByCompanyId_Last(companyId, orderByComparator); 790 } 791 792 /** 793 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 794 * 795 * @param nodeId the primary key of the current wiki node 796 * @param companyId the company ID 797 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 798 * @return the previous, current, and next wiki node 799 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 800 */ 801 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 802 long nodeId, long companyId, 803 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 804 throws com.liferay.portlet.wiki.NoSuchNodeException { 805 return getPersistence() 806 .findByCompanyId_PrevAndNext(nodeId, companyId, 807 orderByComparator); 808 } 809 810 /** 811 * Removes all the wiki nodes where companyId = ? from the database. 812 * 813 * @param companyId the company ID 814 */ 815 public static void removeByCompanyId(long companyId) { 816 getPersistence().removeByCompanyId(companyId); 817 } 818 819 /** 820 * Returns the number of wiki nodes where companyId = ?. 821 * 822 * @param companyId the company ID 823 * @return the number of matching wiki nodes 824 */ 825 public static int countByCompanyId(long companyId) { 826 return getPersistence().countByCompanyId(companyId); 827 } 828 829 /** 830 * Returns the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 831 * 832 * @param groupId the group ID 833 * @param name the name 834 * @return the matching wiki node 835 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 836 */ 837 public static com.liferay.portlet.wiki.model.WikiNode findByG_N( 838 long groupId, java.lang.String name) 839 throws com.liferay.portlet.wiki.NoSuchNodeException { 840 return getPersistence().findByG_N(groupId, name); 841 } 842 843 /** 844 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 845 * 846 * @param groupId the group ID 847 * @param name the name 848 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 849 */ 850 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 851 long groupId, java.lang.String name) { 852 return getPersistence().fetchByG_N(groupId, name); 853 } 854 855 /** 856 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 857 * 858 * @param groupId the group ID 859 * @param name the name 860 * @param retrieveFromCache whether to use the finder cache 861 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 862 */ 863 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 864 long groupId, java.lang.String name, boolean retrieveFromCache) { 865 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 866 } 867 868 /** 869 * Removes the wiki node where groupId = ? and name = ? from the database. 870 * 871 * @param groupId the group ID 872 * @param name the name 873 * @return the wiki node that was removed 874 */ 875 public static com.liferay.portlet.wiki.model.WikiNode removeByG_N( 876 long groupId, java.lang.String name) 877 throws com.liferay.portlet.wiki.NoSuchNodeException { 878 return getPersistence().removeByG_N(groupId, name); 879 } 880 881 /** 882 * Returns the number of wiki nodes where groupId = ? and name = ?. 883 * 884 * @param groupId the group ID 885 * @param name the name 886 * @return the number of matching wiki nodes 887 */ 888 public static int countByG_N(long groupId, java.lang.String name) { 889 return getPersistence().countByG_N(groupId, name); 890 } 891 892 /** 893 * Returns all the wiki nodes where groupId = ? and status = ?. 894 * 895 * @param groupId the group ID 896 * @param status the status 897 * @return the matching wiki nodes 898 */ 899 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 900 long groupId, int status) { 901 return getPersistence().findByG_S(groupId, status); 902 } 903 904 /** 905 * Returns a range of all the wiki nodes where groupId = ? and status = ?. 906 * 907 * <p> 908 * 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.WikiNodeModelImpl}. 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. 909 * </p> 910 * 911 * @param groupId the group ID 912 * @param status the status 913 * @param start the lower bound of the range of wiki nodes 914 * @param end the upper bound of the range of wiki nodes (not inclusive) 915 * @return the range of matching wiki nodes 916 */ 917 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 918 long groupId, int status, int start, int end) { 919 return getPersistence().findByG_S(groupId, status, start, end); 920 } 921 922 /** 923 * Returns an ordered range of all the wiki nodes where groupId = ? and status = ?. 924 * 925 * <p> 926 * 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.WikiNodeModelImpl}. 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. 927 * </p> 928 * 929 * @param groupId the group ID 930 * @param status the status 931 * @param start the lower bound of the range of wiki nodes 932 * @param end the upper bound of the range of wiki nodes (not inclusive) 933 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 934 * @return the ordered range of matching wiki nodes 935 */ 936 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 937 long groupId, int status, int start, int end, 938 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 939 return getPersistence() 940 .findByG_S(groupId, status, start, end, orderByComparator); 941 } 942 943 /** 944 * Returns the first wiki node in the ordered set where groupId = ? and status = ?. 945 * 946 * @param groupId the group ID 947 * @param status the status 948 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 949 * @return the first matching wiki node 950 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 951 */ 952 public static com.liferay.portlet.wiki.model.WikiNode findByG_S_First( 953 long groupId, int status, 954 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 955 throws com.liferay.portlet.wiki.NoSuchNodeException { 956 return getPersistence() 957 .findByG_S_First(groupId, status, orderByComparator); 958 } 959 960 /** 961 * Returns the first wiki node in the ordered set where groupId = ? and status = ?. 962 * 963 * @param groupId the group ID 964 * @param status the status 965 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 966 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 967 */ 968 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_S_First( 969 long groupId, int status, 970 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 971 return getPersistence() 972 .fetchByG_S_First(groupId, status, orderByComparator); 973 } 974 975 /** 976 * Returns the last wiki node in the ordered set where groupId = ? and status = ?. 977 * 978 * @param groupId the group ID 979 * @param status the status 980 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 981 * @return the last matching wiki node 982 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 983 */ 984 public static com.liferay.portlet.wiki.model.WikiNode findByG_S_Last( 985 long groupId, int status, 986 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 987 throws com.liferay.portlet.wiki.NoSuchNodeException { 988 return getPersistence() 989 .findByG_S_Last(groupId, status, orderByComparator); 990 } 991 992 /** 993 * Returns the last wiki node in the ordered set where groupId = ? and status = ?. 994 * 995 * @param groupId the group ID 996 * @param status the status 997 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 998 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 999 */ 1000 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_S_Last( 1001 long groupId, int status, 1002 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1003 return getPersistence() 1004 .fetchByG_S_Last(groupId, status, orderByComparator); 1005 } 1006 1007 /** 1008 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ? and status = ?. 1009 * 1010 * @param nodeId the primary key of the current wiki node 1011 * @param groupId the group ID 1012 * @param status the status 1013 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1014 * @return the previous, current, and next wiki node 1015 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1016 */ 1017 public static com.liferay.portlet.wiki.model.WikiNode[] findByG_S_PrevAndNext( 1018 long nodeId, long groupId, int status, 1019 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 1020 throws com.liferay.portlet.wiki.NoSuchNodeException { 1021 return getPersistence() 1022 .findByG_S_PrevAndNext(nodeId, groupId, status, 1023 orderByComparator); 1024 } 1025 1026 /** 1027 * Returns all the wiki nodes that the user has permission to view where groupId = ? and status = ?. 1028 * 1029 * @param groupId the group ID 1030 * @param status the status 1031 * @return the matching wiki nodes that the user has permission to view 1032 */ 1033 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 1034 long groupId, int status) { 1035 return getPersistence().filterFindByG_S(groupId, status); 1036 } 1037 1038 /** 1039 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ? and status = ?. 1040 * 1041 * <p> 1042 * 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.WikiNodeModelImpl}. 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. 1043 * </p> 1044 * 1045 * @param groupId the group ID 1046 * @param status the status 1047 * @param start the lower bound of the range of wiki nodes 1048 * @param end the upper bound of the range of wiki nodes (not inclusive) 1049 * @return the range of matching wiki nodes that the user has permission to view 1050 */ 1051 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 1052 long groupId, int status, int start, int end) { 1053 return getPersistence().filterFindByG_S(groupId, status, start, end); 1054 } 1055 1056 /** 1057 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ? and status = ?. 1058 * 1059 * <p> 1060 * 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.WikiNodeModelImpl}. 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. 1061 * </p> 1062 * 1063 * @param groupId the group ID 1064 * @param status the status 1065 * @param start the lower bound of the range of wiki nodes 1066 * @param end the upper bound of the range of wiki nodes (not inclusive) 1067 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1068 * @return the ordered range of matching wiki nodes that the user has permission to view 1069 */ 1070 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 1071 long groupId, int status, int start, int end, 1072 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1073 return getPersistence() 1074 .filterFindByG_S(groupId, status, start, end, 1075 orderByComparator); 1076 } 1077 1078 /** 1079 * Returns the wiki nodes before and after the current wiki node in the ordered set of wiki nodes that the user has permission to view where groupId = ? and status = ?. 1080 * 1081 * @param nodeId the primary key of the current wiki node 1082 * @param groupId the group ID 1083 * @param status the status 1084 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1085 * @return the previous, current, and next wiki node 1086 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1087 */ 1088 public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByG_S_PrevAndNext( 1089 long nodeId, long groupId, int status, 1090 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 1091 throws com.liferay.portlet.wiki.NoSuchNodeException { 1092 return getPersistence() 1093 .filterFindByG_S_PrevAndNext(nodeId, groupId, status, 1094 orderByComparator); 1095 } 1096 1097 /** 1098 * Removes all the wiki nodes where groupId = ? and status = ? from the database. 1099 * 1100 * @param groupId the group ID 1101 * @param status the status 1102 */ 1103 public static void removeByG_S(long groupId, int status) { 1104 getPersistence().removeByG_S(groupId, status); 1105 } 1106 1107 /** 1108 * Returns the number of wiki nodes where groupId = ? and status = ?. 1109 * 1110 * @param groupId the group ID 1111 * @param status the status 1112 * @return the number of matching wiki nodes 1113 */ 1114 public static int countByG_S(long groupId, int status) { 1115 return getPersistence().countByG_S(groupId, status); 1116 } 1117 1118 /** 1119 * Returns the number of wiki nodes that the user has permission to view where groupId = ? and status = ?. 1120 * 1121 * @param groupId the group ID 1122 * @param status the status 1123 * @return the number of matching wiki nodes that the user has permission to view 1124 */ 1125 public static int filterCountByG_S(long groupId, int status) { 1126 return getPersistence().filterCountByG_S(groupId, status); 1127 } 1128 1129 /** 1130 * Returns all the wiki nodes where companyId = ? and status = ?. 1131 * 1132 * @param companyId the company ID 1133 * @param status the status 1134 * @return the matching wiki nodes 1135 */ 1136 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1137 long companyId, int status) { 1138 return getPersistence().findByC_S(companyId, status); 1139 } 1140 1141 /** 1142 * Returns a range of all the wiki nodes where companyId = ? and status = ?. 1143 * 1144 * <p> 1145 * 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.WikiNodeModelImpl}. 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. 1146 * </p> 1147 * 1148 * @param companyId the company ID 1149 * @param status the status 1150 * @param start the lower bound of the range of wiki nodes 1151 * @param end the upper bound of the range of wiki nodes (not inclusive) 1152 * @return the range of matching wiki nodes 1153 */ 1154 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1155 long companyId, int status, int start, int end) { 1156 return getPersistence().findByC_S(companyId, status, start, end); 1157 } 1158 1159 /** 1160 * Returns an ordered range of all the wiki nodes where companyId = ? and status = ?. 1161 * 1162 * <p> 1163 * 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.WikiNodeModelImpl}. 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. 1164 * </p> 1165 * 1166 * @param companyId the company ID 1167 * @param status the status 1168 * @param start the lower bound of the range of wiki nodes 1169 * @param end the upper bound of the range of wiki nodes (not inclusive) 1170 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1171 * @return the ordered range of matching wiki nodes 1172 */ 1173 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1174 long companyId, int status, int start, int end, 1175 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1176 return getPersistence() 1177 .findByC_S(companyId, status, start, end, orderByComparator); 1178 } 1179 1180 /** 1181 * Returns the first wiki node in the ordered set where companyId = ? and status = ?. 1182 * 1183 * @param companyId the company ID 1184 * @param status the status 1185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1186 * @return the first matching wiki node 1187 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 1188 */ 1189 public static com.liferay.portlet.wiki.model.WikiNode findByC_S_First( 1190 long companyId, int status, 1191 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 1192 throws com.liferay.portlet.wiki.NoSuchNodeException { 1193 return getPersistence() 1194 .findByC_S_First(companyId, status, orderByComparator); 1195 } 1196 1197 /** 1198 * Returns the first wiki node in the ordered set where companyId = ? and status = ?. 1199 * 1200 * @param companyId the company ID 1201 * @param status the status 1202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1203 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 1204 */ 1205 public static com.liferay.portlet.wiki.model.WikiNode fetchByC_S_First( 1206 long companyId, int status, 1207 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1208 return getPersistence() 1209 .fetchByC_S_First(companyId, status, orderByComparator); 1210 } 1211 1212 /** 1213 * Returns the last wiki node in the ordered set where companyId = ? and status = ?. 1214 * 1215 * @param companyId the company ID 1216 * @param status the status 1217 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1218 * @return the last matching wiki node 1219 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 1220 */ 1221 public static com.liferay.portlet.wiki.model.WikiNode findByC_S_Last( 1222 long companyId, int status, 1223 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 1224 throws com.liferay.portlet.wiki.NoSuchNodeException { 1225 return getPersistence() 1226 .findByC_S_Last(companyId, status, orderByComparator); 1227 } 1228 1229 /** 1230 * Returns the last wiki node in the ordered set where companyId = ? and status = ?. 1231 * 1232 * @param companyId the company ID 1233 * @param status the status 1234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1235 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 1236 */ 1237 public static com.liferay.portlet.wiki.model.WikiNode fetchByC_S_Last( 1238 long companyId, int status, 1239 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1240 return getPersistence() 1241 .fetchByC_S_Last(companyId, status, orderByComparator); 1242 } 1243 1244 /** 1245 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ? and status = ?. 1246 * 1247 * @param nodeId the primary key of the current wiki node 1248 * @param companyId the company ID 1249 * @param status the status 1250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1251 * @return the previous, current, and next wiki node 1252 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1253 */ 1254 public static com.liferay.portlet.wiki.model.WikiNode[] findByC_S_PrevAndNext( 1255 long nodeId, long companyId, int status, 1256 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) 1257 throws com.liferay.portlet.wiki.NoSuchNodeException { 1258 return getPersistence() 1259 .findByC_S_PrevAndNext(nodeId, companyId, status, 1260 orderByComparator); 1261 } 1262 1263 /** 1264 * Removes all the wiki nodes where companyId = ? and status = ? from the database. 1265 * 1266 * @param companyId the company ID 1267 * @param status the status 1268 */ 1269 public static void removeByC_S(long companyId, int status) { 1270 getPersistence().removeByC_S(companyId, status); 1271 } 1272 1273 /** 1274 * Returns the number of wiki nodes where companyId = ? and status = ?. 1275 * 1276 * @param companyId the company ID 1277 * @param status the status 1278 * @return the number of matching wiki nodes 1279 */ 1280 public static int countByC_S(long companyId, int status) { 1281 return getPersistence().countByC_S(companyId, status); 1282 } 1283 1284 /** 1285 * Caches the wiki node in the entity cache if it is enabled. 1286 * 1287 * @param wikiNode the wiki node 1288 */ 1289 public static void cacheResult( 1290 com.liferay.portlet.wiki.model.WikiNode wikiNode) { 1291 getPersistence().cacheResult(wikiNode); 1292 } 1293 1294 /** 1295 * Caches the wiki nodes in the entity cache if it is enabled. 1296 * 1297 * @param wikiNodes the wiki nodes 1298 */ 1299 public static void cacheResult( 1300 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) { 1301 getPersistence().cacheResult(wikiNodes); 1302 } 1303 1304 /** 1305 * Creates a new wiki node with the primary key. Does not add the wiki node to the database. 1306 * 1307 * @param nodeId the primary key for the new wiki node 1308 * @return the new wiki node 1309 */ 1310 public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) { 1311 return getPersistence().create(nodeId); 1312 } 1313 1314 /** 1315 * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners. 1316 * 1317 * @param nodeId the primary key of the wiki node 1318 * @return the wiki node that was removed 1319 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1320 */ 1321 public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId) 1322 throws com.liferay.portlet.wiki.NoSuchNodeException { 1323 return getPersistence().remove(nodeId); 1324 } 1325 1326 public static com.liferay.portlet.wiki.model.WikiNode updateImpl( 1327 com.liferay.portlet.wiki.model.WikiNode wikiNode) { 1328 return getPersistence().updateImpl(wikiNode); 1329 } 1330 1331 /** 1332 * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 1333 * 1334 * @param nodeId the primary key of the wiki node 1335 * @return the wiki node 1336 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1337 */ 1338 public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey( 1339 long nodeId) throws com.liferay.portlet.wiki.NoSuchNodeException { 1340 return getPersistence().findByPrimaryKey(nodeId); 1341 } 1342 1343 /** 1344 * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found. 1345 * 1346 * @param nodeId the primary key of the wiki node 1347 * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found 1348 */ 1349 public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey( 1350 long nodeId) { 1351 return getPersistence().fetchByPrimaryKey(nodeId); 1352 } 1353 1354 public static java.util.Map<java.io.Serializable, com.liferay.portlet.wiki.model.WikiNode> fetchByPrimaryKeys( 1355 java.util.Set<java.io.Serializable> primaryKeys) { 1356 return getPersistence().fetchByPrimaryKeys(primaryKeys); 1357 } 1358 1359 /** 1360 * Returns all the wiki nodes. 1361 * 1362 * @return the wiki nodes 1363 */ 1364 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() { 1365 return getPersistence().findAll(); 1366 } 1367 1368 /** 1369 * Returns a range of all the wiki nodes. 1370 * 1371 * <p> 1372 * 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.WikiNodeModelImpl}. 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. 1373 * </p> 1374 * 1375 * @param start the lower bound of the range of wiki nodes 1376 * @param end the upper bound of the range of wiki nodes (not inclusive) 1377 * @return the range of wiki nodes 1378 */ 1379 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 1380 int start, int end) { 1381 return getPersistence().findAll(start, end); 1382 } 1383 1384 /** 1385 * Returns an ordered range of all the wiki nodes. 1386 * 1387 * <p> 1388 * 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.WikiNodeModelImpl}. 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. 1389 * </p> 1390 * 1391 * @param start the lower bound of the range of wiki nodes 1392 * @param end the upper bound of the range of wiki nodes (not inclusive) 1393 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1394 * @return the ordered range of wiki nodes 1395 */ 1396 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 1397 int start, int end, 1398 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiNode> orderByComparator) { 1399 return getPersistence().findAll(start, end, orderByComparator); 1400 } 1401 1402 /** 1403 * Removes all the wiki nodes from the database. 1404 */ 1405 public static void removeAll() { 1406 getPersistence().removeAll(); 1407 } 1408 1409 /** 1410 * Returns the number of wiki nodes. 1411 * 1412 * @return the number of wiki nodes 1413 */ 1414 public static int countAll() { 1415 return getPersistence().countAll(); 1416 } 1417 1418 public static WikiNodePersistence getPersistence() { 1419 if (_persistence == null) { 1420 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName()); 1421 1422 ReferenceRegistry.registerReference(WikiNodeUtil.class, 1423 "_persistence"); 1424 } 1425 1426 return _persistence; 1427 } 1428 1429 /** 1430 * @deprecated As of 6.2.0 1431 */ 1432 @Deprecated 1433 public void setPersistence(WikiNodePersistence persistence) { 1434 } 1435 1436 private static WikiNodePersistence _persistence; 1437 }