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