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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.wiki.model.WikiNode; 020 021 /** 022 * The persistence interface for the wiki node service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see WikiNodePersistenceImpl 030 * @see WikiNodeUtil 031 * @generated 032 */ 033 public interface WikiNodePersistence extends BasePersistence<WikiNode> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link WikiNodeUtil} to access the wiki node persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the wiki nodes where uuid = ?. 042 * 043 * @param uuid the uuid 044 * @return the matching wiki nodes 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 048 java.lang.String uuid) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the wiki nodes where uuid = ?. 053 * 054 * <p> 055 * 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. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of wiki nodes 060 * @param end the upper bound of the range of wiki nodes (not inclusive) 061 * @return the range of matching wiki nodes 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 065 java.lang.String uuid, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the wiki nodes where uuid = ?. 070 * 071 * <p> 072 * 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. 073 * </p> 074 * 075 * @param uuid the uuid 076 * @param start the lower bound of the range of wiki nodes 077 * @param end the upper bound of the range of wiki nodes (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching wiki nodes 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 083 java.lang.String uuid, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first wiki node in the ordered set where uuid = ?. 089 * 090 * @param uuid the uuid 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching wiki node 093 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 097 java.lang.String uuid, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.wiki.NoSuchNodeException; 101 102 /** 103 * Returns the first wiki node in the ordered set where uuid = ?. 104 * 105 * @param uuid the uuid 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_First( 111 java.lang.String uuid, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last wiki node in the ordered set where uuid = ?. 117 * 118 * @param uuid the uuid 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching wiki node 121 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 125 java.lang.String uuid, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.wiki.NoSuchNodeException; 129 130 /** 131 * Returns the last wiki node in the ordered set where uuid = ?. 132 * 133 * @param uuid the uuid 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_Last( 139 java.lang.String uuid, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 145 * 146 * @param nodeId the primary key of the current wiki node 147 * @param uuid the uuid 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next wiki node 150 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 154 long nodeId, java.lang.String uuid, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.wiki.NoSuchNodeException; 158 159 /** 160 * Removes all the wiki nodes where uuid = ? from the database. 161 * 162 * @param uuid the uuid 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByUuid(java.lang.String uuid) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of wiki nodes where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @return the number of matching wiki nodes 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByUuid(java.lang.String uuid) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 180 * 181 * @param uuid the uuid 182 * @param groupId the group ID 183 * @return the matching wiki node 184 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 188 java.lang.String uuid, long groupId) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.wiki.NoSuchNodeException; 191 192 /** 193 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 194 * 195 * @param uuid the uuid 196 * @param groupId the group ID 197 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 201 java.lang.String uuid, long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 206 * 207 * @param uuid the uuid 208 * @param groupId the group ID 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 214 java.lang.String uuid, long groupId, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the wiki node where uuid = ? and groupId = ? from the database. 219 * 220 * @param uuid the uuid 221 * @param groupId the group ID 222 * @return the wiki node that was removed 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.wiki.model.WikiNode removeByUUID_G( 226 java.lang.String uuid, long groupId) 227 throws com.liferay.portal.kernel.exception.SystemException, 228 com.liferay.portlet.wiki.NoSuchNodeException; 229 230 /** 231 * Returns the number of wiki nodes where uuid = ? and groupId = ?. 232 * 233 * @param uuid the uuid 234 * @param groupId the group ID 235 * @return the number of matching wiki nodes 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByUUID_G(java.lang.String uuid, long groupId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns all the wiki nodes where uuid = ? and companyId = ?. 243 * 244 * @param uuid the uuid 245 * @param companyId the company ID 246 * @return the matching wiki nodes 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 250 java.lang.String uuid, long companyId) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns a range of all the wiki nodes where uuid = ? and companyId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param uuid the uuid 261 * @param companyId the company ID 262 * @param start the lower bound of the range of wiki nodes 263 * @param end the upper bound of the range of wiki nodes (not inclusive) 264 * @return the range of matching wiki nodes 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 268 java.lang.String uuid, long companyId, int start, int end) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns an ordered range of all the wiki nodes where uuid = ? and companyId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param start the lower bound of the range of wiki nodes 281 * @param end the upper bound of the range of wiki nodes (not inclusive) 282 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 283 * @return the ordered range of matching wiki nodes 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C( 287 java.lang.String uuid, long companyId, int start, int end, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns the first wiki node in the ordered set where uuid = ? and companyId = ?. 293 * 294 * @param uuid the uuid 295 * @param companyId the company ID 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the first matching wiki node 298 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.wiki.model.WikiNode findByUuid_C_First( 302 java.lang.String uuid, long companyId, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.wiki.NoSuchNodeException; 306 307 /** 308 * Returns the first wiki node in the ordered set where uuid = ? and companyId = ?. 309 * 310 * @param uuid the uuid 311 * @param companyId the company ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_First( 317 java.lang.String uuid, long companyId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Returns the last wiki node in the ordered set where uuid = ? and companyId = ?. 323 * 324 * @param uuid the uuid 325 * @param companyId the company ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the last matching wiki node 328 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public com.liferay.portlet.wiki.model.WikiNode findByUuid_C_Last( 332 java.lang.String uuid, long companyId, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.wiki.NoSuchNodeException; 336 337 /** 338 * Returns the last wiki node in the ordered set where uuid = ? and companyId = ?. 339 * 340 * @param uuid the uuid 341 * @param companyId the company ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_Last( 347 java.lang.String uuid, long companyId, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException; 350 351 /** 352 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ? and companyId = ?. 353 * 354 * @param nodeId the primary key of the current wiki node 355 * @param uuid the uuid 356 * @param companyId the company ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next wiki node 359 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_C_PrevAndNext( 363 long nodeId, java.lang.String uuid, long companyId, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException, 366 com.liferay.portlet.wiki.NoSuchNodeException; 367 368 /** 369 * Removes all the wiki nodes where uuid = ? and companyId = ? from the database. 370 * 371 * @param uuid the uuid 372 * @param companyId the company ID 373 * @throws SystemException if a system exception occurred 374 */ 375 public void removeByUuid_C(java.lang.String uuid, long companyId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns the number of wiki nodes where uuid = ? and companyId = ?. 380 * 381 * @param uuid the uuid 382 * @param companyId the company ID 383 * @return the number of matching wiki nodes 384 * @throws SystemException if a system exception occurred 385 */ 386 public int countByUuid_C(java.lang.String uuid, long companyId) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Returns all the wiki nodes where groupId = ?. 391 * 392 * @param groupId the group ID 393 * @return the matching wiki nodes 394 * @throws SystemException if a system exception occurred 395 */ 396 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 397 long groupId) 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns a range of all the wiki nodes where groupId = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param groupId the group ID 408 * @param start the lower bound of the range of wiki nodes 409 * @param end the upper bound of the range of wiki nodes (not inclusive) 410 * @return the range of matching wiki nodes 411 * @throws SystemException if a system exception occurred 412 */ 413 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 414 long groupId, int start, int end) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns an ordered range of all the wiki nodes where groupId = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param groupId the group ID 425 * @param start the lower bound of the range of wiki nodes 426 * @param end the upper bound of the range of wiki nodes (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of matching wiki nodes 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 432 long groupId, int start, int end, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Returns the first wiki node in the ordered set where groupId = ?. 438 * 439 * @param groupId the group ID 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the first matching wiki node 442 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.wiki.NoSuchNodeException; 450 451 /** 452 * Returns the first wiki node in the ordered set where groupId = ?. 453 * 454 * @param groupId the group ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_First( 460 long groupId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns the last wiki node in the ordered set where groupId = ?. 466 * 467 * @param groupId the group ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the last matching wiki node 470 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 474 long groupId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.wiki.NoSuchNodeException; 478 479 /** 480 * Returns the last wiki node in the ordered set where groupId = ?. 481 * 482 * @param groupId the group ID 483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 484 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_Last( 488 long groupId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 494 * 495 * @param nodeId the primary key of the current wiki node 496 * @param groupId the group ID 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next wiki node 499 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 503 long nodeId, long groupId, 504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 505 throws com.liferay.portal.kernel.exception.SystemException, 506 com.liferay.portlet.wiki.NoSuchNodeException; 507 508 /** 509 * Returns all the wiki nodes that the user has permission to view where groupId = ?. 510 * 511 * @param groupId the group ID 512 * @return the matching wiki nodes that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 516 long groupId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ?. 521 * 522 * <p> 523 * 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. 524 * </p> 525 * 526 * @param groupId the group ID 527 * @param start the lower bound of the range of wiki nodes 528 * @param end the upper bound of the range of wiki nodes (not inclusive) 529 * @return the range of matching wiki nodes that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 533 long groupId, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ?. 538 * 539 * <p> 540 * 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. 541 * </p> 542 * 543 * @param groupId the group ID 544 * @param start the lower bound of the range of wiki nodes 545 * @param end the upper bound of the range of wiki nodes (not inclusive) 546 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 547 * @return the ordered range of matching wiki nodes that the user has permission to view 548 * @throws SystemException if a system exception occurred 549 */ 550 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 551 long groupId, int start, int end, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * 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 = ?. 557 * 558 * @param nodeId the primary key of the current wiki node 559 * @param groupId the group ID 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the previous, current, and next wiki node 562 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 566 long nodeId, long groupId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.wiki.NoSuchNodeException; 570 571 /** 572 * Removes all the wiki nodes where groupId = ? from the database. 573 * 574 * @param groupId the group ID 575 * @throws SystemException if a system exception occurred 576 */ 577 public void removeByGroupId(long groupId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns the number of wiki nodes where groupId = ?. 582 * 583 * @param groupId the group ID 584 * @return the number of matching wiki nodes 585 * @throws SystemException if a system exception occurred 586 */ 587 public int countByGroupId(long groupId) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Returns the number of wiki nodes that the user has permission to view where groupId = ?. 592 * 593 * @param groupId the group ID 594 * @return the number of matching wiki nodes that the user has permission to view 595 * @throws SystemException if a system exception occurred 596 */ 597 public int filterCountByGroupId(long groupId) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Returns all the wiki nodes where companyId = ?. 602 * 603 * @param companyId the company ID 604 * @return the matching wiki nodes 605 * @throws SystemException if a system exception occurred 606 */ 607 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 608 long companyId) 609 throws com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Returns a range of all the wiki nodes where companyId = ?. 613 * 614 * <p> 615 * 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. 616 * </p> 617 * 618 * @param companyId the company ID 619 * @param start the lower bound of the range of wiki nodes 620 * @param end the upper bound of the range of wiki nodes (not inclusive) 621 * @return the range of matching wiki nodes 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 625 long companyId, int start, int end) 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns an ordered range of all the wiki nodes where companyId = ?. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param companyId the company ID 636 * @param start the lower bound of the range of wiki nodes 637 * @param end the upper bound of the range of wiki nodes (not inclusive) 638 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 639 * @return the ordered range of matching wiki nodes 640 * @throws SystemException if a system exception occurred 641 */ 642 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 643 long companyId, int start, int end, 644 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Returns the first wiki node in the ordered set where companyId = ?. 649 * 650 * @param companyId the company ID 651 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 652 * @return the first matching wiki node 653 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 657 long companyId, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException, 660 com.liferay.portlet.wiki.NoSuchNodeException; 661 662 /** 663 * Returns the first wiki node in the ordered set where companyId = ?. 664 * 665 * @param companyId the company ID 666 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 667 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 668 * @throws SystemException if a system exception occurred 669 */ 670 public com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_First( 671 long companyId, 672 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 673 throws com.liferay.portal.kernel.exception.SystemException; 674 675 /** 676 * Returns the last wiki node in the ordered set where companyId = ?. 677 * 678 * @param companyId the company ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching wiki node 681 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 685 long companyId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.wiki.NoSuchNodeException; 689 690 /** 691 * Returns the last wiki node in the ordered set where companyId = ?. 692 * 693 * @param companyId the company ID 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_Last( 699 long companyId, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.kernel.exception.SystemException; 702 703 /** 704 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 705 * 706 * @param nodeId the primary key of the current wiki node 707 * @param companyId the company ID 708 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 709 * @return the previous, current, and next wiki node 710 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 711 * @throws SystemException if a system exception occurred 712 */ 713 public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 714 long nodeId, long companyId, 715 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 716 throws com.liferay.portal.kernel.exception.SystemException, 717 com.liferay.portlet.wiki.NoSuchNodeException; 718 719 /** 720 * Removes all the wiki nodes where companyId = ? from the database. 721 * 722 * @param companyId the company ID 723 * @throws SystemException if a system exception occurred 724 */ 725 public void removeByCompanyId(long companyId) 726 throws com.liferay.portal.kernel.exception.SystemException; 727 728 /** 729 * Returns the number of wiki nodes where companyId = ?. 730 * 731 * @param companyId the company ID 732 * @return the number of matching wiki nodes 733 * @throws SystemException if a system exception occurred 734 */ 735 public int countByCompanyId(long companyId) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 740 * 741 * @param groupId the group ID 742 * @param name the name 743 * @return the matching wiki node 744 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 745 * @throws SystemException if a system exception occurred 746 */ 747 public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId, 748 java.lang.String name) 749 throws com.liferay.portal.kernel.exception.SystemException, 750 com.liferay.portlet.wiki.NoSuchNodeException; 751 752 /** 753 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 754 * 755 * @param groupId the group ID 756 * @param name the name 757 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 758 * @throws SystemException if a system exception occurred 759 */ 760 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 761 java.lang.String name) 762 throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 766 * 767 * @param groupId the group ID 768 * @param name the name 769 * @param retrieveFromCache whether to use the finder cache 770 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 774 java.lang.String name, boolean retrieveFromCache) 775 throws com.liferay.portal.kernel.exception.SystemException; 776 777 /** 778 * Removes the wiki node where groupId = ? and name = ? from the database. 779 * 780 * @param groupId the group ID 781 * @param name the name 782 * @return the wiki node that was removed 783 * @throws SystemException if a system exception occurred 784 */ 785 public com.liferay.portlet.wiki.model.WikiNode removeByG_N(long groupId, 786 java.lang.String name) 787 throws com.liferay.portal.kernel.exception.SystemException, 788 com.liferay.portlet.wiki.NoSuchNodeException; 789 790 /** 791 * Returns the number of wiki nodes where groupId = ? and name = ?. 792 * 793 * @param groupId the group ID 794 * @param name the name 795 * @return the number of matching wiki nodes 796 * @throws SystemException if a system exception occurred 797 */ 798 public int countByG_N(long groupId, java.lang.String name) 799 throws com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Returns all the wiki nodes where groupId = ? and status = ?. 803 * 804 * @param groupId the group ID 805 * @param status the status 806 * @return the matching wiki nodes 807 * @throws SystemException if a system exception occurred 808 */ 809 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 810 long groupId, int status) 811 throws com.liferay.portal.kernel.exception.SystemException; 812 813 /** 814 * Returns a range of all the wiki nodes where groupId = ? and status = ?. 815 * 816 * <p> 817 * 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. 818 * </p> 819 * 820 * @param groupId the group ID 821 * @param status the status 822 * @param start the lower bound of the range of wiki nodes 823 * @param end the upper bound of the range of wiki nodes (not inclusive) 824 * @return the range of matching wiki nodes 825 * @throws SystemException if a system exception occurred 826 */ 827 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 828 long groupId, int status, int start, int end) 829 throws com.liferay.portal.kernel.exception.SystemException; 830 831 /** 832 * Returns an ordered range of all the wiki nodes where groupId = ? and status = ?. 833 * 834 * <p> 835 * 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. 836 * </p> 837 * 838 * @param groupId the group ID 839 * @param status the status 840 * @param start the lower bound of the range of wiki nodes 841 * @param end the upper bound of the range of wiki nodes (not inclusive) 842 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 843 * @return the ordered range of matching wiki nodes 844 * @throws SystemException if a system exception occurred 845 */ 846 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S( 847 long groupId, int status, int start, int end, 848 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 849 throws com.liferay.portal.kernel.exception.SystemException; 850 851 /** 852 * Returns the first wiki node in the ordered set where groupId = ? and status = ?. 853 * 854 * @param groupId the group ID 855 * @param status the status 856 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 857 * @return the first matching wiki node 858 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 859 * @throws SystemException if a system exception occurred 860 */ 861 public com.liferay.portlet.wiki.model.WikiNode findByG_S_First( 862 long groupId, int status, 863 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 864 throws com.liferay.portal.kernel.exception.SystemException, 865 com.liferay.portlet.wiki.NoSuchNodeException; 866 867 /** 868 * Returns the first wiki node in the ordered set where groupId = ? and status = ?. 869 * 870 * @param groupId the group ID 871 * @param status the status 872 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 873 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 874 * @throws SystemException if a system exception occurred 875 */ 876 public com.liferay.portlet.wiki.model.WikiNode fetchByG_S_First( 877 long groupId, int status, 878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 879 throws com.liferay.portal.kernel.exception.SystemException; 880 881 /** 882 * Returns the last wiki node in the ordered set where groupId = ? and status = ?. 883 * 884 * @param groupId the group ID 885 * @param status the status 886 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 887 * @return the last matching wiki node 888 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 889 * @throws SystemException if a system exception occurred 890 */ 891 public com.liferay.portlet.wiki.model.WikiNode findByG_S_Last( 892 long groupId, int status, 893 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 894 throws com.liferay.portal.kernel.exception.SystemException, 895 com.liferay.portlet.wiki.NoSuchNodeException; 896 897 /** 898 * Returns the last wiki node in the ordered set where groupId = ? and status = ?. 899 * 900 * @param groupId the group ID 901 * @param status the status 902 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 903 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 904 * @throws SystemException if a system exception occurred 905 */ 906 public com.liferay.portlet.wiki.model.WikiNode fetchByG_S_Last( 907 long groupId, int status, 908 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 909 throws com.liferay.portal.kernel.exception.SystemException; 910 911 /** 912 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ? and status = ?. 913 * 914 * @param nodeId the primary key of the current wiki node 915 * @param groupId the group ID 916 * @param status the status 917 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 918 * @return the previous, current, and next wiki node 919 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 920 * @throws SystemException if a system exception occurred 921 */ 922 public com.liferay.portlet.wiki.model.WikiNode[] findByG_S_PrevAndNext( 923 long nodeId, long groupId, int status, 924 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 925 throws com.liferay.portal.kernel.exception.SystemException, 926 com.liferay.portlet.wiki.NoSuchNodeException; 927 928 /** 929 * Returns all the wiki nodes that the user has permission to view where groupId = ? and status = ?. 930 * 931 * @param groupId the group ID 932 * @param status the status 933 * @return the matching wiki nodes that the user has permission to view 934 * @throws SystemException if a system exception occurred 935 */ 936 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 937 long groupId, int status) 938 throws com.liferay.portal.kernel.exception.SystemException; 939 940 /** 941 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ? and status = ?. 942 * 943 * <p> 944 * 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. 945 * </p> 946 * 947 * @param groupId the group ID 948 * @param status the status 949 * @param start the lower bound of the range of wiki nodes 950 * @param end the upper bound of the range of wiki nodes (not inclusive) 951 * @return the range of matching wiki nodes that the user has permission to view 952 * @throws SystemException if a system exception occurred 953 */ 954 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 955 long groupId, int status, int start, int end) 956 throws com.liferay.portal.kernel.exception.SystemException; 957 958 /** 959 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ? and status = ?. 960 * 961 * <p> 962 * 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. 963 * </p> 964 * 965 * @param groupId the group ID 966 * @param status the status 967 * @param start the lower bound of the range of wiki nodes 968 * @param end the upper bound of the range of wiki nodes (not inclusive) 969 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 970 * @return the ordered range of matching wiki nodes that the user has permission to view 971 * @throws SystemException if a system exception occurred 972 */ 973 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S( 974 long groupId, int status, int start, int end, 975 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 976 throws com.liferay.portal.kernel.exception.SystemException; 977 978 /** 979 * 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 = ?. 980 * 981 * @param nodeId the primary key of the current wiki node 982 * @param groupId the group ID 983 * @param status the status 984 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 985 * @return the previous, current, and next wiki node 986 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 987 * @throws SystemException if a system exception occurred 988 */ 989 public com.liferay.portlet.wiki.model.WikiNode[] filterFindByG_S_PrevAndNext( 990 long nodeId, long groupId, int status, 991 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 992 throws com.liferay.portal.kernel.exception.SystemException, 993 com.liferay.portlet.wiki.NoSuchNodeException; 994 995 /** 996 * Removes all the wiki nodes where groupId = ? and status = ? from the database. 997 * 998 * @param groupId the group ID 999 * @param status the status 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public void removeByG_S(long groupId, int status) 1003 throws com.liferay.portal.kernel.exception.SystemException; 1004 1005 /** 1006 * Returns the number of wiki nodes where groupId = ? and status = ?. 1007 * 1008 * @param groupId the group ID 1009 * @param status the status 1010 * @return the number of matching wiki nodes 1011 * @throws SystemException if a system exception occurred 1012 */ 1013 public int countByG_S(long groupId, int status) 1014 throws com.liferay.portal.kernel.exception.SystemException; 1015 1016 /** 1017 * Returns the number of wiki nodes that the user has permission to view where groupId = ? and status = ?. 1018 * 1019 * @param groupId the group ID 1020 * @param status the status 1021 * @return the number of matching wiki nodes that the user has permission to view 1022 * @throws SystemException if a system exception occurred 1023 */ 1024 public int filterCountByG_S(long groupId, int status) 1025 throws com.liferay.portal.kernel.exception.SystemException; 1026 1027 /** 1028 * Returns all the wiki nodes where companyId = ? and status = ?. 1029 * 1030 * @param companyId the company ID 1031 * @param status the status 1032 * @return the matching wiki nodes 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1036 long companyId, int status) 1037 throws com.liferay.portal.kernel.exception.SystemException; 1038 1039 /** 1040 * Returns a range of all the wiki nodes where companyId = ? and status = ?. 1041 * 1042 * <p> 1043 * 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. 1044 * </p> 1045 * 1046 * @param companyId the company ID 1047 * @param status the status 1048 * @param start the lower bound of the range of wiki nodes 1049 * @param end the upper bound of the range of wiki nodes (not inclusive) 1050 * @return the range of matching wiki nodes 1051 * @throws SystemException if a system exception occurred 1052 */ 1053 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1054 long companyId, int status, int start, int end) 1055 throws com.liferay.portal.kernel.exception.SystemException; 1056 1057 /** 1058 * Returns an ordered range of all the wiki nodes where companyId = ? and status = ?. 1059 * 1060 * <p> 1061 * 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. 1062 * </p> 1063 * 1064 * @param companyId the company ID 1065 * @param status the status 1066 * @param start the lower bound of the range of wiki nodes 1067 * @param end the upper bound of the range of wiki nodes (not inclusive) 1068 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1069 * @return the ordered range of matching wiki nodes 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S( 1073 long companyId, int status, int start, int end, 1074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1075 throws com.liferay.portal.kernel.exception.SystemException; 1076 1077 /** 1078 * Returns the first wiki node in the ordered set where companyId = ? and status = ?. 1079 * 1080 * @param companyId the company ID 1081 * @param status the status 1082 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1083 * @return the first matching wiki node 1084 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 1085 * @throws SystemException if a system exception occurred 1086 */ 1087 public com.liferay.portlet.wiki.model.WikiNode findByC_S_First( 1088 long companyId, int status, 1089 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1090 throws com.liferay.portal.kernel.exception.SystemException, 1091 com.liferay.portlet.wiki.NoSuchNodeException; 1092 1093 /** 1094 * Returns the first wiki node in the ordered set where companyId = ? and status = ?. 1095 * 1096 * @param companyId the company ID 1097 * @param status the status 1098 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1099 * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public com.liferay.portlet.wiki.model.WikiNode fetchByC_S_First( 1103 long companyId, int status, 1104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1105 throws com.liferay.portal.kernel.exception.SystemException; 1106 1107 /** 1108 * Returns the last wiki node in the ordered set where companyId = ? and status = ?. 1109 * 1110 * @param companyId the company ID 1111 * @param status the status 1112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1113 * @return the last matching wiki node 1114 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 1115 * @throws SystemException if a system exception occurred 1116 */ 1117 public com.liferay.portlet.wiki.model.WikiNode findByC_S_Last( 1118 long companyId, int status, 1119 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1120 throws com.liferay.portal.kernel.exception.SystemException, 1121 com.liferay.portlet.wiki.NoSuchNodeException; 1122 1123 /** 1124 * Returns the last wiki node in the ordered set where companyId = ? and status = ?. 1125 * 1126 * @param companyId the company ID 1127 * @param status the status 1128 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1129 * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public com.liferay.portlet.wiki.model.WikiNode fetchByC_S_Last( 1133 long companyId, int status, 1134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1135 throws com.liferay.portal.kernel.exception.SystemException; 1136 1137 /** 1138 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ? and status = ?. 1139 * 1140 * @param nodeId the primary key of the current wiki node 1141 * @param companyId the company ID 1142 * @param status the status 1143 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1144 * @return the previous, current, and next wiki node 1145 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1146 * @throws SystemException if a system exception occurred 1147 */ 1148 public com.liferay.portlet.wiki.model.WikiNode[] findByC_S_PrevAndNext( 1149 long nodeId, long companyId, int status, 1150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1151 throws com.liferay.portal.kernel.exception.SystemException, 1152 com.liferay.portlet.wiki.NoSuchNodeException; 1153 1154 /** 1155 * Removes all the wiki nodes where companyId = ? and status = ? from the database. 1156 * 1157 * @param companyId the company ID 1158 * @param status the status 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public void removeByC_S(long companyId, int status) 1162 throws com.liferay.portal.kernel.exception.SystemException; 1163 1164 /** 1165 * Returns the number of wiki nodes where companyId = ? and status = ?. 1166 * 1167 * @param companyId the company ID 1168 * @param status the status 1169 * @return the number of matching wiki nodes 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 public int countByC_S(long companyId, int status) 1173 throws com.liferay.portal.kernel.exception.SystemException; 1174 1175 /** 1176 * Caches the wiki node in the entity cache if it is enabled. 1177 * 1178 * @param wikiNode the wiki node 1179 */ 1180 public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode); 1181 1182 /** 1183 * Caches the wiki nodes in the entity cache if it is enabled. 1184 * 1185 * @param wikiNodes the wiki nodes 1186 */ 1187 public void cacheResult( 1188 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes); 1189 1190 /** 1191 * Creates a new wiki node with the primary key. Does not add the wiki node to the database. 1192 * 1193 * @param nodeId the primary key for the new wiki node 1194 * @return the new wiki node 1195 */ 1196 public com.liferay.portlet.wiki.model.WikiNode create(long nodeId); 1197 1198 /** 1199 * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners. 1200 * 1201 * @param nodeId the primary key of the wiki node 1202 * @return the wiki node that was removed 1203 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId) 1207 throws com.liferay.portal.kernel.exception.SystemException, 1208 com.liferay.portlet.wiki.NoSuchNodeException; 1209 1210 public com.liferay.portlet.wiki.model.WikiNode updateImpl( 1211 com.liferay.portlet.wiki.model.WikiNode wikiNode) 1212 throws com.liferay.portal.kernel.exception.SystemException; 1213 1214 /** 1215 * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 1216 * 1217 * @param nodeId the primary key of the wiki node 1218 * @return the 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 com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId) 1223 throws com.liferay.portal.kernel.exception.SystemException, 1224 com.liferay.portlet.wiki.NoSuchNodeException; 1225 1226 /** 1227 * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found. 1228 * 1229 * @param nodeId the primary key of the wiki node 1230 * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found 1231 * @throws SystemException if a system exception occurred 1232 */ 1233 public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey( 1234 long nodeId) throws com.liferay.portal.kernel.exception.SystemException; 1235 1236 /** 1237 * Returns all the wiki nodes. 1238 * 1239 * @return the wiki nodes 1240 * @throws SystemException if a system exception occurred 1241 */ 1242 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 1243 throws com.liferay.portal.kernel.exception.SystemException; 1244 1245 /** 1246 * Returns a range of all the wiki nodes. 1247 * 1248 * <p> 1249 * 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. 1250 * </p> 1251 * 1252 * @param start the lower bound of the range of wiki nodes 1253 * @param end the upper bound of the range of wiki nodes (not inclusive) 1254 * @return the range of wiki nodes 1255 * @throws SystemException if a system exception occurred 1256 */ 1257 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 1258 int start, int end) 1259 throws com.liferay.portal.kernel.exception.SystemException; 1260 1261 /** 1262 * Returns an ordered range of all the wiki nodes. 1263 * 1264 * <p> 1265 * 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. 1266 * </p> 1267 * 1268 * @param start the lower bound of the range of wiki nodes 1269 * @param end the upper bound of the range of wiki nodes (not inclusive) 1270 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1271 * @return the ordered range of wiki nodes 1272 * @throws SystemException if a system exception occurred 1273 */ 1274 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 1275 int start, int end, 1276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1277 throws com.liferay.portal.kernel.exception.SystemException; 1278 1279 /** 1280 * Removes all the wiki nodes from the database. 1281 * 1282 * @throws SystemException if a system exception occurred 1283 */ 1284 public void removeAll() 1285 throws com.liferay.portal.kernel.exception.SystemException; 1286 1287 /** 1288 * Returns the number of wiki nodes. 1289 * 1290 * @return the number of wiki nodes 1291 * @throws SystemException if a system exception occurred 1292 */ 1293 public int countAll() 1294 throws com.liferay.portal.kernel.exception.SystemException; 1295 }