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.WikiNode; 025 026 import java.util.List; 027 028 /** 029 * 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. 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 WikiNodePersistence 037 * @see WikiNodePersistenceImpl 038 * @generated 039 */ 040 public class WikiNodeUtil { 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(WikiNode wikiNode) { 058 getPersistence().clearCache(wikiNode); 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<WikiNode> 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<WikiNode> 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<WikiNode> 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, boolean) 099 */ 100 public static WikiNode update(WikiNode wikiNode, boolean merge) 101 throws SystemException { 102 return getPersistence().update(wikiNode, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static WikiNode update(WikiNode wikiNode, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(wikiNode, merge, serviceContext); 111 } 112 113 /** 114 * Caches the wiki node in the entity cache if it is enabled. 115 * 116 * @param wikiNode the wiki node 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.wiki.model.WikiNode wikiNode) { 120 getPersistence().cacheResult(wikiNode); 121 } 122 123 /** 124 * Caches the wiki nodes in the entity cache if it is enabled. 125 * 126 * @param wikiNodes the wiki nodes 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) { 130 getPersistence().cacheResult(wikiNodes); 131 } 132 133 /** 134 * Creates a new wiki node with the primary key. Does not add the wiki node to the database. 135 * 136 * @param nodeId the primary key for the new wiki node 137 * @return the new wiki node 138 */ 139 public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) { 140 return getPersistence().create(nodeId); 141 } 142 143 /** 144 * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners. 145 * 146 * @param nodeId the primary key of the wiki node 147 * @return the wiki node that was removed 148 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId) 152 throws com.liferay.portal.kernel.exception.SystemException, 153 com.liferay.portlet.wiki.NoSuchNodeException { 154 return getPersistence().remove(nodeId); 155 } 156 157 public static com.liferay.portlet.wiki.model.WikiNode updateImpl( 158 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge) 159 throws com.liferay.portal.kernel.exception.SystemException { 160 return getPersistence().updateImpl(wikiNode, merge); 161 } 162 163 /** 164 * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 165 * 166 * @param nodeId the primary key of the wiki node 167 * @return the wiki node 168 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 169 * @throws SystemException if a system exception occurred 170 */ 171 public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey( 172 long nodeId) 173 throws com.liferay.portal.kernel.exception.SystemException, 174 com.liferay.portlet.wiki.NoSuchNodeException { 175 return getPersistence().findByPrimaryKey(nodeId); 176 } 177 178 /** 179 * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found. 180 * 181 * @param nodeId the primary key of the wiki node 182 * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey( 186 long nodeId) throws com.liferay.portal.kernel.exception.SystemException { 187 return getPersistence().fetchByPrimaryKey(nodeId); 188 } 189 190 /** 191 * Returns all the wiki nodes where uuid = ?. 192 * 193 * @param uuid the uuid 194 * @return the matching wiki nodes 195 * @throws SystemException if a system exception occurred 196 */ 197 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 198 java.lang.String uuid) 199 throws com.liferay.portal.kernel.exception.SystemException { 200 return getPersistence().findByUuid(uuid); 201 } 202 203 /** 204 * Returns a range of all the wiki nodes where uuid = ?. 205 * 206 * <p> 207 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 208 * </p> 209 * 210 * @param uuid the uuid 211 * @param start the lower bound of the range of wiki nodes 212 * @param end the upper bound of the range of wiki nodes (not inclusive) 213 * @return the range of matching wiki nodes 214 * @throws SystemException if a system exception occurred 215 */ 216 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 217 java.lang.String uuid, int start, int end) 218 throws com.liferay.portal.kernel.exception.SystemException { 219 return getPersistence().findByUuid(uuid, start, end); 220 } 221 222 /** 223 * Returns an ordered range of all the wiki nodes where uuid = ?. 224 * 225 * <p> 226 * 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. 227 * </p> 228 * 229 * @param uuid the uuid 230 * @param start the lower bound of the range of wiki nodes 231 * @param end the upper bound of the range of wiki nodes (not inclusive) 232 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 233 * @return the ordered range of matching wiki nodes 234 * @throws SystemException if a system exception occurred 235 */ 236 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 237 java.lang.String uuid, int start, int end, 238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 239 throws com.liferay.portal.kernel.exception.SystemException { 240 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 241 } 242 243 /** 244 * Returns the first wiki node in the ordered set where uuid = ?. 245 * 246 * @param uuid the uuid 247 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 248 * @return the first matching wiki node 249 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 250 * @throws SystemException if a system exception occurred 251 */ 252 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 253 java.lang.String uuid, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException, 256 com.liferay.portlet.wiki.NoSuchNodeException { 257 return getPersistence().findByUuid_First(uuid, orderByComparator); 258 } 259 260 /** 261 * Returns the first wiki node in the ordered set where uuid = ?. 262 * 263 * @param uuid the uuid 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 266 * @throws SystemException if a system exception occurred 267 */ 268 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_First( 269 java.lang.String uuid, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 273 } 274 275 /** 276 * Returns the last wiki node in the ordered set where uuid = ?. 277 * 278 * @param uuid the uuid 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching wiki node 281 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 285 java.lang.String uuid, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.wiki.NoSuchNodeException { 289 return getPersistence().findByUuid_Last(uuid, orderByComparator); 290 } 291 292 /** 293 * Returns the last wiki node in the ordered set where uuid = ?. 294 * 295 * @param uuid the uuid 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 298 * @throws SystemException if a system exception occurred 299 */ 300 public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_Last( 301 java.lang.String uuid, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.kernel.exception.SystemException { 304 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 305 } 306 307 /** 308 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 309 * 310 * @param nodeId the primary key of the current wiki node 311 * @param uuid the uuid 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the previous, current, and next wiki node 314 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 315 * @throws SystemException if a system exception occurred 316 */ 317 public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 318 long nodeId, java.lang.String uuid, 319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 320 throws com.liferay.portal.kernel.exception.SystemException, 321 com.liferay.portlet.wiki.NoSuchNodeException { 322 return getPersistence() 323 .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator); 324 } 325 326 /** 327 * Returns the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 328 * 329 * @param uuid the uuid 330 * @param groupId the group ID 331 * @return the matching wiki node 332 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 336 java.lang.String uuid, long groupId) 337 throws com.liferay.portal.kernel.exception.SystemException, 338 com.liferay.portlet.wiki.NoSuchNodeException { 339 return getPersistence().findByUUID_G(uuid, groupId); 340 } 341 342 /** 343 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 344 * 345 * @param uuid the uuid 346 * @param groupId the group ID 347 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 351 java.lang.String uuid, long groupId) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence().fetchByUUID_G(uuid, groupId); 354 } 355 356 /** 357 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 358 * 359 * @param uuid the uuid 360 * @param groupId the group ID 361 * @param retrieveFromCache whether to use the finder cache 362 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 366 java.lang.String uuid, long groupId, boolean retrieveFromCache) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 369 } 370 371 /** 372 * Returns all the wiki nodes where groupId = ?. 373 * 374 * @param groupId the group ID 375 * @return the matching wiki nodes 376 * @throws SystemException if a system exception occurred 377 */ 378 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 379 long groupId) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence().findByGroupId(groupId); 382 } 383 384 /** 385 * Returns a range of all the wiki nodes where groupId = ?. 386 * 387 * <p> 388 * 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. 389 * </p> 390 * 391 * @param groupId the group ID 392 * @param start the lower bound of the range of wiki nodes 393 * @param end the upper bound of the range of wiki nodes (not inclusive) 394 * @return the range of matching wiki nodes 395 * @throws SystemException if a system exception occurred 396 */ 397 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 398 long groupId, int start, int end) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return getPersistence().findByGroupId(groupId, start, end); 401 } 402 403 /** 404 * Returns an ordered range of all the wiki nodes where groupId = ?. 405 * 406 * <p> 407 * 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. 408 * </p> 409 * 410 * @param groupId the group ID 411 * @param start the lower bound of the range of wiki nodes 412 * @param end the upper bound of the range of wiki nodes (not inclusive) 413 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 414 * @return the ordered range of matching wiki nodes 415 * @throws SystemException if a system exception occurred 416 */ 417 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 418 long groupId, int start, int end, 419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 420 throws com.liferay.portal.kernel.exception.SystemException { 421 return getPersistence() 422 .findByGroupId(groupId, start, end, orderByComparator); 423 } 424 425 /** 426 * Returns the first wiki node in the ordered set where groupId = ?. 427 * 428 * @param groupId the group ID 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the first matching wiki node 431 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 435 long groupId, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException, 438 com.liferay.portlet.wiki.NoSuchNodeException { 439 return getPersistence().findByGroupId_First(groupId, orderByComparator); 440 } 441 442 /** 443 * Returns the first wiki node in the ordered set where groupId = ?. 444 * 445 * @param groupId the group ID 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_First( 451 long groupId, 452 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 453 throws com.liferay.portal.kernel.exception.SystemException { 454 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 455 } 456 457 /** 458 * Returns the last wiki node in the ordered set where groupId = ?. 459 * 460 * @param groupId the group ID 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the last matching wiki node 463 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 467 long groupId, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.kernel.exception.SystemException, 470 com.liferay.portlet.wiki.NoSuchNodeException { 471 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 472 } 473 474 /** 475 * Returns the last wiki node in the ordered set where groupId = ?. 476 * 477 * @param groupId the group ID 478 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 479 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_Last( 483 long groupId, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException { 486 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 487 } 488 489 /** 490 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 491 * 492 * @param nodeId the primary key of the current wiki node 493 * @param groupId the group ID 494 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 495 * @return the previous, current, and next wiki node 496 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 500 long nodeId, long groupId, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.kernel.exception.SystemException, 503 com.liferay.portlet.wiki.NoSuchNodeException { 504 return getPersistence() 505 .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator); 506 } 507 508 /** 509 * Returns all the wiki nodes that the user has permission to view where groupId = ?. 510 * 511 * @param groupId the group ID 512 * @return the matching wiki nodes that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 516 long groupId) 517 throws com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence().filterFindByGroupId(groupId); 519 } 520 521 /** 522 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ?. 523 * 524 * <p> 525 * 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. 526 * </p> 527 * 528 * @param groupId the group ID 529 * @param start the lower bound of the range of wiki nodes 530 * @param end the upper bound of the range of wiki nodes (not inclusive) 531 * @return the range of matching wiki nodes that the user has permission to view 532 * @throws SystemException if a system exception occurred 533 */ 534 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 535 long groupId, int start, int end) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence().filterFindByGroupId(groupId, start, end); 538 } 539 540 /** 541 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ?. 542 * 543 * <p> 544 * 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. 545 * </p> 546 * 547 * @param groupId the group ID 548 * @param start the lower bound of the range of wiki nodes 549 * @param end the upper bound of the range of wiki nodes (not inclusive) 550 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 551 * @return the ordered range of matching wiki nodes that the user has permission to view 552 * @throws SystemException if a system exception occurred 553 */ 554 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 555 long groupId, int start, int end, 556 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 557 throws com.liferay.portal.kernel.exception.SystemException { 558 return getPersistence() 559 .filterFindByGroupId(groupId, start, end, orderByComparator); 560 } 561 562 /** 563 * 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 = ?. 564 * 565 * @param nodeId the primary key of the current wiki node 566 * @param groupId the group ID 567 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 568 * @return the previous, current, and next wiki node 569 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 570 * @throws SystemException if a system exception occurred 571 */ 572 public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 573 long nodeId, long groupId, 574 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 575 throws com.liferay.portal.kernel.exception.SystemException, 576 com.liferay.portlet.wiki.NoSuchNodeException { 577 return getPersistence() 578 .filterFindByGroupId_PrevAndNext(nodeId, groupId, 579 orderByComparator); 580 } 581 582 /** 583 * Returns all the wiki nodes where companyId = ?. 584 * 585 * @param companyId the company ID 586 * @return the matching wiki nodes 587 * @throws SystemException if a system exception occurred 588 */ 589 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 590 long companyId) 591 throws com.liferay.portal.kernel.exception.SystemException { 592 return getPersistence().findByCompanyId(companyId); 593 } 594 595 /** 596 * Returns a range of all the wiki nodes where companyId = ?. 597 * 598 * <p> 599 * 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. 600 * </p> 601 * 602 * @param companyId the company ID 603 * @param start the lower bound of the range of wiki nodes 604 * @param end the upper bound of the range of wiki nodes (not inclusive) 605 * @return the range of matching wiki nodes 606 * @throws SystemException if a system exception occurred 607 */ 608 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 609 long companyId, int start, int end) 610 throws com.liferay.portal.kernel.exception.SystemException { 611 return getPersistence().findByCompanyId(companyId, start, end); 612 } 613 614 /** 615 * Returns an ordered range of all the wiki nodes where companyId = ?. 616 * 617 * <p> 618 * 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. 619 * </p> 620 * 621 * @param companyId the company ID 622 * @param start the lower bound of the range of wiki nodes 623 * @param end the upper bound of the range of wiki nodes (not inclusive) 624 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 625 * @return the ordered range of matching wiki nodes 626 * @throws SystemException if a system exception occurred 627 */ 628 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 629 long companyId, int start, int end, 630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 631 throws com.liferay.portal.kernel.exception.SystemException { 632 return getPersistence() 633 .findByCompanyId(companyId, start, end, orderByComparator); 634 } 635 636 /** 637 * Returns the first wiki node in the ordered set where companyId = ?. 638 * 639 * @param companyId the company ID 640 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 641 * @return the first matching wiki node 642 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 643 * @throws SystemException if a system exception occurred 644 */ 645 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 646 long companyId, 647 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 648 throws com.liferay.portal.kernel.exception.SystemException, 649 com.liferay.portlet.wiki.NoSuchNodeException { 650 return getPersistence() 651 .findByCompanyId_First(companyId, orderByComparator); 652 } 653 654 /** 655 * Returns the first wiki node in the ordered set where companyId = ?. 656 * 657 * @param companyId the company ID 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_First( 663 long companyId, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 return getPersistence() 667 .fetchByCompanyId_First(companyId, orderByComparator); 668 } 669 670 /** 671 * Returns the last wiki node in the ordered set where companyId = ?. 672 * 673 * @param companyId the company ID 674 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 675 * @return the last matching wiki node 676 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 677 * @throws SystemException if a system exception occurred 678 */ 679 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 680 long companyId, 681 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 682 throws com.liferay.portal.kernel.exception.SystemException, 683 com.liferay.portlet.wiki.NoSuchNodeException { 684 return getPersistence() 685 .findByCompanyId_Last(companyId, orderByComparator); 686 } 687 688 /** 689 * Returns the last wiki node in the ordered set where companyId = ?. 690 * 691 * @param companyId the company ID 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_Last( 697 long companyId, 698 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence() 701 .fetchByCompanyId_Last(companyId, orderByComparator); 702 } 703 704 /** 705 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 706 * 707 * @param nodeId the primary key of the current wiki node 708 * @param companyId the company ID 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the previous, current, and next wiki node 711 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 715 long nodeId, long companyId, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException, 718 com.liferay.portlet.wiki.NoSuchNodeException { 719 return getPersistence() 720 .findByCompanyId_PrevAndNext(nodeId, companyId, 721 orderByComparator); 722 } 723 724 /** 725 * Returns the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 726 * 727 * @param groupId the group ID 728 * @param name the name 729 * @return the matching wiki node 730 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public static com.liferay.portlet.wiki.model.WikiNode findByG_N( 734 long groupId, java.lang.String name) 735 throws com.liferay.portal.kernel.exception.SystemException, 736 com.liferay.portlet.wiki.NoSuchNodeException { 737 return getPersistence().findByG_N(groupId, name); 738 } 739 740 /** 741 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 742 * 743 * @param groupId the group ID 744 * @param name the name 745 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 749 long groupId, java.lang.String name) 750 throws com.liferay.portal.kernel.exception.SystemException { 751 return getPersistence().fetchByG_N(groupId, name); 752 } 753 754 /** 755 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 756 * 757 * @param groupId the group ID 758 * @param name the name 759 * @param retrieveFromCache whether to use the finder cache 760 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 761 * @throws SystemException if a system exception occurred 762 */ 763 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 764 long groupId, java.lang.String name, boolean retrieveFromCache) 765 throws com.liferay.portal.kernel.exception.SystemException { 766 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 767 } 768 769 /** 770 * Returns all the wiki nodes. 771 * 772 * @return the wiki nodes 773 * @throws SystemException if a system exception occurred 774 */ 775 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 776 throws com.liferay.portal.kernel.exception.SystemException { 777 return getPersistence().findAll(); 778 } 779 780 /** 781 * Returns a range of all the wiki nodes. 782 * 783 * <p> 784 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 785 * </p> 786 * 787 * @param start the lower bound of the range of wiki nodes 788 * @param end the upper bound of the range of wiki nodes (not inclusive) 789 * @return the range of wiki nodes 790 * @throws SystemException if a system exception occurred 791 */ 792 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 793 int start, int end) 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().findAll(start, end); 796 } 797 798 /** 799 * Returns an ordered range of all the wiki nodes. 800 * 801 * <p> 802 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 803 * </p> 804 * 805 * @param start the lower bound of the range of wiki nodes 806 * @param end the upper bound of the range of wiki nodes (not inclusive) 807 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 808 * @return the ordered range of wiki nodes 809 * @throws SystemException if a system exception occurred 810 */ 811 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 812 int start, int end, 813 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 814 throws com.liferay.portal.kernel.exception.SystemException { 815 return getPersistence().findAll(start, end, orderByComparator); 816 } 817 818 /** 819 * Removes all the wiki nodes where uuid = ? from the database. 820 * 821 * @param uuid the uuid 822 * @throws SystemException if a system exception occurred 823 */ 824 public static void removeByUuid(java.lang.String uuid) 825 throws com.liferay.portal.kernel.exception.SystemException { 826 getPersistence().removeByUuid(uuid); 827 } 828 829 /** 830 * Removes the wiki node where uuid = ? and groupId = ? from the database. 831 * 832 * @param uuid the uuid 833 * @param groupId the group ID 834 * @return the wiki node that was removed 835 * @throws SystemException if a system exception occurred 836 */ 837 public static com.liferay.portlet.wiki.model.WikiNode removeByUUID_G( 838 java.lang.String uuid, long groupId) 839 throws com.liferay.portal.kernel.exception.SystemException, 840 com.liferay.portlet.wiki.NoSuchNodeException { 841 return getPersistence().removeByUUID_G(uuid, groupId); 842 } 843 844 /** 845 * Removes all the wiki nodes where groupId = ? from the database. 846 * 847 * @param groupId the group ID 848 * @throws SystemException if a system exception occurred 849 */ 850 public static void removeByGroupId(long groupId) 851 throws com.liferay.portal.kernel.exception.SystemException { 852 getPersistence().removeByGroupId(groupId); 853 } 854 855 /** 856 * Removes all the wiki nodes where companyId = ? from the database. 857 * 858 * @param companyId the company ID 859 * @throws SystemException if a system exception occurred 860 */ 861 public static void removeByCompanyId(long companyId) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 getPersistence().removeByCompanyId(companyId); 864 } 865 866 /** 867 * Removes the wiki node where groupId = ? and name = ? from the database. 868 * 869 * @param groupId the group ID 870 * @param name the name 871 * @return the wiki node that was removed 872 * @throws SystemException if a system exception occurred 873 */ 874 public static com.liferay.portlet.wiki.model.WikiNode removeByG_N( 875 long groupId, java.lang.String name) 876 throws com.liferay.portal.kernel.exception.SystemException, 877 com.liferay.portlet.wiki.NoSuchNodeException { 878 return getPersistence().removeByG_N(groupId, name); 879 } 880 881 /** 882 * Removes all the wiki nodes from the database. 883 * 884 * @throws SystemException if a system exception occurred 885 */ 886 public static void removeAll() 887 throws com.liferay.portal.kernel.exception.SystemException { 888 getPersistence().removeAll(); 889 } 890 891 /** 892 * Returns the number of wiki nodes where uuid = ?. 893 * 894 * @param uuid the uuid 895 * @return the number of matching wiki nodes 896 * @throws SystemException if a system exception occurred 897 */ 898 public static int countByUuid(java.lang.String uuid) 899 throws com.liferay.portal.kernel.exception.SystemException { 900 return getPersistence().countByUuid(uuid); 901 } 902 903 /** 904 * Returns the number of wiki nodes where uuid = ? and groupId = ?. 905 * 906 * @param uuid the uuid 907 * @param groupId the group ID 908 * @return the number of matching wiki nodes 909 * @throws SystemException if a system exception occurred 910 */ 911 public static int countByUUID_G(java.lang.String uuid, long groupId) 912 throws com.liferay.portal.kernel.exception.SystemException { 913 return getPersistence().countByUUID_G(uuid, groupId); 914 } 915 916 /** 917 * Returns the number of wiki nodes where groupId = ?. 918 * 919 * @param groupId the group ID 920 * @return the number of matching wiki nodes 921 * @throws SystemException if a system exception occurred 922 */ 923 public static int countByGroupId(long groupId) 924 throws com.liferay.portal.kernel.exception.SystemException { 925 return getPersistence().countByGroupId(groupId); 926 } 927 928 /** 929 * Returns the number of wiki nodes that the user has permission to view where groupId = ?. 930 * 931 * @param groupId the group ID 932 * @return the number of matching wiki nodes that the user has permission to view 933 * @throws SystemException if a system exception occurred 934 */ 935 public static int filterCountByGroupId(long groupId) 936 throws com.liferay.portal.kernel.exception.SystemException { 937 return getPersistence().filterCountByGroupId(groupId); 938 } 939 940 /** 941 * Returns the number of wiki nodes where companyId = ?. 942 * 943 * @param companyId the company ID 944 * @return the number of matching wiki nodes 945 * @throws SystemException if a system exception occurred 946 */ 947 public static int countByCompanyId(long companyId) 948 throws com.liferay.portal.kernel.exception.SystemException { 949 return getPersistence().countByCompanyId(companyId); 950 } 951 952 /** 953 * Returns the number of wiki nodes where groupId = ? and name = ?. 954 * 955 * @param groupId the group ID 956 * @param name the name 957 * @return the number of matching wiki nodes 958 * @throws SystemException if a system exception occurred 959 */ 960 public static int countByG_N(long groupId, java.lang.String name) 961 throws com.liferay.portal.kernel.exception.SystemException { 962 return getPersistence().countByG_N(groupId, name); 963 } 964 965 /** 966 * Returns the number of wiki nodes. 967 * 968 * @return the number of wiki nodes 969 * @throws SystemException if a system exception occurred 970 */ 971 public static int countAll() 972 throws com.liferay.portal.kernel.exception.SystemException { 973 return getPersistence().countAll(); 974 } 975 976 public static WikiNodePersistence getPersistence() { 977 if (_persistence == null) { 978 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName()); 979 980 ReferenceRegistry.registerReference(WikiNodeUtil.class, 981 "_persistence"); 982 } 983 984 return _persistence; 985 } 986 987 /** 988 * @deprecated 989 */ 990 public void setPersistence(WikiNodePersistence persistence) { 991 } 992 993 private static WikiNodePersistence _persistence; 994 }