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.journal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.journal.model.JournalFeed; 022 023 /** 024 * The persistence interface for the journal feed 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 JournalFeedPersistenceImpl 032 * @see JournalFeedUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface JournalFeedPersistence extends BasePersistence<JournalFeed> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link JournalFeedUtil} to access the journal feed persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the journal feeds where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching journal feeds 048 */ 049 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 050 java.lang.String uuid); 051 052 /** 053 * Returns a range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 061 * @param end the upper bound of the range of journal feeds (not inclusive) 062 * @return the range of matching journal feeds 063 */ 064 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 065 java.lang.String uuid, int start, int end); 066 067 /** 068 * Returns an ordered range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 076 * @param end the upper bound of the range of journal feeds (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching journal feeds 079 */ 080 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 081 java.lang.String uuid, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 083 084 /** 085 * Returns the first journal feed 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 journal feed 090 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 091 */ 092 public com.liferay.portlet.journal.model.JournalFeed findByUuid_First( 093 java.lang.String uuid, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 095 throws com.liferay.portlet.journal.NoSuchFeedException; 096 097 /** 098 * Returns the first journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 103 */ 104 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_First( 105 java.lang.String uuid, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 107 108 /** 109 * Returns the last journal feed 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 journal feed 114 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 115 */ 116 public com.liferay.portlet.journal.model.JournalFeed findByUuid_Last( 117 java.lang.String uuid, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 119 throws com.liferay.portlet.journal.NoSuchFeedException; 120 121 /** 122 * Returns the last journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 127 */ 128 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_Last( 129 java.lang.String uuid, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 131 132 /** 133 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ?. 134 * 135 * @param id the primary key of the current journal feed 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 journal feed 139 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 140 */ 141 public com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext( 142 long id, java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 144 throws com.liferay.portlet.journal.NoSuchFeedException; 145 146 /** 147 * Removes all the journal feeds 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 journal feeds where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @return the number of matching journal feeds 158 */ 159 public int countByUuid(java.lang.String uuid); 160 161 /** 162 * Returns the journal feed where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 163 * 164 * @param uuid the uuid 165 * @param groupId the group ID 166 * @return the matching journal feed 167 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 168 */ 169 public com.liferay.portlet.journal.model.JournalFeed findByUUID_G( 170 java.lang.String uuid, long groupId) 171 throws com.liferay.portlet.journal.NoSuchFeedException; 172 173 /** 174 * Returns the journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 179 */ 180 public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G( 181 java.lang.String uuid, long groupId); 182 183 /** 184 * Returns the journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 190 */ 191 public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G( 192 java.lang.String uuid, long groupId, boolean retrieveFromCache); 193 194 /** 195 * Removes the journal feed where uuid = ? and groupId = ? from the database. 196 * 197 * @param uuid the uuid 198 * @param groupId the group ID 199 * @return the journal feed that was removed 200 */ 201 public com.liferay.portlet.journal.model.JournalFeed removeByUUID_G( 202 java.lang.String uuid, long groupId) 203 throws com.liferay.portlet.journal.NoSuchFeedException; 204 205 /** 206 * Returns the number of journal feeds where uuid = ? and groupId = ?. 207 * 208 * @param uuid the uuid 209 * @param groupId the group ID 210 * @return the number of matching journal feeds 211 */ 212 public int countByUUID_G(java.lang.String uuid, long groupId); 213 214 /** 215 * Returns all the journal feeds where uuid = ? and companyId = ?. 216 * 217 * @param uuid the uuid 218 * @param companyId the company ID 219 * @return the matching journal feeds 220 */ 221 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 222 java.lang.String uuid, long companyId); 223 224 /** 225 * Returns a range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 234 * @param end the upper bound of the range of journal feeds (not inclusive) 235 * @return the range of matching journal feeds 236 */ 237 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 238 java.lang.String uuid, long companyId, int start, int end); 239 240 /** 241 * Returns an ordered range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 250 * @param end the upper bound of the range of journal feeds (not inclusive) 251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 252 * @return the ordered range of matching journal feeds 253 */ 254 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 255 java.lang.String uuid, long companyId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 257 258 /** 259 * Returns the first journal feed 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 journal feed 265 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 266 */ 267 public com.liferay.portlet.journal.model.JournalFeed findByUuid_C_First( 268 java.lang.String uuid, long companyId, 269 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 270 throws com.liferay.portlet.journal.NoSuchFeedException; 271 272 /** 273 * Returns the first journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 279 */ 280 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_First( 281 java.lang.String uuid, long companyId, 282 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 283 284 /** 285 * Returns the last journal feed 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 journal feed 291 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 292 */ 293 public com.liferay.portlet.journal.model.JournalFeed findByUuid_C_Last( 294 java.lang.String uuid, long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 296 throws com.liferay.portlet.journal.NoSuchFeedException; 297 298 /** 299 * Returns the last journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 305 */ 306 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_Last( 307 java.lang.String uuid, long companyId, 308 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 309 310 /** 311 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ? and companyId = ?. 312 * 313 * @param id the primary key of the current journal feed 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 journal feed 318 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 319 */ 320 public com.liferay.portlet.journal.model.JournalFeed[] findByUuid_C_PrevAndNext( 321 long id, java.lang.String uuid, long companyId, 322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 323 throws com.liferay.portlet.journal.NoSuchFeedException; 324 325 /** 326 * Removes all the journal feeds 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 journal feeds where uuid = ? and companyId = ?. 335 * 336 * @param uuid the uuid 337 * @param companyId the company ID 338 * @return the number of matching journal feeds 339 */ 340 public int countByUuid_C(java.lang.String uuid, long companyId); 341 342 /** 343 * Returns all the journal feeds where groupId = ?. 344 * 345 * @param groupId the group ID 346 * @return the matching journal feeds 347 */ 348 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 349 long groupId); 350 351 /** 352 * Returns a range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 360 * @param end the upper bound of the range of journal feeds (not inclusive) 361 * @return the range of matching journal feeds 362 */ 363 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 364 long groupId, int start, int end); 365 366 /** 367 * Returns an ordered range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 375 * @param end the upper bound of the range of journal feeds (not inclusive) 376 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 377 * @return the ordered range of matching journal feeds 378 */ 379 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 380 long groupId, int start, int end, 381 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 382 383 /** 384 * Returns the first journal feed 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 journal feed 389 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 390 */ 391 public com.liferay.portlet.journal.model.JournalFeed findByGroupId_First( 392 long groupId, 393 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 394 throws com.liferay.portlet.journal.NoSuchFeedException; 395 396 /** 397 * Returns the first journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 402 */ 403 public com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_First( 404 long groupId, 405 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 406 407 /** 408 * Returns the last journal feed 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 journal feed 413 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 414 */ 415 public com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last( 416 long groupId, 417 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 418 throws com.liferay.portlet.journal.NoSuchFeedException; 419 420 /** 421 * Returns the last journal feed 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 journal feed, or <code>null</code> if a matching journal feed could not be found 426 */ 427 public com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_Last( 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 430 431 /** 432 * Returns the journal feeds before and after the current journal feed in the ordered set where groupId = ?. 433 * 434 * @param id the primary key of the current journal feed 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 journal feed 438 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 439 */ 440 public com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext( 441 long id, long groupId, 442 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 443 throws com.liferay.portlet.journal.NoSuchFeedException; 444 445 /** 446 * Returns all the journal feeds that the user has permission to view where groupId = ?. 447 * 448 * @param groupId the group ID 449 * @return the matching journal feeds that the user has permission to view 450 */ 451 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 452 long groupId); 453 454 /** 455 * Returns a range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 463 * @param end the upper bound of the range of journal feeds (not inclusive) 464 * @return the range of matching journal feeds that the user has permission to view 465 */ 466 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 467 long groupId, int start, int end); 468 469 /** 470 * Returns an ordered range of all the journal feeds 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.journal.model.impl.JournalFeedModelImpl}. 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 journal feeds 478 * @param end the upper bound of the range of journal feeds (not inclusive) 479 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 480 * @return the ordered range of matching journal feeds that the user has permission to view 481 */ 482 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 483 long groupId, int start, int end, 484 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 485 486 /** 487 * Returns the journal feeds before and after the current journal feed in the ordered set of journal feeds that the user has permission to view where groupId = ?. 488 * 489 * @param id the primary key of the current journal feed 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 journal feed 493 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 494 */ 495 public com.liferay.portlet.journal.model.JournalFeed[] filterFindByGroupId_PrevAndNext( 496 long id, long groupId, 497 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) 498 throws com.liferay.portlet.journal.NoSuchFeedException; 499 500 /** 501 * Removes all the journal feeds 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 journal feeds where groupId = ?. 509 * 510 * @param groupId the group ID 511 * @return the number of matching journal feeds 512 */ 513 public int countByGroupId(long groupId); 514 515 /** 516 * Returns the number of journal feeds that the user has permission to view where groupId = ?. 517 * 518 * @param groupId the group ID 519 * @return the number of matching journal feeds that the user has permission to view 520 */ 521 public int filterCountByGroupId(long groupId); 522 523 /** 524 * Returns the journal feed where groupId = ? and feedId = ? or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 525 * 526 * @param groupId the group ID 527 * @param feedId the feed ID 528 * @return the matching journal feed 529 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 530 */ 531 public com.liferay.portlet.journal.model.JournalFeed findByG_F( 532 long groupId, java.lang.String feedId) 533 throws com.liferay.portlet.journal.NoSuchFeedException; 534 535 /** 536 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 537 * 538 * @param groupId the group ID 539 * @param feedId the feed ID 540 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 541 */ 542 public com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 543 long groupId, java.lang.String feedId); 544 545 /** 546 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 547 * 548 * @param groupId the group ID 549 * @param feedId the feed ID 550 * @param retrieveFromCache whether to use the finder cache 551 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 552 */ 553 public com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 554 long groupId, java.lang.String feedId, boolean retrieveFromCache); 555 556 /** 557 * Removes the journal feed where groupId = ? and feedId = ? from the database. 558 * 559 * @param groupId the group ID 560 * @param feedId the feed ID 561 * @return the journal feed that was removed 562 */ 563 public com.liferay.portlet.journal.model.JournalFeed removeByG_F( 564 long groupId, java.lang.String feedId) 565 throws com.liferay.portlet.journal.NoSuchFeedException; 566 567 /** 568 * Returns the number of journal feeds where groupId = ? and feedId = ?. 569 * 570 * @param groupId the group ID 571 * @param feedId the feed ID 572 * @return the number of matching journal feeds 573 */ 574 public int countByG_F(long groupId, java.lang.String feedId); 575 576 /** 577 * Caches the journal feed in the entity cache if it is enabled. 578 * 579 * @param journalFeed the journal feed 580 */ 581 public void cacheResult( 582 com.liferay.portlet.journal.model.JournalFeed journalFeed); 583 584 /** 585 * Caches the journal feeds in the entity cache if it is enabled. 586 * 587 * @param journalFeeds the journal feeds 588 */ 589 public void cacheResult( 590 java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds); 591 592 /** 593 * Creates a new journal feed with the primary key. Does not add the journal feed to the database. 594 * 595 * @param id the primary key for the new journal feed 596 * @return the new journal feed 597 */ 598 public com.liferay.portlet.journal.model.JournalFeed create(long id); 599 600 /** 601 * Removes the journal feed with the primary key from the database. Also notifies the appropriate model listeners. 602 * 603 * @param id the primary key of the journal feed 604 * @return the journal feed that was removed 605 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 606 */ 607 public com.liferay.portlet.journal.model.JournalFeed remove(long id) 608 throws com.liferay.portlet.journal.NoSuchFeedException; 609 610 public com.liferay.portlet.journal.model.JournalFeed updateImpl( 611 com.liferay.portlet.journal.model.JournalFeed journalFeed); 612 613 /** 614 * Returns the journal feed with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 615 * 616 * @param id the primary key of the journal feed 617 * @return the journal feed 618 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 619 */ 620 public com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey( 621 long id) throws com.liferay.portlet.journal.NoSuchFeedException; 622 623 /** 624 * Returns the journal feed with the primary key or returns <code>null</code> if it could not be found. 625 * 626 * @param id the primary key of the journal feed 627 * @return the journal feed, or <code>null</code> if a journal feed with the primary key could not be found 628 */ 629 public com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey( 630 long id); 631 632 @Override 633 public java.util.Map<java.io.Serializable, com.liferay.portlet.journal.model.JournalFeed> fetchByPrimaryKeys( 634 java.util.Set<java.io.Serializable> primaryKeys); 635 636 /** 637 * Returns all the journal feeds. 638 * 639 * @return the journal feeds 640 */ 641 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(); 642 643 /** 644 * Returns a range of all the journal feeds. 645 * 646 * <p> 647 * 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.journal.model.impl.JournalFeedModelImpl}. 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. 648 * </p> 649 * 650 * @param start the lower bound of the range of journal feeds 651 * @param end the upper bound of the range of journal feeds (not inclusive) 652 * @return the range of journal feeds 653 */ 654 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 655 int start, int end); 656 657 /** 658 * Returns an ordered range of all the journal feeds. 659 * 660 * <p> 661 * 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.journal.model.impl.JournalFeedModelImpl}. 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. 662 * </p> 663 * 664 * @param start the lower bound of the range of journal feeds 665 * @param end the upper bound of the range of journal feeds (not inclusive) 666 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 667 * @return the ordered range of journal feeds 668 */ 669 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 670 int start, int end, 671 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator); 672 673 /** 674 * Removes all the journal feeds from the database. 675 */ 676 public void removeAll(); 677 678 /** 679 * Returns the number of journal feeds. 680 * 681 * @return the number of journal feeds 682 */ 683 public int countAll(); 684 }