001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.wiki.service.persistence; 016 017 import com.liferay.portal.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 * Caches the wiki node in the entity cache if it is enabled. 042 * 043 * @param wikiNode the wiki node 044 */ 045 public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode); 046 047 /** 048 * Caches the wiki nodes in the entity cache if it is enabled. 049 * 050 * @param wikiNodes the wiki nodes 051 */ 052 public void cacheResult( 053 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes); 054 055 /** 056 * Creates a new wiki node with the primary key. Does not add the wiki node to the database. 057 * 058 * @param nodeId the primary key for the new wiki node 059 * @return the new wiki node 060 */ 061 public com.liferay.portlet.wiki.model.WikiNode create(long nodeId); 062 063 /** 064 * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param nodeId the primary key of the wiki node 067 * @return the wiki node that was removed 068 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId) 072 throws com.liferay.portal.kernel.exception.SystemException, 073 com.liferay.portlet.wiki.NoSuchNodeException; 074 075 public com.liferay.portlet.wiki.model.WikiNode updateImpl( 076 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge) 077 throws com.liferay.portal.kernel.exception.SystemException; 078 079 /** 080 * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 081 * 082 * @param nodeId the primary key of the wiki node 083 * @return the wiki node 084 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 085 * @throws SystemException if a system exception occurred 086 */ 087 public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId) 088 throws com.liferay.portal.kernel.exception.SystemException, 089 com.liferay.portlet.wiki.NoSuchNodeException; 090 091 /** 092 * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found. 093 * 094 * @param nodeId the primary key of the wiki node 095 * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found 096 * @throws SystemException if a system exception occurred 097 */ 098 public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey( 099 long nodeId) throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Returns all the wiki nodes where uuid = ?. 103 * 104 * @param uuid the uuid 105 * @return the matching wiki nodes 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 109 java.lang.String uuid) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Returns a range of all the wiki nodes where uuid = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param uuid the uuid 120 * @param start the lower bound of the range of wiki nodes 121 * @param end the upper bound of the range of wiki nodes (not inclusive) 122 * @return the range of matching wiki nodes 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 126 java.lang.String uuid, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Returns an ordered range of all the wiki nodes where uuid = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param uuid the uuid 137 * @param start the lower bound of the range of wiki nodes 138 * @param end the upper bound of the range of wiki nodes (not inclusive) 139 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 140 * @return the ordered range of matching wiki nodes 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 144 java.lang.String uuid, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Returns the first wiki node in the ordered set where uuid = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param uuid the uuid 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching wiki node 158 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 162 java.lang.String uuid, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.wiki.NoSuchNodeException; 166 167 /** 168 * Returns the last wiki node in the ordered set where uuid = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param uuid the uuid 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the last matching wiki node 177 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 181 java.lang.String uuid, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.wiki.NoSuchNodeException; 185 186 /** 187 * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param nodeId the primary key of the current wiki node 194 * @param uuid the uuid 195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 196 * @return the previous, current, and next wiki node 197 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 201 long nodeId, java.lang.String uuid, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.wiki.NoSuchNodeException; 205 206 /** 207 * Returns the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 208 * 209 * @param uuid the uuid 210 * @param groupId the group ID 211 * @return the matching wiki node 212 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 213 * @throws SystemException if a system exception occurred 214 */ 215 public com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 216 java.lang.String uuid, long groupId) 217 throws com.liferay.portal.kernel.exception.SystemException, 218 com.liferay.portlet.wiki.NoSuchNodeException; 219 220 /** 221 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 222 * 223 * @param uuid the uuid 224 * @param groupId the group ID 225 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 226 * @throws SystemException if a system exception occurred 227 */ 228 public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 229 java.lang.String uuid, long groupId) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Returns the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 234 * 235 * @param uuid the uuid 236 * @param groupId the group ID 237 * @param retrieveFromCache whether to use the finder cache 238 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 242 java.lang.String uuid, long groupId, boolean retrieveFromCache) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Returns all the wiki nodes where groupId = ?. 247 * 248 * @param groupId the group ID 249 * @return the matching wiki nodes 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 253 long groupId) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Returns a range of all the wiki nodes where groupId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param groupId the group ID 264 * @param start the lower bound of the range of wiki nodes 265 * @param end the upper bound of the range of wiki nodes (not inclusive) 266 * @return the range of matching wiki nodes 267 * @throws SystemException if a system exception occurred 268 */ 269 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 270 long groupId, int start, int end) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns an ordered range of all the wiki nodes where groupId = ?. 275 * 276 * <p> 277 * 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. 278 * </p> 279 * 280 * @param groupId the group ID 281 * @param start the lower bound of the range of wiki nodes 282 * @param end the upper bound of the range of wiki nodes (not inclusive) 283 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 284 * @return the ordered range of matching wiki nodes 285 * @throws SystemException if a system exception occurred 286 */ 287 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId( 288 long groupId, int start, int end, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Returns the first wiki node in the ordered set where groupId = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param groupId the group ID 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the first matching wiki node 302 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First( 306 long groupId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException, 309 com.liferay.portlet.wiki.NoSuchNodeException; 310 311 /** 312 * Returns the last wiki node in the ordered set where groupId = ?. 313 * 314 * <p> 315 * 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. 316 * </p> 317 * 318 * @param groupId the group ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the last matching wiki node 321 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last( 325 long groupId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.wiki.NoSuchNodeException; 329 330 /** 331 * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 332 * 333 * <p> 334 * 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. 335 * </p> 336 * 337 * @param nodeId the primary key of the current wiki node 338 * @param groupId the group ID 339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 340 * @return the previous, current, and next wiki node 341 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext( 345 long nodeId, long groupId, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.kernel.exception.SystemException, 348 com.liferay.portlet.wiki.NoSuchNodeException; 349 350 /** 351 * Returns all the wiki nodes that the user has permission to view where groupId = ?. 352 * 353 * @param groupId the group ID 354 * @return the matching wiki nodes that the user has permission to view 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 358 long groupId) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Returns a range of all the wiki nodes that the user has permission to view where groupId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param groupId the group ID 369 * @param start the lower bound of the range of wiki nodes 370 * @param end the upper bound of the range of wiki nodes (not inclusive) 371 * @return the range of matching wiki nodes that the user has permission to view 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 375 long groupId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = ?. 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. 383 * </p> 384 * 385 * @param groupId the group ID 386 * @param start the lower bound of the range of wiki nodes 387 * @param end the upper bound of the range of wiki nodes (not inclusive) 388 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 389 * @return the ordered range of matching wiki nodes that the user has permission to view 390 * @throws SystemException if a system exception occurred 391 */ 392 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId( 393 long groupId, int start, int end, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.kernel.exception.SystemException; 396 397 /** 398 * 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 = ?. 399 * 400 * @param nodeId the primary key of the current wiki node 401 * @param groupId the group ID 402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 403 * @return the previous, current, and next wiki node 404 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 408 long nodeId, long groupId, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException, 411 com.liferay.portlet.wiki.NoSuchNodeException; 412 413 /** 414 * Returns all the wiki nodes where companyId = ?. 415 * 416 * @param companyId the company ID 417 * @return the matching wiki nodes 418 * @throws SystemException if a system exception occurred 419 */ 420 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 421 long companyId) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Returns a range of all the wiki nodes where companyId = ?. 426 * 427 * <p> 428 * 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. 429 * </p> 430 * 431 * @param companyId the company ID 432 * @param start the lower bound of the range of wiki nodes 433 * @param end the upper bound of the range of wiki nodes (not inclusive) 434 * @return the range of matching wiki nodes 435 * @throws SystemException if a system exception occurred 436 */ 437 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 438 long companyId, int start, int end) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns an ordered range of all the wiki nodes where companyId = ?. 443 * 444 * <p> 445 * 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. 446 * </p> 447 * 448 * @param companyId the company ID 449 * @param start the lower bound of the range of wiki nodes 450 * @param end the upper bound of the range of wiki nodes (not inclusive) 451 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 452 * @return the ordered range of matching wiki nodes 453 * @throws SystemException if a system exception occurred 454 */ 455 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 456 long companyId, int start, int end, 457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 458 throws com.liferay.portal.kernel.exception.SystemException; 459 460 /** 461 * Returns the first wiki node in the ordered set where companyId = ?. 462 * 463 * <p> 464 * 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. 465 * </p> 466 * 467 * @param companyId the company ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the first 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 findByCompanyId_First( 474 long companyId, 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 companyId = ?. 481 * 482 * <p> 483 * 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. 484 * </p> 485 * 486 * @param companyId the company ID 487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 488 * @return the last matching wiki node 489 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 490 * @throws SystemException if a system exception occurred 491 */ 492 public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 493 long companyId, 494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 495 throws com.liferay.portal.kernel.exception.SystemException, 496 com.liferay.portlet.wiki.NoSuchNodeException; 497 498 /** 499 * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 500 * 501 * <p> 502 * 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. 503 * </p> 504 * 505 * @param nodeId the primary key of the current wiki node 506 * @param companyId the company ID 507 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 508 * @return the previous, current, and next wiki node 509 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 513 long nodeId, long companyId, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.kernel.exception.SystemException, 516 com.liferay.portlet.wiki.NoSuchNodeException; 517 518 /** 519 * Returns the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 520 * 521 * @param groupId the group ID 522 * @param name the name 523 * @return the matching wiki node 524 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 525 * @throws SystemException if a system exception occurred 526 */ 527 public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId, 528 java.lang.String name) 529 throws com.liferay.portal.kernel.exception.SystemException, 530 com.liferay.portlet.wiki.NoSuchNodeException; 531 532 /** 533 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 534 * 535 * @param groupId the group ID 536 * @param name the name 537 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 538 * @throws SystemException if a system exception occurred 539 */ 540 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 541 java.lang.String name) 542 throws com.liferay.portal.kernel.exception.SystemException; 543 544 /** 545 * Returns the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 546 * 547 * @param groupId the group ID 548 * @param name the name 549 * @param retrieveFromCache whether to use the finder cache 550 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 554 java.lang.String name, boolean retrieveFromCache) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns all the wiki nodes. 559 * 560 * @return the wiki nodes 561 * @throws SystemException if a system exception occurred 562 */ 563 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 564 throws com.liferay.portal.kernel.exception.SystemException; 565 566 /** 567 * Returns a range of all the wiki nodes. 568 * 569 * <p> 570 * 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. 571 * </p> 572 * 573 * @param start the lower bound of the range of wiki nodes 574 * @param end the upper bound of the range of wiki nodes (not inclusive) 575 * @return the range of wiki nodes 576 * @throws SystemException if a system exception occurred 577 */ 578 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 579 int start, int end) 580 throws com.liferay.portal.kernel.exception.SystemException; 581 582 /** 583 * Returns an ordered range of all the wiki nodes. 584 * 585 * <p> 586 * 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. 587 * </p> 588 * 589 * @param start the lower bound of the range of wiki nodes 590 * @param end the upper bound of the range of wiki nodes (not inclusive) 591 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 592 * @return the ordered range of wiki nodes 593 * @throws SystemException if a system exception occurred 594 */ 595 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 596 int start, int end, 597 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Removes all the wiki nodes where uuid = ? from the database. 602 * 603 * @param uuid the uuid 604 * @throws SystemException if a system exception occurred 605 */ 606 public void removeByUuid(java.lang.String uuid) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Removes the wiki node where uuid = ? and groupId = ? from the database. 611 * 612 * @param uuid the uuid 613 * @param groupId the group ID 614 * @throws SystemException if a system exception occurred 615 */ 616 public void removeByUUID_G(java.lang.String uuid, long groupId) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.wiki.NoSuchNodeException; 619 620 /** 621 * Removes all the wiki nodes where groupId = ? from the database. 622 * 623 * @param groupId the group ID 624 * @throws SystemException if a system exception occurred 625 */ 626 public void removeByGroupId(long groupId) 627 throws com.liferay.portal.kernel.exception.SystemException; 628 629 /** 630 * Removes all the wiki nodes where companyId = ? from the database. 631 * 632 * @param companyId the company ID 633 * @throws SystemException if a system exception occurred 634 */ 635 public void removeByCompanyId(long companyId) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Removes the wiki node where groupId = ? and name = ? from the database. 640 * 641 * @param groupId the group ID 642 * @param name the name 643 * @throws SystemException if a system exception occurred 644 */ 645 public void removeByG_N(long groupId, java.lang.String name) 646 throws com.liferay.portal.kernel.exception.SystemException, 647 com.liferay.portlet.wiki.NoSuchNodeException; 648 649 /** 650 * Removes all the wiki nodes from the database. 651 * 652 * @throws SystemException if a system exception occurred 653 */ 654 public void removeAll() 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns the number of wiki nodes where uuid = ?. 659 * 660 * @param uuid the uuid 661 * @return the number of matching wiki nodes 662 * @throws SystemException if a system exception occurred 663 */ 664 public int countByUuid(java.lang.String uuid) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the number of wiki nodes where uuid = ? and groupId = ?. 669 * 670 * @param uuid the uuid 671 * @param groupId the group ID 672 * @return the number of matching wiki nodes 673 * @throws SystemException if a system exception occurred 674 */ 675 public int countByUUID_G(java.lang.String uuid, long groupId) 676 throws com.liferay.portal.kernel.exception.SystemException; 677 678 /** 679 * Returns the number of wiki nodes where groupId = ?. 680 * 681 * @param groupId the group ID 682 * @return the number of matching wiki nodes 683 * @throws SystemException if a system exception occurred 684 */ 685 public int countByGroupId(long groupId) 686 throws com.liferay.portal.kernel.exception.SystemException; 687 688 /** 689 * Returns the number of wiki nodes that the user has permission to view where groupId = ?. 690 * 691 * @param groupId the group ID 692 * @return the number of matching wiki nodes that the user has permission to view 693 * @throws SystemException if a system exception occurred 694 */ 695 public int filterCountByGroupId(long groupId) 696 throws com.liferay.portal.kernel.exception.SystemException; 697 698 /** 699 * Returns the number of wiki nodes where companyId = ?. 700 * 701 * @param companyId the company ID 702 * @return the number of matching wiki nodes 703 * @throws SystemException if a system exception occurred 704 */ 705 public int countByCompanyId(long companyId) 706 throws com.liferay.portal.kernel.exception.SystemException; 707 708 /** 709 * Returns the number of wiki nodes where groupId = ? and name = ?. 710 * 711 * @param groupId the group ID 712 * @param name the name 713 * @return the number of matching wiki nodes 714 * @throws SystemException if a system exception occurred 715 */ 716 public int countByG_N(long groupId, java.lang.String name) 717 throws com.liferay.portal.kernel.exception.SystemException; 718 719 /** 720 * Returns the number of wiki nodes. 721 * 722 * @return the number of wiki nodes 723 * @throws SystemException if a system exception occurred 724 */ 725 public int countAll() 726 throws com.liferay.portal.kernel.exception.SystemException; 727 }