001 /** 002 * Copyright (c) 2000-2012 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 * <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 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 312 * @param groupId the group ID 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 * Returns 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 328 * @param groupId the group ID 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 * Returns 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 342 * @param groupId the group ID 343 * @param retrieveFromCache whether to use the finder cache 344 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 345 * @throws SystemException if a system exception occurred 346 */ 347 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 348 java.lang.String uuid, long groupId, boolean retrieveFromCache) 349 throws com.liferay.portal.kernel.exception.SystemException { 350 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 351 } 352 353 /** 354 * Returns all the wiki nodes where groupId = ?. 355 * 356 * @param groupId the group ID 357 * @return the matching wiki nodes 358 * @throws SystemException if a system exception occurred 359 */ 360 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 361 long groupId) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence().findByGroupId(groupId); 364 } 365 366 /** 367 * Returns a range of all the wiki nodes where groupId = ?. 368 * 369 * <p> 370 * 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. 371 * </p> 372 * 373 * @param groupId the group ID 374 * @param start the lower bound of the range of wiki nodes 375 * @param end the upper bound of the range of wiki nodes (not inclusive) 376 * @return the range of matching wiki nodes 377 * @throws SystemException if a system exception occurred 378 */ 379 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 380 long groupId, int start, int end) 381 throws com.liferay.portal.kernel.exception.SystemException { 382 return getPersistence().findByGroupId(groupId, start, end); 383 } 384 385 /** 386 * Returns an ordered range of all the wiki nodes where groupId = ?. 387 * 388 * <p> 389 * 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. 390 * </p> 391 * 392 * @param groupId the group ID 393 * @param start the lower bound of the range of wiki nodes 394 * @param end the upper bound of the range of wiki nodes (not inclusive) 395 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 396 * @return the ordered range of matching wiki nodes 397 * @throws SystemException if a system exception occurred 398 */ 399 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 400 long groupId, int start, int end, 401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 402 throws com.liferay.portal.kernel.exception.SystemException { 403 return getPersistence() 404 .findByGroupId(groupId, start, end, orderByComparator); 405 } 406 407 /** 408 * Returns the first wiki node in the ordered set where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching wiki node 417 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 418 * @throws SystemException if a system exception occurred 419 */ 420 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 421 long groupId, 422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 423 throws com.liferay.portal.kernel.exception.SystemException, 424 com.liferay.portlet.wiki.NoSuchNodeException { 425 return getPersistence().findByGroupId_First(groupId, orderByComparator); 426 } 427 428 /** 429 * Returns the last wiki node in the ordered set where groupId = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param groupId the group ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the last matching wiki node 438 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 442 long groupId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.wiki.NoSuchNodeException { 446 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 447 } 448 449 /** 450 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 451 * 452 * <p> 453 * 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. 454 * </p> 455 * 456 * @param nodeId the primary key of the current wiki node 457 * @param groupId the group ID 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the previous, current, and next wiki node 460 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 464 long nodeId, long groupId, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.wiki.NoSuchNodeException { 468 return getPersistence() 469 .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator); 470 } 471 472 /** 473 * Returns all the wiki nodes that the user has permission to view where groupId = ?. 474 * 475 * @param groupId the group ID 476 * @return the matching wiki nodes that the user has permission to view 477 * @throws SystemException if a system exception occurred 478 */ 479 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 480 long groupId) 481 throws com.liferay.portal.kernel.exception.SystemException { 482 return getPersistence().filterFindByGroupId(groupId); 483 } 484 485 /** 486 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param groupId the group ID 493 * @param start the lower bound of the range of wiki nodes 494 * @param end the upper bound of the range of wiki nodes (not inclusive) 495 * @return the range of matching wiki nodes that the user has permission to view 496 * @throws SystemException if a system exception occurred 497 */ 498 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 499 long groupId, int start, int end) 500 throws com.liferay.portal.kernel.exception.SystemException { 501 return getPersistence().filterFindByGroupId(groupId, start, end); 502 } 503 504 /** 505 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param groupId the group ID 512 * @param start the lower bound of the range of wiki nodes 513 * @param end the upper bound of the range of wiki nodes (not inclusive) 514 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 515 * @return the ordered range of matching wiki nodes that the user has permission to view 516 * @throws SystemException if a system exception occurred 517 */ 518 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 519 long groupId, int start, int end, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException { 522 return getPersistence() 523 .filterFindByGroupId(groupId, start, end, orderByComparator); 524 } 525 526 /** 527 * 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 = ?. 528 * 529 * @param nodeId the primary key of the current wiki node 530 * @param groupId the group ID 531 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 532 * @return the previous, current, and next wiki node 533 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 534 * @throws SystemException if a system exception occurred 535 */ 536 public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 537 long nodeId, long groupId, 538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.wiki.NoSuchNodeException { 541 return getPersistence() 542 .filterFindByGroupId_PrevAndNext(nodeId, groupId, 543 orderByComparator); 544 } 545 546 /** 547 * Returns all the wiki nodes where companyId = ?. 548 * 549 * @param companyId the company ID 550 * @return the matching wiki nodes 551 * @throws SystemException if a system exception occurred 552 */ 553 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 554 long companyId) 555 throws com.liferay.portal.kernel.exception.SystemException { 556 return getPersistence().findByCompanyId(companyId); 557 } 558 559 /** 560 * Returns a range of all the wiki nodes where companyId = ?. 561 * 562 * <p> 563 * 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. 564 * </p> 565 * 566 * @param companyId the company ID 567 * @param start the lower bound of the range of wiki nodes 568 * @param end the upper bound of the range of wiki nodes (not inclusive) 569 * @return the range of matching wiki nodes 570 * @throws SystemException if a system exception occurred 571 */ 572 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 573 long companyId, int start, int end) 574 throws com.liferay.portal.kernel.exception.SystemException { 575 return getPersistence().findByCompanyId(companyId, start, end); 576 } 577 578 /** 579 * Returns an ordered range of all the wiki nodes where companyId = ?. 580 * 581 * <p> 582 * 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. 583 * </p> 584 * 585 * @param companyId the company ID 586 * @param start the lower bound of the range of wiki nodes 587 * @param end the upper bound of the range of wiki nodes (not inclusive) 588 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 589 * @return the ordered range of matching wiki nodes 590 * @throws SystemException if a system exception occurred 591 */ 592 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 593 long companyId, int start, int end, 594 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 595 throws com.liferay.portal.kernel.exception.SystemException { 596 return getPersistence() 597 .findByCompanyId(companyId, start, end, orderByComparator); 598 } 599 600 /** 601 * Returns the first wiki node in the ordered set where companyId = ?. 602 * 603 * <p> 604 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 605 * </p> 606 * 607 * @param companyId the company ID 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the first matching wiki node 610 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 614 long companyId, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.kernel.exception.SystemException, 617 com.liferay.portlet.wiki.NoSuchNodeException { 618 return getPersistence() 619 .findByCompanyId_First(companyId, orderByComparator); 620 } 621 622 /** 623 * Returns the last wiki node in the ordered set where companyId = ?. 624 * 625 * <p> 626 * 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. 627 * </p> 628 * 629 * @param companyId the company ID 630 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 631 * @return the last matching wiki node 632 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 636 long companyId, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException, 639 com.liferay.portlet.wiki.NoSuchNodeException { 640 return getPersistence() 641 .findByCompanyId_Last(companyId, orderByComparator); 642 } 643 644 /** 645 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 646 * 647 * <p> 648 * 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. 649 * </p> 650 * 651 * @param nodeId the primary key of the current wiki node 652 * @param companyId the company ID 653 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 654 * @return the previous, current, and next wiki node 655 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 656 * @throws SystemException if a system exception occurred 657 */ 658 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 659 long nodeId, long companyId, 660 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 661 throws com.liferay.portal.kernel.exception.SystemException, 662 com.liferay.portlet.wiki.NoSuchNodeException { 663 return getPersistence() 664 .findByCompanyId_PrevAndNext(nodeId, companyId, 665 orderByComparator); 666 } 667 668 /** 669 * Returns the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 670 * 671 * @param groupId the group ID 672 * @param name the name 673 * @return the matching wiki node 674 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 675 * @throws SystemException if a system exception occurred 676 */ 677 public static com.liferay.portlet.wiki.model.WikiNode findByG_N( 678 long groupId, java.lang.String name) 679 throws com.liferay.portal.kernel.exception.SystemException, 680 com.liferay.portlet.wiki.NoSuchNodeException { 681 return getPersistence().findByG_N(groupId, name); 682 } 683 684 /** 685 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 686 * 687 * @param groupId the group ID 688 * @param name the name 689 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 690 * @throws SystemException if a system exception occurred 691 */ 692 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 693 long groupId, java.lang.String name) 694 throws com.liferay.portal.kernel.exception.SystemException { 695 return getPersistence().fetchByG_N(groupId, name); 696 } 697 698 /** 699 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 700 * 701 * @param groupId the group ID 702 * @param name the name 703 * @param retrieveFromCache whether to use the finder cache 704 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 705 * @throws SystemException if a system exception occurred 706 */ 707 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N( 708 long groupId, java.lang.String name, boolean retrieveFromCache) 709 throws com.liferay.portal.kernel.exception.SystemException { 710 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 711 } 712 713 /** 714 * Returns all the wiki nodes. 715 * 716 * @return the wiki nodes 717 * @throws SystemException if a system exception occurred 718 */ 719 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence().findAll(); 722 } 723 724 /** 725 * Returns a 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 732 * @param end the upper bound of the range of wiki nodes (not inclusive) 733 * @return the range of wiki nodes 734 * @throws SystemException if a system exception occurred 735 */ 736 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 737 int start, int end) 738 throws com.liferay.portal.kernel.exception.SystemException { 739 return getPersistence().findAll(start, end); 740 } 741 742 /** 743 * Returns an ordered range of all the wiki nodes. 744 * 745 * <p> 746 * 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. 747 * </p> 748 * 749 * @param start the lower bound of the range of wiki nodes 750 * @param end the upper bound of the range of wiki nodes (not inclusive) 751 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 752 * @return the ordered range of wiki nodes 753 * @throws SystemException if a system exception occurred 754 */ 755 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 756 int start, int end, 757 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 758 throws com.liferay.portal.kernel.exception.SystemException { 759 return getPersistence().findAll(start, end, orderByComparator); 760 } 761 762 /** 763 * Removes all the wiki nodes where uuid = ? from the database. 764 * 765 * @param uuid the uuid 766 * @throws SystemException if a system exception occurred 767 */ 768 public static void removeByUuid(java.lang.String uuid) 769 throws com.liferay.portal.kernel.exception.SystemException { 770 getPersistence().removeByUuid(uuid); 771 } 772 773 /** 774 * Removes the wiki node where uuid = ? and groupId = ? from the database. 775 * 776 * @param uuid the uuid 777 * @param groupId the group ID 778 * @throws SystemException if a system exception occurred 779 */ 780 public static void removeByUUID_G(java.lang.String uuid, long groupId) 781 throws com.liferay.portal.kernel.exception.SystemException, 782 com.liferay.portlet.wiki.NoSuchNodeException { 783 getPersistence().removeByUUID_G(uuid, groupId); 784 } 785 786 /** 787 * Removes all the wiki nodes where groupId = ? from the database. 788 * 789 * @param groupId the group ID 790 * @throws SystemException if a system exception occurred 791 */ 792 public static void removeByGroupId(long groupId) 793 throws com.liferay.portal.kernel.exception.SystemException { 794 getPersistence().removeByGroupId(groupId); 795 } 796 797 /** 798 * Removes all the wiki nodes where companyId = ? from the database. 799 * 800 * @param companyId the company ID 801 * @throws SystemException if a system exception occurred 802 */ 803 public static void removeByCompanyId(long companyId) 804 throws com.liferay.portal.kernel.exception.SystemException { 805 getPersistence().removeByCompanyId(companyId); 806 } 807 808 /** 809 * Removes the wiki node where groupId = ? and name = ? from the database. 810 * 811 * @param groupId the group ID 812 * @param name the name 813 * @throws SystemException if a system exception occurred 814 */ 815 public static void removeByG_N(long groupId, java.lang.String name) 816 throws com.liferay.portal.kernel.exception.SystemException, 817 com.liferay.portlet.wiki.NoSuchNodeException { 818 getPersistence().removeByG_N(groupId, name); 819 } 820 821 /** 822 * Removes all the wiki nodes from the database. 823 * 824 * @throws SystemException if a system exception occurred 825 */ 826 public static void removeAll() 827 throws com.liferay.portal.kernel.exception.SystemException { 828 getPersistence().removeAll(); 829 } 830 831 /** 832 * Returns the number of wiki nodes where uuid = ?. 833 * 834 * @param uuid the uuid 835 * @return the number of matching wiki nodes 836 * @throws SystemException if a system exception occurred 837 */ 838 public static int countByUuid(java.lang.String uuid) 839 throws com.liferay.portal.kernel.exception.SystemException { 840 return getPersistence().countByUuid(uuid); 841 } 842 843 /** 844 * Returns the number of wiki nodes where uuid = ? and groupId = ?. 845 * 846 * @param uuid the uuid 847 * @param groupId the group ID 848 * @return the number of matching wiki nodes 849 * @throws SystemException if a system exception occurred 850 */ 851 public static int countByUUID_G(java.lang.String uuid, long groupId) 852 throws com.liferay.portal.kernel.exception.SystemException { 853 return getPersistence().countByUUID_G(uuid, groupId); 854 } 855 856 /** 857 * Returns the number of wiki nodes where groupId = ?. 858 * 859 * @param groupId the group ID 860 * @return the number of matching wiki nodes 861 * @throws SystemException if a system exception occurred 862 */ 863 public static int countByGroupId(long groupId) 864 throws com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence().countByGroupId(groupId); 866 } 867 868 /** 869 * Returns the number of wiki nodes that the user has permission to view where groupId = ?. 870 * 871 * @param groupId the group ID 872 * @return the number of matching wiki nodes that the user has permission to view 873 * @throws SystemException if a system exception occurred 874 */ 875 public static int filterCountByGroupId(long groupId) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 return getPersistence().filterCountByGroupId(groupId); 878 } 879 880 /** 881 * Returns the number of wiki nodes where companyId = ?. 882 * 883 * @param companyId the company ID 884 * @return the number of matching wiki nodes 885 * @throws SystemException if a system exception occurred 886 */ 887 public static int countByCompanyId(long companyId) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence().countByCompanyId(companyId); 890 } 891 892 /** 893 * Returns the number of wiki nodes where groupId = ? and name = ?. 894 * 895 * @param groupId the group ID 896 * @param name the name 897 * @return the number of matching wiki nodes 898 * @throws SystemException if a system exception occurred 899 */ 900 public static int countByG_N(long groupId, java.lang.String name) 901 throws com.liferay.portal.kernel.exception.SystemException { 902 return getPersistence().countByG_N(groupId, name); 903 } 904 905 /** 906 * Returns the number of wiki nodes. 907 * 908 * @return the number of wiki nodes 909 * @throws SystemException if a system exception occurred 910 */ 911 public static int countAll() 912 throws com.liferay.portal.kernel.exception.SystemException { 913 return getPersistence().countAll(); 914 } 915 916 public static WikiNodePersistence getPersistence() { 917 if (_persistence == null) { 918 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName()); 919 920 ReferenceRegistry.registerReference(WikiNodeUtil.class, 921 "_persistence"); 922 } 923 924 return _persistence; 925 } 926 927 public void setPersistence(WikiNodePersistence persistence) { 928 _persistence = persistence; 929 930 ReferenceRegistry.registerReference(WikiNodeUtil.class, "_persistence"); 931 } 932 933 private static WikiNodePersistence _persistence; 934 }