001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.wiki.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.wiki.model.WikiNode; 021 022 /** 023 * The persistence interface for the wiki node service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see WikiNodePersistenceImpl 031 * @see WikiNodeUtil 032 * @generated 033 */ 034 public interface WikiNodePersistence extends BasePersistence<WikiNode> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Caches the wiki node in the entity cache if it is enabled. 043 * 044 * @param wikiNode the wiki node to cache 045 */ 046 public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode); 047 048 /** 049 * Caches the wiki nodes in the entity cache if it is enabled. 050 * 051 * @param wikiNodes the wiki nodes to cache 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes); 055 056 /** 057 * Creates a new wiki node with the primary key. Does not add the wiki node to the database. 058 * 059 * @param nodeId the primary key for the new wiki node 060 * @return the new wiki node 061 */ 062 public com.liferay.portlet.wiki.model.WikiNode create(long nodeId); 063 064 /** 065 * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param nodeId the primary key of the wiki node to remove 068 * @return the wiki node that was removed 069 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.wiki.NoSuchNodeException; 075 076 public com.liferay.portlet.wiki.model.WikiNode updateImpl( 077 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Finds the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 082 * 083 * @param nodeId the primary key of the wiki node to find 084 * @return the wiki node 085 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId) 089 throws com.liferay.portal.kernel.exception.SystemException, 090 com.liferay.portlet.wiki.NoSuchNodeException; 091 092 /** 093 * Finds the wiki node with the primary key or returns <code>null</code> if it could not be found. 094 * 095 * @param nodeId the primary key of the wiki node to find 096 * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey( 100 long nodeId) throws com.liferay.portal.kernel.exception.SystemException; 101 102 /** 103 * Finds all the wiki nodes where uuid = ?. 104 * 105 * @param uuid the uuid to search with 106 * @return the matching wiki nodes 107 * @throws SystemException if a system exception occurred 108 */ 109 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 110 java.lang.String uuid) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Finds a range of all the wiki nodes where uuid = ?. 115 * 116 * <p> 117 * 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. 118 * </p> 119 * 120 * @param uuid the uuid to search with 121 * @param start the lower bound of the range of wiki nodes to return 122 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 123 * @return the range of matching wiki nodes 124 * @throws SystemException if a system exception occurred 125 */ 126 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 127 java.lang.String uuid, int start, int end) 128 throws com.liferay.portal.kernel.exception.SystemException; 129 130 /** 131 * Finds an ordered range of all the wiki nodes where uuid = ?. 132 * 133 * <p> 134 * 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. 135 * </p> 136 * 137 * @param uuid the uuid to search with 138 * @param start the lower bound of the range of wiki nodes to return 139 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 140 * @param orderByComparator the comparator to order the results by 141 * @return the ordered range of matching wiki nodes 142 * @throws SystemException if a system exception occurred 143 */ 144 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid( 145 java.lang.String uuid, int start, int end, 146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 147 throws com.liferay.portal.kernel.exception.SystemException; 148 149 /** 150 * Finds the first wiki node in the ordered set where uuid = ?. 151 * 152 * <p> 153 * 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. 154 * </p> 155 * 156 * @param uuid the uuid to search with 157 * @param orderByComparator the comparator to order the set by 158 * @return the first matching wiki node 159 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.wiki.model.WikiNode findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.wiki.NoSuchNodeException; 167 168 /** 169 * Finds the last wiki node in the ordered set where uuid = ?. 170 * 171 * <p> 172 * 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. 173 * </p> 174 * 175 * @param uuid the uuid to search with 176 * @param orderByComparator the comparator to order the set by 177 * @return the last matching wiki node 178 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last( 182 java.lang.String uuid, 183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.wiki.NoSuchNodeException; 186 187 /** 188 * Finds the wiki nodes before and after the current wiki node in the ordered set where uuid = ?. 189 * 190 * <p> 191 * 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. 192 * </p> 193 * 194 * @param nodeId the primary key of the current wiki node 195 * @param uuid the uuid to search with 196 * @param orderByComparator the comparator to order the set by 197 * @return the previous, current, and next wiki node 198 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext( 202 long nodeId, java.lang.String uuid, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException, 205 com.liferay.portlet.wiki.NoSuchNodeException; 206 207 /** 208 * Finds the wiki node where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 209 * 210 * @param uuid the uuid to search with 211 * @param groupId the group ID to search with 212 * @return the matching wiki node 213 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.wiki.model.WikiNode findByUUID_G( 217 java.lang.String uuid, long groupId) 218 throws com.liferay.portal.kernel.exception.SystemException, 219 com.liferay.portlet.wiki.NoSuchNodeException; 220 221 /** 222 * Finds the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 223 * 224 * @param uuid the uuid to search with 225 * @param groupId the group ID to search with 226 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 227 * @throws SystemException if a system exception occurred 228 */ 229 public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G( 230 java.lang.String uuid, long groupId) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds the wiki node where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 235 * 236 * @param uuid the uuid to search with 237 * @param groupId the group ID to search with 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 * Finds all the wiki nodes where groupId = ?. 247 * 248 * @param groupId the group ID to search with 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 * Finds 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 to search with 264 * @param start the lower bound of the range of wiki nodes to return 265 * @param end the upper bound of the range of wiki nodes to return (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 * Finds 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 to search with 281 * @param start the lower bound of the range of wiki nodes to return 282 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 283 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 300 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 319 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 339 * @param orderByComparator the comparator to order the set by 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 * Filters by the user's permissions and finds all the wiki nodes where groupId = ?. 352 * 353 * @param groupId the group ID to search with 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 * Filters by the user's permissions and finds a range of all the wiki nodes 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 to search with 369 * @param start the lower bound of the range of wiki nodes to return 370 * @param end the upper bound of the range of wiki nodes to return (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 * Filters by the user's permissions and finds an ordered range of all the wiki nodes 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 to search with 386 * @param start the lower bound of the range of wiki nodes to return 387 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 388 * @param orderByComparator the comparator to order the results by 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 * Filters the wiki nodes before and after the current wiki node in the ordered set where groupId = ?. 399 * 400 * <p> 401 * 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. 402 * </p> 403 * 404 * @param nodeId the primary key of the current wiki node 405 * @param groupId the group ID to search with 406 * @param orderByComparator the comparator to order the set by 407 * @return the previous, current, and next wiki node 408 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext( 412 long nodeId, long groupId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.wiki.NoSuchNodeException; 416 417 /** 418 * Finds all the wiki nodes where companyId = ?. 419 * 420 * @param companyId the company ID to search with 421 * @return the matching wiki nodes 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 425 long companyId) 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Finds a range of all the wiki nodes where companyId = ?. 430 * 431 * <p> 432 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 433 * </p> 434 * 435 * @param companyId the company ID to search with 436 * @param start the lower bound of the range of wiki nodes to return 437 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 438 * @return the range of matching wiki nodes 439 * @throws SystemException if a system exception occurred 440 */ 441 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 442 long companyId, int start, int end) 443 throws com.liferay.portal.kernel.exception.SystemException; 444 445 /** 446 * Finds an ordered range of all the wiki nodes where companyId = ?. 447 * 448 * <p> 449 * 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. 450 * </p> 451 * 452 * @param companyId the company ID to search with 453 * @param start the lower bound of the range of wiki nodes to return 454 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 455 * @param orderByComparator the comparator to order the results by 456 * @return the ordered range of matching wiki nodes 457 * @throws SystemException if a system exception occurred 458 */ 459 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId( 460 long companyId, int start, int end, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Finds the first wiki node in the ordered set where companyId = ?. 466 * 467 * <p> 468 * 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. 469 * </p> 470 * 471 * @param companyId the company ID to search with 472 * @param orderByComparator the comparator to order the set by 473 * @return the first matching wiki node 474 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 475 * @throws SystemException if a system exception occurred 476 */ 477 public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First( 478 long companyId, 479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.wiki.NoSuchNodeException; 482 483 /** 484 * Finds the last wiki node in the ordered set where companyId = ?. 485 * 486 * <p> 487 * 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. 488 * </p> 489 * 490 * @param companyId the company ID to search with 491 * @param orderByComparator the comparator to order the set by 492 * @return the last matching wiki node 493 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 494 * @throws SystemException if a system exception occurred 495 */ 496 public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last( 497 long companyId, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException, 500 com.liferay.portlet.wiki.NoSuchNodeException; 501 502 /** 503 * Finds the wiki nodes before and after the current wiki node in the ordered set where companyId = ?. 504 * 505 * <p> 506 * 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. 507 * </p> 508 * 509 * @param nodeId the primary key of the current wiki node 510 * @param companyId the company ID to search with 511 * @param orderByComparator the comparator to order the set by 512 * @return the previous, current, and next wiki node 513 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found 514 * @throws SystemException if a system exception occurred 515 */ 516 public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext( 517 long nodeId, long companyId, 518 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 519 throws com.liferay.portal.kernel.exception.SystemException, 520 com.liferay.portlet.wiki.NoSuchNodeException; 521 522 /** 523 * Finds the wiki node where groupId = ? and name = ? or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found. 524 * 525 * @param groupId the group ID to search with 526 * @param name the name to search with 527 * @return the matching wiki node 528 * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId, 532 java.lang.String name) 533 throws com.liferay.portal.kernel.exception.SystemException, 534 com.liferay.portlet.wiki.NoSuchNodeException; 535 536 /** 537 * Finds the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 538 * 539 * @param groupId the group ID to search with 540 * @param name the name to search with 541 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 542 * @throws SystemException if a system exception occurred 543 */ 544 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 545 java.lang.String name) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Finds the wiki node where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 550 * 551 * @param groupId the group ID to search with 552 * @param name the name to search with 553 * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId, 557 java.lang.String name, boolean retrieveFromCache) 558 throws com.liferay.portal.kernel.exception.SystemException; 559 560 /** 561 * Finds all the wiki nodes. 562 * 563 * @return the wiki nodes 564 * @throws SystemException if a system exception occurred 565 */ 566 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll() 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Finds a range of all the wiki nodes. 571 * 572 * <p> 573 * 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. 574 * </p> 575 * 576 * @param start the lower bound of the range of wiki nodes to return 577 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 578 * @return the range of wiki nodes 579 * @throws SystemException if a system exception occurred 580 */ 581 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 582 int start, int end) 583 throws com.liferay.portal.kernel.exception.SystemException; 584 585 /** 586 * Finds an ordered range of all the wiki nodes. 587 * 588 * <p> 589 * 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. 590 * </p> 591 * 592 * @param start the lower bound of the range of wiki nodes to return 593 * @param end the upper bound of the range of wiki nodes to return (not inclusive) 594 * @param orderByComparator the comparator to order the results by 595 * @return the ordered range of wiki nodes 596 * @throws SystemException if a system exception occurred 597 */ 598 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll( 599 int start, int end, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Removes all the wiki nodes where uuid = ? from the database. 605 * 606 * @param uuid the uuid to search with 607 * @throws SystemException if a system exception occurred 608 */ 609 public void removeByUuid(java.lang.String uuid) 610 throws com.liferay.portal.kernel.exception.SystemException; 611 612 /** 613 * Removes the wiki node where uuid = ? and groupId = ? from the database. 614 * 615 * @param uuid the uuid to search with 616 * @param groupId the group ID to search with 617 * @throws SystemException if a system exception occurred 618 */ 619 public void removeByUUID_G(java.lang.String uuid, long groupId) 620 throws com.liferay.portal.kernel.exception.SystemException, 621 com.liferay.portlet.wiki.NoSuchNodeException; 622 623 /** 624 * Removes all the wiki nodes where groupId = ? from the database. 625 * 626 * @param groupId the group ID to search with 627 * @throws SystemException if a system exception occurred 628 */ 629 public void removeByGroupId(long groupId) 630 throws com.liferay.portal.kernel.exception.SystemException; 631 632 /** 633 * Removes all the wiki nodes where companyId = ? from the database. 634 * 635 * @param companyId the company ID to search with 636 * @throws SystemException if a system exception occurred 637 */ 638 public void removeByCompanyId(long companyId) 639 throws com.liferay.portal.kernel.exception.SystemException; 640 641 /** 642 * Removes the wiki node where groupId = ? and name = ? from the database. 643 * 644 * @param groupId the group ID to search with 645 * @param name the name to search with 646 * @throws SystemException if a system exception occurred 647 */ 648 public void removeByG_N(long groupId, java.lang.String name) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.wiki.NoSuchNodeException; 651 652 /** 653 * Removes all the wiki nodes from the database. 654 * 655 * @throws SystemException if a system exception occurred 656 */ 657 public void removeAll() 658 throws com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * Counts all the wiki nodes where uuid = ?. 662 * 663 * @param uuid the uuid to search with 664 * @return the number of matching wiki nodes 665 * @throws SystemException if a system exception occurred 666 */ 667 public int countByUuid(java.lang.String uuid) 668 throws com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Counts all the wiki nodes where uuid = ? and groupId = ?. 672 * 673 * @param uuid the uuid to search with 674 * @param groupId the group ID to search with 675 * @return the number of matching wiki nodes 676 * @throws SystemException if a system exception occurred 677 */ 678 public int countByUUID_G(java.lang.String uuid, long groupId) 679 throws com.liferay.portal.kernel.exception.SystemException; 680 681 /** 682 * Counts all the wiki nodes where groupId = ?. 683 * 684 * @param groupId the group ID to search with 685 * @return the number of matching wiki nodes 686 * @throws SystemException if a system exception occurred 687 */ 688 public int countByGroupId(long groupId) 689 throws com.liferay.portal.kernel.exception.SystemException; 690 691 /** 692 * Filters by the user's permissions and counts all the wiki nodes where groupId = ?. 693 * 694 * @param groupId the group ID to search with 695 * @return the number of matching wiki nodes that the user has permission to view 696 * @throws SystemException if a system exception occurred 697 */ 698 public int filterCountByGroupId(long groupId) 699 throws com.liferay.portal.kernel.exception.SystemException; 700 701 /** 702 * Counts all the wiki nodes where companyId = ?. 703 * 704 * @param companyId the company ID to search with 705 * @return the number of matching wiki nodes 706 * @throws SystemException if a system exception occurred 707 */ 708 public int countByCompanyId(long companyId) 709 throws com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * Counts all the wiki nodes where groupId = ? and name = ?. 713 * 714 * @param groupId the group ID to search with 715 * @param name the name to search with 716 * @return the number of matching wiki nodes 717 * @throws SystemException if a system exception occurred 718 */ 719 public int countByG_N(long groupId, java.lang.String name) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Counts all the wiki nodes. 724 * 725 * @return the number of wiki nodes 726 * @throws SystemException if a system exception occurred 727 */ 728 public int countAll() 729 throws com.liferay.portal.kernel.exception.SystemException; 730 731 public WikiNode remove(WikiNode wikiNode) throws SystemException; 732 }