001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.journal.model.JournalArticleResource; 020 021 /** 022 * The persistence interface for the journal article resource service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link JournalArticleResourceUtil} to access the journal article resource persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see JournalArticleResourcePersistenceImpl 034 * @see JournalArticleResourceUtil 035 * @generated 036 */ 037 public interface JournalArticleResourcePersistence extends BasePersistence<JournalArticleResource> { 038 /** 039 * Caches the journal article resource in the entity cache if it is enabled. 040 * 041 * @param journalArticleResource the journal article resource to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource); 045 046 /** 047 * Caches the journal article resources in the entity cache if it is enabled. 048 * 049 * @param journalArticleResources the journal article resources to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> journalArticleResources); 053 054 /** 055 * Creates a new journal article resource with the primary key. Does not add the journal article resource to the database. 056 * 057 * @param resourcePrimKey the primary key for the new journal article resource 058 * @return the new journal article resource 059 */ 060 public com.liferay.portlet.journal.model.JournalArticleResource create( 061 long resourcePrimKey); 062 063 /** 064 * Removes the journal article resource with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param resourcePrimKey the primary key of the journal article resource to remove 067 * @return the journal article resource that was removed 068 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.journal.model.JournalArticleResource remove( 072 long resourcePrimKey) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.journal.NoSuchArticleResourceException; 075 076 public com.liferay.portlet.journal.model.JournalArticleResource updateImpl( 077 com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the journal article resource with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchArticleResourceException} if it could not be found. 083 * 084 * @param resourcePrimKey the primary key of the journal article resource to find 085 * @return the journal article resource 086 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey( 090 long resourcePrimKey) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.journal.NoSuchArticleResourceException; 093 094 /** 095 * Finds the journal article resource with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param resourcePrimKey the primary key of the journal article resource to find 098 * @return the journal article resource, or <code>null</code> if a journal article resource with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey( 102 long resourcePrimKey) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the journal article resources where uuid = ?. 107 * 108 * @param uuid the uuid to search with 109 * @return the matching journal article resources 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Finds a range of all the journal article resources where uuid = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param uuid the uuid to search with 124 * @param start the lower bound of the range of journal article resources to return 125 * @param end the upper bound of the range of journal article resources to return (not inclusive) 126 * @return the range of matching journal article resources 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid( 130 java.lang.String uuid, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Finds an ordered range of all the journal article resources where uuid = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param uuid the uuid to search with 141 * @param start the lower bound of the range of journal article resources to return 142 * @param end the upper bound of the range of journal article resources to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 144 * @return the ordered range of matching journal article resources 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid( 148 java.lang.String uuid, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Finds the first journal article resource in the ordered set where uuid = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param uuid the uuid to search with 160 * @param orderByComparator the comparator to order the set by 161 * @return the first matching journal article resource 162 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.journal.model.JournalArticleResource findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.journal.NoSuchArticleResourceException; 170 171 /** 172 * Finds the last journal article resource in the ordered set where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid to search with 179 * @param orderByComparator the comparator to order the set by 180 * @return the last matching journal article resource 181 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.journal.model.JournalArticleResource findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.journal.NoSuchArticleResourceException; 189 190 /** 191 * Finds the journal article resources before and after the current journal article resource in the ordered set where uuid = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param resourcePrimKey the primary key of the current journal article resource 198 * @param uuid the uuid to search with 199 * @param orderByComparator the comparator to order the set by 200 * @return the previous, current, and next journal article resource 201 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.journal.model.JournalArticleResource[] findByUuid_PrevAndNext( 205 long resourcePrimKey, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.journal.NoSuchArticleResourceException; 209 210 /** 211 * Finds the journal article resource where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchArticleResourceException} if it could not be found. 212 * 213 * @param uuid the uuid to search with 214 * @param groupId the group id to search with 215 * @return the matching journal article resource 216 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.journal.model.JournalArticleResource findByUUID_G( 220 java.lang.String uuid, long groupId) 221 throws com.liferay.portal.kernel.exception.SystemException, 222 com.liferay.portlet.journal.NoSuchArticleResourceException; 223 224 /** 225 * Finds the journal article resource where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 226 * 227 * @param uuid the uuid to search with 228 * @param groupId the group id to search with 229 * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public com.liferay.portlet.journal.model.JournalArticleResource fetchByUUID_G( 233 java.lang.String uuid, long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Finds the journal article resource where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 238 * 239 * @param uuid the uuid to search with 240 * @param groupId the group id to search with 241 * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found 242 * @throws SystemException if a system exception occurred 243 */ 244 public com.liferay.portlet.journal.model.JournalArticleResource fetchByUUID_G( 245 java.lang.String uuid, long groupId, boolean retrieveFromCache) 246 throws com.liferay.portal.kernel.exception.SystemException; 247 248 /** 249 * Finds all the journal article resources where groupId = ?. 250 * 251 * @param groupId the group id to search with 252 * @return the matching journal article resources 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId( 256 long groupId) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds a range of all the journal article resources where groupId = ?. 261 * 262 * <p> 263 * 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. 264 * </p> 265 * 266 * @param groupId the group id to search with 267 * @param start the lower bound of the range of journal article resources to return 268 * @param end the upper bound of the range of journal article resources to return (not inclusive) 269 * @return the range of matching journal article resources 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId( 273 long groupId, int start, int end) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Finds an ordered range of all the journal article resources where groupId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param groupId the group id to search with 284 * @param start the lower bound of the range of journal article resources to return 285 * @param end the upper bound of the range of journal article resources to return (not inclusive) 286 * @param orderByComparator the comparator to order the results by 287 * @return the ordered range of matching journal article resources 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId( 291 long groupId, int start, int end, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException; 294 295 /** 296 * Finds the first journal article resource in the ordered set where groupId = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param groupId the group id to search with 303 * @param orderByComparator the comparator to order the set by 304 * @return the first matching journal article resource 305 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First( 309 long groupId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.journal.NoSuchArticleResourceException; 313 314 /** 315 * Finds the last journal article resource in the ordered set where groupId = ?. 316 * 317 * <p> 318 * 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. 319 * </p> 320 * 321 * @param groupId the group id to search with 322 * @param orderByComparator the comparator to order the set by 323 * @return the last matching journal article resource 324 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last( 328 long groupId, 329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 330 throws com.liferay.portal.kernel.exception.SystemException, 331 com.liferay.portlet.journal.NoSuchArticleResourceException; 332 333 /** 334 * Finds the journal article resources before and after the current journal article resource in the ordered set where groupId = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param resourcePrimKey the primary key of the current journal article resource 341 * @param groupId the group id to search with 342 * @param orderByComparator the comparator to order the set by 343 * @return the previous, current, and next journal article resource 344 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found 345 * @throws SystemException if a system exception occurred 346 */ 347 public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext( 348 long resourcePrimKey, long groupId, 349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 350 throws com.liferay.portal.kernel.exception.SystemException, 351 com.liferay.portlet.journal.NoSuchArticleResourceException; 352 353 /** 354 * Finds the journal article resource where groupId = ? and articleId = ? or throws a {@link com.liferay.portlet.journal.NoSuchArticleResourceException} if it could not be found. 355 * 356 * @param groupId the group id to search with 357 * @param articleId the article id to search with 358 * @return the matching journal article resource 359 * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.journal.model.JournalArticleResource findByG_A( 363 long groupId, java.lang.String articleId) 364 throws com.liferay.portal.kernel.exception.SystemException, 365 com.liferay.portlet.journal.NoSuchArticleResourceException; 366 367 /** 368 * Finds the journal article resource where groupId = ? and articleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 369 * 370 * @param groupId the group id to search with 371 * @param articleId the article id to search with 372 * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A( 376 long groupId, java.lang.String articleId) 377 throws com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Finds the journal article resource where groupId = ? and articleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 381 * 382 * @param groupId the group id to search with 383 * @param articleId the article id to search with 384 * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found 385 * @throws SystemException if a system exception occurred 386 */ 387 public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A( 388 long groupId, java.lang.String articleId, boolean retrieveFromCache) 389 throws com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Finds all the journal article resources. 393 * 394 * @return the journal article resources 395 * @throws SystemException if a system exception occurred 396 */ 397 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll() 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Finds a range of all the journal article resources. 402 * 403 * <p> 404 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 405 * </p> 406 * 407 * @param start the lower bound of the range of journal article resources to return 408 * @param end the upper bound of the range of journal article resources to return (not inclusive) 409 * @return the range of journal article resources 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll( 413 int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Finds an ordered range of all the journal article resources. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param start the lower bound of the range of journal article resources to return 424 * @param end the upper bound of the range of journal article resources to return (not inclusive) 425 * @param orderByComparator the comparator to order the results by 426 * @return the ordered range of journal article resources 427 * @throws SystemException if a system exception occurred 428 */ 429 public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll( 430 int start, int end, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException; 433 434 /** 435 * Removes all the journal article resources where uuid = ? from the database. 436 * 437 * @param uuid the uuid to search with 438 * @throws SystemException if a system exception occurred 439 */ 440 public void removeByUuid(java.lang.String uuid) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Removes the journal article resource where uuid = ? and groupId = ? from the database. 445 * 446 * @param uuid the uuid to search with 447 * @param groupId the group id to search with 448 * @throws SystemException if a system exception occurred 449 */ 450 public void removeByUUID_G(java.lang.String uuid, long groupId) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.journal.NoSuchArticleResourceException; 453 454 /** 455 * Removes all the journal article resources where groupId = ? from the database. 456 * 457 * @param groupId the group id to search with 458 * @throws SystemException if a system exception occurred 459 */ 460 public void removeByGroupId(long groupId) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * Removes the journal article resource where groupId = ? and articleId = ? from the database. 465 * 466 * @param groupId the group id to search with 467 * @param articleId the article id to search with 468 * @throws SystemException if a system exception occurred 469 */ 470 public void removeByG_A(long groupId, java.lang.String articleId) 471 throws com.liferay.portal.kernel.exception.SystemException, 472 com.liferay.portlet.journal.NoSuchArticleResourceException; 473 474 /** 475 * Removes all the journal article resources from the database. 476 * 477 * @throws SystemException if a system exception occurred 478 */ 479 public void removeAll() 480 throws com.liferay.portal.kernel.exception.SystemException; 481 482 /** 483 * Counts all the journal article resources where uuid = ?. 484 * 485 * @param uuid the uuid to search with 486 * @return the number of matching journal article resources 487 * @throws SystemException if a system exception occurred 488 */ 489 public int countByUuid(java.lang.String uuid) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Counts all the journal article resources where uuid = ? and groupId = ?. 494 * 495 * @param uuid the uuid to search with 496 * @param groupId the group id to search with 497 * @return the number of matching journal article resources 498 * @throws SystemException if a system exception occurred 499 */ 500 public int countByUUID_G(java.lang.String uuid, long groupId) 501 throws com.liferay.portal.kernel.exception.SystemException; 502 503 /** 504 * Counts all the journal article resources where groupId = ?. 505 * 506 * @param groupId the group id to search with 507 * @return the number of matching journal article resources 508 * @throws SystemException if a system exception occurred 509 */ 510 public int countByGroupId(long groupId) 511 throws com.liferay.portal.kernel.exception.SystemException; 512 513 /** 514 * Counts all the journal article resources where groupId = ? and articleId = ?. 515 * 516 * @param groupId the group id to search with 517 * @param articleId the article id to search with 518 * @return the number of matching journal article resources 519 * @throws SystemException if a system exception occurred 520 */ 521 public int countByG_A(long groupId, java.lang.String articleId) 522 throws com.liferay.portal.kernel.exception.SystemException; 523 524 /** 525 * Counts all the journal article resources. 526 * 527 * @return the number of journal article resources 528 * @throws SystemException if a system exception occurred 529 */ 530 public int countAll() 531 throws com.liferay.portal.kernel.exception.SystemException; 532 }