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