001 /** 002 * Copyright (c) 2000-2010 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.service.ServiceContext; 022 023 import com.liferay.portlet.wiki.model.WikiNode; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the wiki node service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see WikiNodePersistence 036 * @see WikiNodePersistenceImpl 037 * @generated 038 */ 039 public class WikiNodeUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(WikiNode wikiNode) { 051 getPersistence().clearCache(wikiNode); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery) 066 throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<WikiNode> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<WikiNode> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static WikiNode remove(WikiNode wikiNode) throws SystemException { 094 return getPersistence().remove(wikiNode); 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 to cache 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 to cache 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. 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the wiki nodes where uuid = ?. 192 * 193 * @param uuid the uuid to search with 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 * Finds 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 to search with 211 * @param start the lower bound of the range of wiki nodes to return 212 * @param end the upper bound of the range of wiki nodes to return (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 * Finds 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 to search with 230 * @param start the lower bound of the range of wiki nodes to return 231 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 232 * @param orderByComparator the comparator to order the results by 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 * Finds the first wiki node in the ordered set where uuid = ?. 245 * 246 * <p> 247 * 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. 248 * </p> 249 * 250 * @param uuid the uuid to search with 251 * @param orderByComparator the comparator to order the set by 252 * @return the first matching wiki node 253 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.wiki.NoSuchNodeException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Finds the last wiki node in the ordered set where uuid = ?. 266 * 267 * <p> 268 * 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. 269 * </p> 270 * 271 * @param uuid the uuid to search with 272 * @param orderByComparator the comparator to order the set by 273 * @return the last matching wiki node 274 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 275 * @throws SystemException if a system exception occurred 276 */ 277 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 278 java.lang.String uuid, 279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 280 throws com.liferay.portal.kernel.exception.SystemException, 281 com.liferay.portlet.wiki.NoSuchNodeException { 282 return getPersistence().findByUuid_Last(uuid, orderByComparator); 283 } 284 285 /** 286 * Finds the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 287 * 288 * <p> 289 * 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. 290 * </p> 291 * 292 * @param nodeId the primary key of the current wiki node 293 * @param uuid the uuid to search with 294 * @param orderByComparator the comparator to order the set by 295 * @return the previous, current, and next wiki node 296 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 300 long nodeId, java.lang.String uuid, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.kernel.exception.SystemException, 303 com.liferay.portlet.wiki.NoSuchNodeException { 304 return getPersistence() 305 .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator); 306 } 307 308 /** 309 * Finds the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 310 * 311 * @param uuid the uuid to search with 312 * @param groupId the group id to search with 313 * @return the matching wiki node 314 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 315 * @throws SystemException if a system exception occurred 316 */ 317 public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 318 java.lang.String uuid, long groupId) 319 throws com.liferay.portal.kernel.exception.SystemException, 320 com.liferay.portlet.wiki.NoSuchNodeException { 321 return getPersistence().findByUUID_G(uuid, groupId); 322 } 323 324 /** 325 * Finds the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 326 * 327 * @param uuid the uuid to search with 328 * @param groupId the group id to search with 329 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 330 * @throws SystemException if a system exception occurred 331 */ 332 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 333 java.lang.String uuid, long groupId) 334 throws com.liferay.portal.kernel.exception.SystemException { 335 return getPersistence().fetchByUUID_G(uuid, groupId); 336 } 337 338 /** 339 * Finds the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 340 * 341 * @param uuid the uuid to search with 342 * @param groupId the group id to search with 343 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 347 java.lang.String uuid, long groupId, boolean retrieveFromCache) 348 throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 350 } 351 352 /** 353 * Finds all the wiki nodes where groupId = ?. 354 * 355 * @param groupId the group id to search with 356 * @return the matching wiki nodes 357 * @throws SystemException if a system exception occurred 358 */ 359 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 360 long groupId) 361 throws com.liferay.portal.kernel.exception.SystemException { 362 return getPersistence().findByGroupId(groupId); 363 } 364 365 /** 366 * Finds a range of all the wiki nodes where groupId = ?. 367 * 368 * <p> 369 * 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. 370 * </p> 371 * 372 * @param groupId the group id to search with 373 * @param start the lower bound of the range of wiki nodes to return 374 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 375 * @return the range of 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, int start, int end) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence().findByGroupId(groupId, start, end); 382 } 383 384 /** 385 * Finds an ordered 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 to search with 392 * @param start the lower bound of the range of wiki nodes to return 393 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 394 * @param orderByComparator the comparator to order the results by 395 * @return the ordered range of matching wiki nodes 396 * @throws SystemException if a system exception occurred 397 */ 398 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 399 long groupId, int start, int end, 400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 401 throws com.liferay.portal.kernel.exception.SystemException { 402 return getPersistence() 403 .findByGroupId(groupId, start, end, orderByComparator); 404 } 405 406 /** 407 * Finds the first wiki node in the ordered set where groupId = ?. 408 * 409 * <p> 410 * 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. 411 * </p> 412 * 413 * @param groupId the group id to search with 414 * @param orderByComparator the comparator to order the set by 415 * @return the first matching wiki node 416 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 420 long groupId, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException, 423 com.liferay.portlet.wiki.NoSuchNodeException { 424 return getPersistence().findByGroupId_First(groupId, orderByComparator); 425 } 426 427 /** 428 * Finds the last wiki node in the ordered set where groupId = ?. 429 * 430 * <p> 431 * 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. 432 * </p> 433 * 434 * @param groupId the group id to search with 435 * @param orderByComparator the comparator to order the set by 436 * @return the last matching wiki node 437 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 441 long groupId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.kernel.exception.SystemException, 444 com.liferay.portlet.wiki.NoSuchNodeException { 445 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 446 } 447 448 /** 449 * Finds the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 450 * 451 * <p> 452 * 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. 453 * </p> 454 * 455 * @param nodeId the primary key of the current wiki node 456 * @param groupId the group id to search with 457 * @param orderByComparator the comparator to order the set by 458 * @return the previous, current, and next wiki node 459 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 463 long nodeId, long groupId, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException, 466 com.liferay.portlet.wiki.NoSuchNodeException { 467 return getPersistence() 468 .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator); 469 } 470 471 /** 472 * Filters by the user's permissions and finds all the wiki nodes where groupId = ?. 473 * 474 * @param groupId the group id to search with 475 * @return the matching wiki nodes that the user has permission to view 476 * @throws SystemException if a system exception occurred 477 */ 478 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 479 long groupId) 480 throws com.liferay.portal.kernel.exception.SystemException { 481 return getPersistence().filterFindByGroupId(groupId); 482 } 483 484 /** 485 * Filters by the user's permissions and finds a range of all the wiki nodes where groupId = ?. 486 * 487 * <p> 488 * 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. 489 * </p> 490 * 491 * @param groupId the group id to search with 492 * @param start the lower bound of the range of wiki nodes to return 493 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 494 * @return the range of matching wiki nodes that the user has permission to view 495 * @throws SystemException if a system exception occurred 496 */ 497 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 498 long groupId, int start, int end) 499 throws com.liferay.portal.kernel.exception.SystemException { 500 return getPersistence().filterFindByGroupId(groupId, start, end); 501 } 502 503 /** 504 * Filters by the user's permissions and finds an ordered range of all the wiki nodes where groupId = ?. 505 * 506 * <p> 507 * 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. 508 * </p> 509 * 510 * @param groupId the group id to search with 511 * @param start the lower bound of the range of wiki nodes to return 512 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 513 * @param orderByComparator the comparator to order the results by 514 * @return the ordered range of matching wiki nodes that the user has permission to view 515 * @throws SystemException if a system exception occurred 516 */ 517 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 518 long groupId, int start, int end, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return getPersistence() 522 .filterFindByGroupId(groupId, start, end, orderByComparator); 523 } 524 525 /** 526 * Finds all the wiki nodes where companyId = ?. 527 * 528 * @param companyId the company id to search with 529 * @return the matching wiki nodes 530 * @throws SystemException if a system exception occurred 531 */ 532 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 533 long companyId) 534 throws com.liferay.portal.kernel.exception.SystemException { 535 return getPersistence().findByCompanyId(companyId); 536 } 537 538 /** 539 * Finds a range of all the wiki nodes where companyId = ?. 540 * 541 * <p> 542 * 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. 543 * </p> 544 * 545 * @param companyId the company id to search with 546 * @param start the lower bound of the range of wiki nodes to return 547 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 548 * @return the range of matching wiki nodes 549 * @throws SystemException if a system exception occurred 550 */ 551 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 552 long companyId, int start, int end) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence().findByCompanyId(companyId, start, end); 555 } 556 557 /** 558 * Finds an ordered range of all the wiki nodes where companyId = ?. 559 * 560 * <p> 561 * 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. 562 * </p> 563 * 564 * @param companyId the company id to search with 565 * @param start the lower bound of the range of wiki nodes to return 566 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 567 * @param orderByComparator the comparator to order the results by 568 * @return the ordered range of matching wiki nodes 569 * @throws SystemException if a system exception occurred 570 */ 571 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 572 long companyId, int start, int end, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException { 575 return getPersistence() 576 .findByCompanyId(companyId, start, end, orderByComparator); 577 } 578 579 /** 580 * Finds the first wiki node in the ordered set where companyId = ?. 581 * 582 * <p> 583 * 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. 584 * </p> 585 * 586 * @param companyId the company id to search with 587 * @param orderByComparator the comparator to order the set by 588 * @return the first matching wiki node 589 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 593 long companyId, 594 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 595 throws com.liferay.portal.kernel.exception.SystemException, 596 com.liferay.portlet.wiki.NoSuchNodeException { 597 return getPersistence() 598 .findByCompanyId_First(companyId, orderByComparator); 599 } 600 601 /** 602 * Finds the last wiki node in the ordered set where companyId = ?. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param companyId the company id to search with 609 * @param orderByComparator the comparator to order the set by 610 * @return the last matching wiki node 611 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 615 long companyId, 616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.wiki.NoSuchNodeException { 619 return getPersistence() 620 .findByCompanyId_Last(companyId, orderByComparator); 621 } 622 623 /** 624 * Finds the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 625 * 626 * <p> 627 * 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. 628 * </p> 629 * 630 * @param nodeId the primary key of the current wiki node 631 * @param companyId the company id to search with 632 * @param orderByComparator the comparator to order the set by 633 * @return the previous, current, and next wiki node 634 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 635 * @throws SystemException if a system exception occurred 636 */ 637 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 638 long nodeId, long companyId, 639 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 640 throws com.liferay.portal.kernel.exception.SystemException, 641 com.liferay.portlet.wiki.NoSuchNodeException { 642 return getPersistence() 643 .findByCompanyId_PrevAndNext(nodeId, companyId, 644 orderByComparator); 645 } 646 647 /** 648 * Finds the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 649 * 650 * @param groupId the group id to search with 651 * @param name the name to search with 652 * @return the matching wiki node 653 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public static com.liferay.portlet.wiki.model.WikiNode findByG_N( 657 long groupId, java.lang.String name) 658 throws com.liferay.portal.kernel.exception.SystemException, 659 com.liferay.portlet.wiki.NoSuchNodeException { 660 return getPersistence().findByG_N(groupId, name); 661 } 662 663 /** 664 * Finds the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 665 * 666 * @param groupId the group id to search with 667 * @param name the name to search with 668 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 672 long groupId, java.lang.String name) 673 throws com.liferay.portal.kernel.exception.SystemException { 674 return getPersistence().fetchByG_N(groupId, name); 675 } 676 677 /** 678 * Finds the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 679 * 680 * @param groupId the group id to search with 681 * @param name the name to search with 682 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 683 * @throws SystemException if a system exception occurred 684 */ 685 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 686 long groupId, java.lang.String name, boolean retrieveFromCache) 687 throws com.liferay.portal.kernel.exception.SystemException { 688 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 689 } 690 691 /** 692 * Finds all the wiki nodes. 693 * 694 * @return the wiki nodes 695 * @throws SystemException if a system exception occurred 696 */ 697 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 698 throws com.liferay.portal.kernel.exception.SystemException { 699 return getPersistence().findAll(); 700 } 701 702 /** 703 * Finds a range of all the wiki nodes. 704 * 705 * <p> 706 * 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. 707 * </p> 708 * 709 * @param start the lower bound of the range of wiki nodes to return 710 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 711 * @return the range of wiki nodes 712 * @throws SystemException if a system exception occurred 713 */ 714 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 715 int start, int end) 716 throws com.liferay.portal.kernel.exception.SystemException { 717 return getPersistence().findAll(start, end); 718 } 719 720 /** 721 * Finds an ordered range of all the wiki nodes. 722 * 723 * <p> 724 * 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. 725 * </p> 726 * 727 * @param start the lower bound of the range of wiki nodes to return 728 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 729 * @param orderByComparator the comparator to order the results by 730 * @return the ordered range of wiki nodes 731 * @throws SystemException if a system exception occurred 732 */ 733 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 734 int start, int end, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException { 737 return getPersistence().findAll(start, end, orderByComparator); 738 } 739 740 /** 741 * Removes all the wiki nodes where uuid = ? from the database. 742 * 743 * @param uuid the uuid to search with 744 * @throws SystemException if a system exception occurred 745 */ 746 public static void removeByUuid(java.lang.String uuid) 747 throws com.liferay.portal.kernel.exception.SystemException { 748 getPersistence().removeByUuid(uuid); 749 } 750 751 /** 752 * Removes the wiki node where uuid = ? and groupId = ? from the database. 753 * 754 * @param uuid the uuid to search with 755 * @param groupId the group id to search with 756 * @throws SystemException if a system exception occurred 757 */ 758 public static void removeByUUID_G(java.lang.String uuid, long groupId) 759 throws com.liferay.portal.kernel.exception.SystemException, 760 com.liferay.portlet.wiki.NoSuchNodeException { 761 getPersistence().removeByUUID_G(uuid, groupId); 762 } 763 764 /** 765 * Removes all the wiki nodes where groupId = ? from the database. 766 * 767 * @param groupId the group id to search with 768 * @throws SystemException if a system exception occurred 769 */ 770 public static void removeByGroupId(long groupId) 771 throws com.liferay.portal.kernel.exception.SystemException { 772 getPersistence().removeByGroupId(groupId); 773 } 774 775 /** 776 * Removes all the wiki nodes where companyId = ? from the database. 777 * 778 * @param companyId the company id to search with 779 * @throws SystemException if a system exception occurred 780 */ 781 public static void removeByCompanyId(long companyId) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 getPersistence().removeByCompanyId(companyId); 784 } 785 786 /** 787 * Removes the wiki node where groupId = ? and name = ? from the database. 788 * 789 * @param groupId the group id to search with 790 * @param name the name to search with 791 * @throws SystemException if a system exception occurred 792 */ 793 public static void removeByG_N(long groupId, java.lang.String name) 794 throws com.liferay.portal.kernel.exception.SystemException, 795 com.liferay.portlet.wiki.NoSuchNodeException { 796 getPersistence().removeByG_N(groupId, name); 797 } 798 799 /** 800 * Removes all the wiki nodes from the database. 801 * 802 * @throws SystemException if a system exception occurred 803 */ 804 public static void removeAll() 805 throws com.liferay.portal.kernel.exception.SystemException { 806 getPersistence().removeAll(); 807 } 808 809 /** 810 * Counts all the wiki nodes where uuid = ?. 811 * 812 * @param uuid the uuid to search with 813 * @return the number of matching wiki nodes 814 * @throws SystemException if a system exception occurred 815 */ 816 public static int countByUuid(java.lang.String uuid) 817 throws com.liferay.portal.kernel.exception.SystemException { 818 return getPersistence().countByUuid(uuid); 819 } 820 821 /** 822 * Counts all the wiki nodes where uuid = ? and groupId = ?. 823 * 824 * @param uuid the uuid to search with 825 * @param groupId the group id to search with 826 * @return the number of matching wiki nodes 827 * @throws SystemException if a system exception occurred 828 */ 829 public static int countByUUID_G(java.lang.String uuid, long groupId) 830 throws com.liferay.portal.kernel.exception.SystemException { 831 return getPersistence().countByUUID_G(uuid, groupId); 832 } 833 834 /** 835 * Counts all the wiki nodes where groupId = ?. 836 * 837 * @param groupId the group id to search with 838 * @return the number of matching wiki nodes 839 * @throws SystemException if a system exception occurred 840 */ 841 public static int countByGroupId(long groupId) 842 throws com.liferay.portal.kernel.exception.SystemException { 843 return getPersistence().countByGroupId(groupId); 844 } 845 846 /** 847 * Filters by the user's permissions and counts all the wiki nodes where groupId = ?. 848 * 849 * @param groupId the group id to search with 850 * @return the number of matching wiki nodes that the user has permission to view 851 * @throws SystemException if a system exception occurred 852 */ 853 public static int filterCountByGroupId(long groupId) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 return getPersistence().filterCountByGroupId(groupId); 856 } 857 858 /** 859 * Counts all the wiki nodes where companyId = ?. 860 * 861 * @param companyId the company id to search with 862 * @return the number of matching wiki nodes 863 * @throws SystemException if a system exception occurred 864 */ 865 public static int countByCompanyId(long companyId) 866 throws com.liferay.portal.kernel.exception.SystemException { 867 return getPersistence().countByCompanyId(companyId); 868 } 869 870 /** 871 * Counts all the wiki nodes where groupId = ? and name = ?. 872 * 873 * @param groupId the group id to search with 874 * @param name the name to search with 875 * @return the number of matching wiki nodes 876 * @throws SystemException if a system exception occurred 877 */ 878 public static int countByG_N(long groupId, java.lang.String name) 879 throws com.liferay.portal.kernel.exception.SystemException { 880 return getPersistence().countByG_N(groupId, name); 881 } 882 883 /** 884 * Filters by the user's permissions and counts all the wiki nodes where groupId = ? and name = ?. 885 * 886 * @param groupId the group id to search with 887 * @param name the name to search with 888 * @return the number of matching wiki nodes that the user has permission to view 889 * @throws SystemException if a system exception occurred 890 */ 891 public static int filterCountByG_N(long groupId, java.lang.String name) 892 throws com.liferay.portal.kernel.exception.SystemException { 893 return getPersistence().filterCountByG_N(groupId, name); 894 } 895 896 /** 897 * Counts all the wiki nodes. 898 * 899 * @return the number of wiki nodes 900 * @throws SystemException if a system exception occurred 901 */ 902 public static int countAll() 903 throws com.liferay.portal.kernel.exception.SystemException { 904 return getPersistence().countAll(); 905 } 906 907 public static WikiNodePersistence getPersistence() { 908 if (_persistence == null) { 909 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName()); 910 } 911 912 return _persistence; 913 } 914 915 public void setPersistence(WikiNodePersistence persistence) { 916 _persistence = persistence; 917 } 918 919 private static WikiNodePersistence _persistence; 920 }