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