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