001 /** 002 * Copyright (c) 2000-2012 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.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialRelation; 020 021 /** 022 * The persistence interface for the social relation service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see SocialRelationPersistenceImpl 030 * @see SocialRelationUtil 031 * @generated 032 */ 033 public interface SocialRelationPersistence extends BasePersistence<SocialRelation> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialRelationUtil} to access the social relation persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the social relation in the entity cache if it is enabled. 042 * 043 * @param socialRelation the social relation 044 */ 045 public void cacheResult( 046 com.liferay.portlet.social.model.SocialRelation socialRelation); 047 048 /** 049 * Caches the social relations in the entity cache if it is enabled. 050 * 051 * @param socialRelations the social relations 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations); 055 056 /** 057 * Creates a new social relation with the primary key. Does not add the social relation to the database. 058 * 059 * @param relationId the primary key for the new social relation 060 * @return the new social relation 061 */ 062 public com.liferay.portlet.social.model.SocialRelation create( 063 long relationId); 064 065 /** 066 * Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param relationId the primary key of the social relation 069 * @return the social relation that was removed 070 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.social.model.SocialRelation remove( 074 long relationId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.social.NoSuchRelationException; 077 078 public com.liferay.portlet.social.model.SocialRelation updateImpl( 079 com.liferay.portlet.social.model.SocialRelation socialRelation) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the social relation with the primary key or throws a {@link com.liferay.portlet.social.NoSuchRelationException} if it could not be found. 084 * 085 * @param relationId the primary key of the social relation 086 * @return the social relation 087 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey( 091 long relationId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.social.NoSuchRelationException; 094 095 /** 096 * Returns the social relation with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param relationId the primary key of the social relation 099 * @return the social relation, or <code>null</code> if a social relation with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey( 103 long relationId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the social relations where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @return the matching social relations 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 114 java.lang.String uuid) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the social relations where uuid = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param uuid the uuid 125 * @param start the lower bound of the range of social relations 126 * @param end the upper bound of the range of social relations (not inclusive) 127 * @return the range of matching social relations 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 131 java.lang.String uuid, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the social relations where uuid = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param uuid the uuid 142 * @param start the lower bound of the range of social relations 143 * @param end the upper bound of the range of social relations (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching social relations 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 149 java.lang.String uuid, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first social relation in the ordered set where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching social relation 159 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.social.model.SocialRelation findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.social.NoSuchRelationException; 167 168 /** 169 * Returns the first social relation in the ordered set where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.social.model.SocialRelation fetchByUuid_First( 177 java.lang.String uuid, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last social relation in the ordered set where uuid = ?. 183 * 184 * @param uuid the uuid 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching social relation 187 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.social.model.SocialRelation findByUuid_Last( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.social.NoSuchRelationException; 195 196 /** 197 * Returns the last social relation in the ordered set where uuid = ?. 198 * 199 * @param uuid the uuid 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.social.model.SocialRelation fetchByUuid_Last( 205 java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the social relations before and after the current social relation in the ordered set where uuid = ?. 211 * 212 * @param relationId the primary key of the current social relation 213 * @param uuid the uuid 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next social relation 216 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext( 220 long relationId, java.lang.String uuid, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.social.NoSuchRelationException; 224 225 /** 226 * Returns all the social relations where uuid = ? and companyId = ?. 227 * 228 * @param uuid the uuid 229 * @param companyId the company ID 230 * @return the matching social relations 231 * @throws SystemException if a system exception occurred 232 */ 233 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid_C( 234 java.lang.String uuid, long companyId) 235 throws com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Returns a range of all the social relations where uuid = ? and companyId = ?. 239 * 240 * <p> 241 * 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. 242 * </p> 243 * 244 * @param uuid the uuid 245 * @param companyId the company ID 246 * @param start the lower bound of the range of social relations 247 * @param end the upper bound of the range of social relations (not inclusive) 248 * @return the range of matching social relations 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid_C( 252 java.lang.String uuid, long companyId, int start, int end) 253 throws com.liferay.portal.kernel.exception.SystemException; 254 255 /** 256 * Returns an ordered range of all the social relations where uuid = ? and companyId = ?. 257 * 258 * <p> 259 * 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. 260 * </p> 261 * 262 * @param uuid the uuid 263 * @param companyId the company ID 264 * @param start the lower bound of the range of social relations 265 * @param end the upper bound of the range of social relations (not inclusive) 266 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 267 * @return the ordered range of matching social relations 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid_C( 271 java.lang.String uuid, long companyId, int start, int end, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.kernel.exception.SystemException; 274 275 /** 276 * Returns the first social relation in the ordered set where uuid = ? and companyId = ?. 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the first matching social relation 282 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public com.liferay.portlet.social.model.SocialRelation findByUuid_C_First( 286 java.lang.String uuid, long companyId, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException, 289 com.liferay.portlet.social.NoSuchRelationException; 290 291 /** 292 * Returns the first social relation in the ordered set where uuid = ? and companyId = ?. 293 * 294 * @param uuid the uuid 295 * @param companyId the company ID 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 298 * @throws SystemException if a system exception occurred 299 */ 300 public com.liferay.portlet.social.model.SocialRelation fetchByUuid_C_First( 301 java.lang.String uuid, long companyId, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the last social relation in the ordered set where uuid = ? and companyId = ?. 307 * 308 * @param uuid the uuid 309 * @param companyId the company ID 310 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 311 * @return the last matching social relation 312 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 313 * @throws SystemException if a system exception occurred 314 */ 315 public com.liferay.portlet.social.model.SocialRelation findByUuid_C_Last( 316 java.lang.String uuid, long companyId, 317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 318 throws com.liferay.portal.kernel.exception.SystemException, 319 com.liferay.portlet.social.NoSuchRelationException; 320 321 /** 322 * Returns the last social relation in the ordered set where uuid = ? and companyId = ?. 323 * 324 * @param uuid the uuid 325 * @param companyId the company ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portlet.social.model.SocialRelation fetchByUuid_C_Last( 331 java.lang.String uuid, long companyId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException; 334 335 /** 336 * Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?. 337 * 338 * @param relationId the primary key of the current social relation 339 * @param uuid the uuid 340 * @param companyId the company ID 341 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 342 * @return the previous, current, and next social relation 343 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_C_PrevAndNext( 347 long relationId, java.lang.String uuid, long companyId, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException, 350 com.liferay.portlet.social.NoSuchRelationException; 351 352 /** 353 * Returns all the social relations where companyId = ?. 354 * 355 * @param companyId the company ID 356 * @return the matching social relations 357 * @throws SystemException if a system exception occurred 358 */ 359 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 360 long companyId) 361 throws com.liferay.portal.kernel.exception.SystemException; 362 363 /** 364 * Returns a range of all the social relations where companyId = ?. 365 * 366 * <p> 367 * 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. 368 * </p> 369 * 370 * @param companyId the company ID 371 * @param start the lower bound of the range of social relations 372 * @param end the upper bound of the range of social relations (not inclusive) 373 * @return the range of matching social relations 374 * @throws SystemException if a system exception occurred 375 */ 376 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 377 long companyId, int start, int end) 378 throws com.liferay.portal.kernel.exception.SystemException; 379 380 /** 381 * Returns an ordered range of all the social relations where companyId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param companyId the company ID 388 * @param start the lower bound of the range of social relations 389 * @param end the upper bound of the range of social relations (not inclusive) 390 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 391 * @return the ordered range of matching social relations 392 * @throws SystemException if a system exception occurred 393 */ 394 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 395 long companyId, int start, int end, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException; 398 399 /** 400 * Returns the first social relation in the ordered set where companyId = ?. 401 * 402 * @param companyId the company ID 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the first matching social relation 405 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First( 409 long companyId, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.kernel.exception.SystemException, 412 com.liferay.portlet.social.NoSuchRelationException; 413 414 /** 415 * Returns the first social relation in the ordered set where companyId = ?. 416 * 417 * @param companyId the company ID 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portlet.social.model.SocialRelation fetchByCompanyId_First( 423 long companyId, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Returns the last social relation in the ordered set where companyId = ?. 429 * 430 * @param companyId the company ID 431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 432 * @return the last matching social relation 433 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last( 437 long companyId, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.social.NoSuchRelationException; 441 442 /** 443 * Returns the last social relation in the ordered set where companyId = ?. 444 * 445 * @param companyId the company ID 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public com.liferay.portlet.social.model.SocialRelation fetchByCompanyId_Last( 451 long companyId, 452 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * Returns the social relations before and after the current social relation in the ordered set where companyId = ?. 457 * 458 * @param relationId the primary key of the current social relation 459 * @param companyId the company ID 460 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 461 * @return the previous, current, and next social relation 462 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext( 466 long relationId, long companyId, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException, 469 com.liferay.portlet.social.NoSuchRelationException; 470 471 /** 472 * Returns all the social relations where userId1 = ?. 473 * 474 * @param userId1 the user id1 475 * @return the matching social relations 476 * @throws SystemException if a system exception occurred 477 */ 478 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 479 long userId1) 480 throws com.liferay.portal.kernel.exception.SystemException; 481 482 /** 483 * Returns a range of all the social relations where userId1 = ?. 484 * 485 * <p> 486 * 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. 487 * </p> 488 * 489 * @param userId1 the user id1 490 * @param start the lower bound of the range of social relations 491 * @param end the upper bound of the range of social relations (not inclusive) 492 * @return the range of matching social relations 493 * @throws SystemException if a system exception occurred 494 */ 495 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 496 long userId1, int start, int end) 497 throws com.liferay.portal.kernel.exception.SystemException; 498 499 /** 500 * Returns an ordered range of all the social relations where userId1 = ?. 501 * 502 * <p> 503 * 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. 504 * </p> 505 * 506 * @param userId1 the user id1 507 * @param start the lower bound of the range of social relations 508 * @param end the upper bound of the range of social relations (not inclusive) 509 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 510 * @return the ordered range of matching social relations 511 * @throws SystemException if a system exception occurred 512 */ 513 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 514 long userId1, int start, int end, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns the first social relation in the ordered set where userId1 = ?. 520 * 521 * @param userId1 the user id1 522 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 523 * @return the first matching social relation 524 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 525 * @throws SystemException if a system exception occurred 526 */ 527 public com.liferay.portlet.social.model.SocialRelation findByUserId1_First( 528 long userId1, 529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 530 throws com.liferay.portal.kernel.exception.SystemException, 531 com.liferay.portlet.social.NoSuchRelationException; 532 533 /** 534 * Returns the first social relation in the ordered set where userId1 = ?. 535 * 536 * @param userId1 the user id1 537 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 538 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 539 * @throws SystemException if a system exception occurred 540 */ 541 public com.liferay.portlet.social.model.SocialRelation fetchByUserId1_First( 542 long userId1, 543 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Returns the last social relation in the ordered set where userId1 = ?. 548 * 549 * @param userId1 the user id1 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the last matching social relation 552 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last( 556 long userId1, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.kernel.exception.SystemException, 559 com.liferay.portlet.social.NoSuchRelationException; 560 561 /** 562 * Returns the last social relation in the ordered set where userId1 = ?. 563 * 564 * @param userId1 the user id1 565 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 566 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 567 * @throws SystemException if a system exception occurred 568 */ 569 public com.liferay.portlet.social.model.SocialRelation fetchByUserId1_Last( 570 long userId1, 571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ?. 576 * 577 * @param relationId the primary key of the current social relation 578 * @param userId1 the user id1 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the previous, current, and next social relation 581 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext( 585 long relationId, long userId1, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.social.NoSuchRelationException; 589 590 /** 591 * Returns all the social relations where userId2 = ?. 592 * 593 * @param userId2 the user id2 594 * @return the matching social relations 595 * @throws SystemException if a system exception occurred 596 */ 597 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 598 long userId2) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns a range of all the social relations where userId2 = ?. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param userId2 the user id2 609 * @param start the lower bound of the range of social relations 610 * @param end the upper bound of the range of social relations (not inclusive) 611 * @return the range of matching social relations 612 * @throws SystemException if a system exception occurred 613 */ 614 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 615 long userId2, int start, int end) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns an ordered range of all the social relations where userId2 = ?. 620 * 621 * <p> 622 * 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. 623 * </p> 624 * 625 * @param userId2 the user id2 626 * @param start the lower bound of the range of social relations 627 * @param end the upper bound of the range of social relations (not inclusive) 628 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 629 * @return the ordered range of matching social relations 630 * @throws SystemException if a system exception occurred 631 */ 632 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 633 long userId2, int start, int end, 634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Returns the first social relation in the ordered set where userId2 = ?. 639 * 640 * @param userId2 the user id2 641 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 642 * @return the first matching social relation 643 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 644 * @throws SystemException if a system exception occurred 645 */ 646 public com.liferay.portlet.social.model.SocialRelation findByUserId2_First( 647 long userId2, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.social.NoSuchRelationException; 651 652 /** 653 * Returns the first social relation in the ordered set where userId2 = ?. 654 * 655 * @param userId2 the user id2 656 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 657 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 658 * @throws SystemException if a system exception occurred 659 */ 660 public com.liferay.portlet.social.model.SocialRelation fetchByUserId2_First( 661 long userId2, 662 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 663 throws com.liferay.portal.kernel.exception.SystemException; 664 665 /** 666 * Returns the last social relation in the ordered set where userId2 = ?. 667 * 668 * @param userId2 the user id2 669 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 670 * @return the last matching social relation 671 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 672 * @throws SystemException if a system exception occurred 673 */ 674 public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last( 675 long userId2, 676 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 677 throws com.liferay.portal.kernel.exception.SystemException, 678 com.liferay.portlet.social.NoSuchRelationException; 679 680 /** 681 * Returns the last social relation in the ordered set where userId2 = ?. 682 * 683 * @param userId2 the user id2 684 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 685 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 686 * @throws SystemException if a system exception occurred 687 */ 688 public com.liferay.portlet.social.model.SocialRelation fetchByUserId2_Last( 689 long userId2, 690 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 691 throws com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Returns the social relations before and after the current social relation in the ordered set where userId2 = ?. 695 * 696 * @param relationId the primary key of the current social relation 697 * @param userId2 the user id2 698 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 699 * @return the previous, current, and next social relation 700 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 701 * @throws SystemException if a system exception occurred 702 */ 703 public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext( 704 long relationId, long userId2, 705 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 706 throws com.liferay.portal.kernel.exception.SystemException, 707 com.liferay.portlet.social.NoSuchRelationException; 708 709 /** 710 * Returns all the social relations where type = ?. 711 * 712 * @param type the type 713 * @return the matching social relations 714 * @throws SystemException if a system exception occurred 715 */ 716 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 717 int type) throws com.liferay.portal.kernel.exception.SystemException; 718 719 /** 720 * Returns a range of all the social relations where type = ?. 721 * 722 * <p> 723 * 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. 724 * </p> 725 * 726 * @param type the type 727 * @param start the lower bound of the range of social relations 728 * @param end the upper bound of the range of social relations (not inclusive) 729 * @return the range of matching social relations 730 * @throws SystemException if a system exception occurred 731 */ 732 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 733 int type, int start, int end) 734 throws com.liferay.portal.kernel.exception.SystemException; 735 736 /** 737 * Returns an ordered range of all the social relations where type = ?. 738 * 739 * <p> 740 * 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. 741 * </p> 742 * 743 * @param type the type 744 * @param start the lower bound of the range of social relations 745 * @param end the upper bound of the range of social relations (not inclusive) 746 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 747 * @return the ordered range of matching social relations 748 * @throws SystemException if a system exception occurred 749 */ 750 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 751 int type, int start, int end, 752 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 753 throws com.liferay.portal.kernel.exception.SystemException; 754 755 /** 756 * Returns the first social relation in the ordered set where type = ?. 757 * 758 * @param type the type 759 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 760 * @return the first matching social relation 761 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 762 * @throws SystemException if a system exception occurred 763 */ 764 public com.liferay.portlet.social.model.SocialRelation findByType_First( 765 int type, 766 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 767 throws com.liferay.portal.kernel.exception.SystemException, 768 com.liferay.portlet.social.NoSuchRelationException; 769 770 /** 771 * Returns the first social relation in the ordered set where type = ?. 772 * 773 * @param type the type 774 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 775 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 776 * @throws SystemException if a system exception occurred 777 */ 778 public com.liferay.portlet.social.model.SocialRelation fetchByType_First( 779 int type, 780 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 781 throws com.liferay.portal.kernel.exception.SystemException; 782 783 /** 784 * Returns the last social relation in the ordered set where type = ?. 785 * 786 * @param type the type 787 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 788 * @return the last matching social relation 789 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 790 * @throws SystemException if a system exception occurred 791 */ 792 public com.liferay.portlet.social.model.SocialRelation findByType_Last( 793 int type, 794 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 795 throws com.liferay.portal.kernel.exception.SystemException, 796 com.liferay.portlet.social.NoSuchRelationException; 797 798 /** 799 * Returns the last social relation in the ordered set where type = ?. 800 * 801 * @param type the type 802 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 803 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 804 * @throws SystemException if a system exception occurred 805 */ 806 public com.liferay.portlet.social.model.SocialRelation fetchByType_Last( 807 int type, 808 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 809 throws com.liferay.portal.kernel.exception.SystemException; 810 811 /** 812 * Returns the social relations before and after the current social relation in the ordered set where type = ?. 813 * 814 * @param relationId the primary key of the current social relation 815 * @param type the type 816 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 817 * @return the previous, current, and next social relation 818 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 819 * @throws SystemException if a system exception occurred 820 */ 821 public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext( 822 long relationId, int type, 823 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 824 throws com.liferay.portal.kernel.exception.SystemException, 825 com.liferay.portlet.social.NoSuchRelationException; 826 827 /** 828 * Returns all the social relations where companyId = ? and type = ?. 829 * 830 * @param companyId the company ID 831 * @param type the type 832 * @return the matching social relations 833 * @throws SystemException if a system exception occurred 834 */ 835 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 836 long companyId, int type) 837 throws com.liferay.portal.kernel.exception.SystemException; 838 839 /** 840 * Returns a range of all the social relations where companyId = ? and type = ?. 841 * 842 * <p> 843 * 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. 844 * </p> 845 * 846 * @param companyId the company ID 847 * @param type the type 848 * @param start the lower bound of the range of social relations 849 * @param end the upper bound of the range of social relations (not inclusive) 850 * @return the range of matching social relations 851 * @throws SystemException if a system exception occurred 852 */ 853 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 854 long companyId, int type, int start, int end) 855 throws com.liferay.portal.kernel.exception.SystemException; 856 857 /** 858 * Returns an ordered range of all the social relations where companyId = ? and type = ?. 859 * 860 * <p> 861 * 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. 862 * </p> 863 * 864 * @param companyId the company ID 865 * @param type the type 866 * @param start the lower bound of the range of social relations 867 * @param end the upper bound of the range of social relations (not inclusive) 868 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 869 * @return the ordered range of matching social relations 870 * @throws SystemException if a system exception occurred 871 */ 872 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 873 long companyId, int type, int start, int end, 874 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 875 throws com.liferay.portal.kernel.exception.SystemException; 876 877 /** 878 * Returns the first social relation in the ordered set where companyId = ? and type = ?. 879 * 880 * @param companyId the company ID 881 * @param type the type 882 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 883 * @return the first matching social relation 884 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 885 * @throws SystemException if a system exception occurred 886 */ 887 public com.liferay.portlet.social.model.SocialRelation findByC_T_First( 888 long companyId, int type, 889 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 890 throws com.liferay.portal.kernel.exception.SystemException, 891 com.liferay.portlet.social.NoSuchRelationException; 892 893 /** 894 * Returns the first social relation in the ordered set where companyId = ? and type = ?. 895 * 896 * @param companyId the company ID 897 * @param type the type 898 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 899 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public com.liferay.portlet.social.model.SocialRelation fetchByC_T_First( 903 long companyId, int type, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException; 906 907 /** 908 * Returns the last social relation in the ordered set where companyId = ? and type = ?. 909 * 910 * @param companyId the company ID 911 * @param type the type 912 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 913 * @return the last matching social relation 914 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 915 * @throws SystemException if a system exception occurred 916 */ 917 public com.liferay.portlet.social.model.SocialRelation findByC_T_Last( 918 long companyId, int type, 919 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 920 throws com.liferay.portal.kernel.exception.SystemException, 921 com.liferay.portlet.social.NoSuchRelationException; 922 923 /** 924 * Returns the last social relation in the ordered set where companyId = ? and type = ?. 925 * 926 * @param companyId the company ID 927 * @param type the type 928 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 929 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 930 * @throws SystemException if a system exception occurred 931 */ 932 public com.liferay.portlet.social.model.SocialRelation fetchByC_T_Last( 933 long companyId, int type, 934 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 935 throws com.liferay.portal.kernel.exception.SystemException; 936 937 /** 938 * Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?. 939 * 940 * @param relationId the primary key of the current social relation 941 * @param companyId the company ID 942 * @param type the type 943 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 944 * @return the previous, current, and next social relation 945 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 946 * @throws SystemException if a system exception occurred 947 */ 948 public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext( 949 long relationId, long companyId, int type, 950 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 951 throws com.liferay.portal.kernel.exception.SystemException, 952 com.liferay.portlet.social.NoSuchRelationException; 953 954 /** 955 * Returns all the social relations where userId1 = ? and userId2 = ?. 956 * 957 * @param userId1 the user id1 958 * @param userId2 the user id2 959 * @return the matching social relations 960 * @throws SystemException if a system exception occurred 961 */ 962 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 963 long userId1, long userId2) 964 throws com.liferay.portal.kernel.exception.SystemException; 965 966 /** 967 * Returns a range of all the social relations where userId1 = ? and userId2 = ?. 968 * 969 * <p> 970 * 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. 971 * </p> 972 * 973 * @param userId1 the user id1 974 * @param userId2 the user id2 975 * @param start the lower bound of the range of social relations 976 * @param end the upper bound of the range of social relations (not inclusive) 977 * @return the range of matching social relations 978 * @throws SystemException if a system exception occurred 979 */ 980 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 981 long userId1, long userId2, int start, int end) 982 throws com.liferay.portal.kernel.exception.SystemException; 983 984 /** 985 * Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?. 986 * 987 * <p> 988 * 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. 989 * </p> 990 * 991 * @param userId1 the user id1 992 * @param userId2 the user id2 993 * @param start the lower bound of the range of social relations 994 * @param end the upper bound of the range of social relations (not inclusive) 995 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 996 * @return the ordered range of matching social relations 997 * @throws SystemException if a system exception occurred 998 */ 999 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 1000 long userId1, long userId2, int start, int end, 1001 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1002 throws com.liferay.portal.kernel.exception.SystemException; 1003 1004 /** 1005 * Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. 1006 * 1007 * @param userId1 the user id1 1008 * @param userId2 the user id2 1009 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1010 * @return the first matching social relation 1011 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_First( 1015 long userId1, long userId2, 1016 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1017 throws com.liferay.portal.kernel.exception.SystemException, 1018 com.liferay.portlet.social.NoSuchRelationException; 1019 1020 /** 1021 * Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. 1022 * 1023 * @param userId1 the user id1 1024 * @param userId2 the user id2 1025 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1026 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_First( 1030 long userId1, long userId2, 1031 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1032 throws com.liferay.portal.kernel.exception.SystemException; 1033 1034 /** 1035 * Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?. 1036 * 1037 * @param userId1 the user id1 1038 * @param userId2 the user id2 1039 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1040 * @return the last matching social relation 1041 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_Last( 1045 long userId1, long userId2, 1046 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1047 throws com.liferay.portal.kernel.exception.SystemException, 1048 com.liferay.portlet.social.NoSuchRelationException; 1049 1050 /** 1051 * Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?. 1052 * 1053 * @param userId1 the user id1 1054 * @param userId2 the user id2 1055 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1056 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 1057 * @throws SystemException if a system exception occurred 1058 */ 1059 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_Last( 1060 long userId1, long userId2, 1061 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1062 throws com.liferay.portal.kernel.exception.SystemException; 1063 1064 /** 1065 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?. 1066 * 1067 * @param relationId the primary key of the current social relation 1068 * @param userId1 the user id1 1069 * @param userId2 the user id2 1070 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1071 * @return the previous, current, and next social relation 1072 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public com.liferay.portlet.social.model.SocialRelation[] findByU1_U2_PrevAndNext( 1076 long relationId, long userId1, long userId2, 1077 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1078 throws com.liferay.portal.kernel.exception.SystemException, 1079 com.liferay.portlet.social.NoSuchRelationException; 1080 1081 /** 1082 * Returns all the social relations where userId1 = ? and type = ?. 1083 * 1084 * @param userId1 the user id1 1085 * @param type the type 1086 * @return the matching social relations 1087 * @throws SystemException if a system exception occurred 1088 */ 1089 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 1090 long userId1, int type) 1091 throws com.liferay.portal.kernel.exception.SystemException; 1092 1093 /** 1094 * Returns a range of all the social relations where userId1 = ? and type = ?. 1095 * 1096 * <p> 1097 * 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. 1098 * </p> 1099 * 1100 * @param userId1 the user id1 1101 * @param type the type 1102 * @param start the lower bound of the range of social relations 1103 * @param end the upper bound of the range of social relations (not inclusive) 1104 * @return the range of matching social relations 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 1108 long userId1, int type, int start, int end) 1109 throws com.liferay.portal.kernel.exception.SystemException; 1110 1111 /** 1112 * Returns an ordered range of all the social relations where userId1 = ? and type = ?. 1113 * 1114 * <p> 1115 * 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. 1116 * </p> 1117 * 1118 * @param userId1 the user id1 1119 * @param type the type 1120 * @param start the lower bound of the range of social relations 1121 * @param end the upper bound of the range of social relations (not inclusive) 1122 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1123 * @return the ordered range of matching social relations 1124 * @throws SystemException if a system exception occurred 1125 */ 1126 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 1127 long userId1, int type, int start, int end, 1128 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1129 throws com.liferay.portal.kernel.exception.SystemException; 1130 1131 /** 1132 * Returns the first social relation in the ordered set where userId1 = ? and type = ?. 1133 * 1134 * @param userId1 the user id1 1135 * @param type the type 1136 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1137 * @return the first matching social relation 1138 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1139 * @throws SystemException if a system exception occurred 1140 */ 1141 public com.liferay.portlet.social.model.SocialRelation findByU1_T_First( 1142 long userId1, int type, 1143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1144 throws com.liferay.portal.kernel.exception.SystemException, 1145 com.liferay.portlet.social.NoSuchRelationException; 1146 1147 /** 1148 * Returns the first social relation in the ordered set where userId1 = ? and type = ?. 1149 * 1150 * @param userId1 the user id1 1151 * @param type the type 1152 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1153 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 1154 * @throws SystemException if a system exception occurred 1155 */ 1156 public com.liferay.portlet.social.model.SocialRelation fetchByU1_T_First( 1157 long userId1, int type, 1158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1159 throws com.liferay.portal.kernel.exception.SystemException; 1160 1161 /** 1162 * Returns the last social relation in the ordered set where userId1 = ? and type = ?. 1163 * 1164 * @param userId1 the user id1 1165 * @param type the type 1166 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1167 * @return the last matching social relation 1168 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1169 * @throws SystemException if a system exception occurred 1170 */ 1171 public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last( 1172 long userId1, int type, 1173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1174 throws com.liferay.portal.kernel.exception.SystemException, 1175 com.liferay.portlet.social.NoSuchRelationException; 1176 1177 /** 1178 * Returns the last social relation in the ordered set where userId1 = ? and type = ?. 1179 * 1180 * @param userId1 the user id1 1181 * @param type the type 1182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1183 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public com.liferay.portlet.social.model.SocialRelation fetchByU1_T_Last( 1187 long userId1, int type, 1188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1189 throws com.liferay.portal.kernel.exception.SystemException; 1190 1191 /** 1192 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?. 1193 * 1194 * @param relationId the primary key of the current social relation 1195 * @param userId1 the user id1 1196 * @param type the type 1197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1198 * @return the previous, current, and next social relation 1199 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext( 1203 long relationId, long userId1, int type, 1204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1205 throws com.liferay.portal.kernel.exception.SystemException, 1206 com.liferay.portlet.social.NoSuchRelationException; 1207 1208 /** 1209 * Returns all the social relations where userId2 = ? and type = ?. 1210 * 1211 * @param userId2 the user id2 1212 * @param type the type 1213 * @return the matching social relations 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 1217 long userId2, int type) 1218 throws com.liferay.portal.kernel.exception.SystemException; 1219 1220 /** 1221 * Returns a range of all the social relations where userId2 = ? and type = ?. 1222 * 1223 * <p> 1224 * 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. 1225 * </p> 1226 * 1227 * @param userId2 the user id2 1228 * @param type the type 1229 * @param start the lower bound of the range of social relations 1230 * @param end the upper bound of the range of social relations (not inclusive) 1231 * @return the range of matching social relations 1232 * @throws SystemException if a system exception occurred 1233 */ 1234 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 1235 long userId2, int type, int start, int end) 1236 throws com.liferay.portal.kernel.exception.SystemException; 1237 1238 /** 1239 * Returns an ordered range of all the social relations where userId2 = ? and type = ?. 1240 * 1241 * <p> 1242 * 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. 1243 * </p> 1244 * 1245 * @param userId2 the user id2 1246 * @param type the type 1247 * @param start the lower bound of the range of social relations 1248 * @param end the upper bound of the range of social relations (not inclusive) 1249 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1250 * @return the ordered range of matching social relations 1251 * @throws SystemException if a system exception occurred 1252 */ 1253 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 1254 long userId2, int type, int start, int end, 1255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1256 throws com.liferay.portal.kernel.exception.SystemException; 1257 1258 /** 1259 * Returns the first social relation in the ordered set where userId2 = ? and type = ?. 1260 * 1261 * @param userId2 the user id2 1262 * @param type the type 1263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1264 * @return the first matching social relation 1265 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1266 * @throws SystemException if a system exception occurred 1267 */ 1268 public com.liferay.portlet.social.model.SocialRelation findByU2_T_First( 1269 long userId2, int type, 1270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1271 throws com.liferay.portal.kernel.exception.SystemException, 1272 com.liferay.portlet.social.NoSuchRelationException; 1273 1274 /** 1275 * Returns the first social relation in the ordered set where userId2 = ? and type = ?. 1276 * 1277 * @param userId2 the user id2 1278 * @param type the type 1279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1280 * @return the first matching social relation, or <code>null</code> if a matching social relation could not be found 1281 * @throws SystemException if a system exception occurred 1282 */ 1283 public com.liferay.portlet.social.model.SocialRelation fetchByU2_T_First( 1284 long userId2, int type, 1285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1286 throws com.liferay.portal.kernel.exception.SystemException; 1287 1288 /** 1289 * Returns the last social relation in the ordered set where userId2 = ? and type = ?. 1290 * 1291 * @param userId2 the user id2 1292 * @param type the type 1293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1294 * @return the last matching social relation 1295 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last( 1299 long userId2, int type, 1300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1301 throws com.liferay.portal.kernel.exception.SystemException, 1302 com.liferay.portlet.social.NoSuchRelationException; 1303 1304 /** 1305 * Returns the last social relation in the ordered set where userId2 = ? and type = ?. 1306 * 1307 * @param userId2 the user id2 1308 * @param type the type 1309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1310 * @return the last matching social relation, or <code>null</code> if a matching social relation could not be found 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public com.liferay.portlet.social.model.SocialRelation fetchByU2_T_Last( 1314 long userId2, int type, 1315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1316 throws com.liferay.portal.kernel.exception.SystemException; 1317 1318 /** 1319 * Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?. 1320 * 1321 * @param relationId the primary key of the current social relation 1322 * @param userId2 the user id2 1323 * @param type the type 1324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1325 * @return the previous, current, and next social relation 1326 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 1327 * @throws SystemException if a system exception occurred 1328 */ 1329 public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext( 1330 long relationId, long userId2, int type, 1331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1332 throws com.liferay.portal.kernel.exception.SystemException, 1333 com.liferay.portlet.social.NoSuchRelationException; 1334 1335 /** 1336 * Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a {@link com.liferay.portlet.social.NoSuchRelationException} if it could not be found. 1337 * 1338 * @param userId1 the user id1 1339 * @param userId2 the user id2 1340 * @param type the type 1341 * @return the matching social relation 1342 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T( 1346 long userId1, long userId2, int type) 1347 throws com.liferay.portal.kernel.exception.SystemException, 1348 com.liferay.portlet.social.NoSuchRelationException; 1349 1350 /** 1351 * Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1352 * 1353 * @param userId1 the user id1 1354 * @param userId2 the user id2 1355 * @param type the type 1356 * @return the matching social relation, or <code>null</code> if a matching social relation could not be found 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T( 1360 long userId1, long userId2, int type) 1361 throws com.liferay.portal.kernel.exception.SystemException; 1362 1363 /** 1364 * Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1365 * 1366 * @param userId1 the user id1 1367 * @param userId2 the user id2 1368 * @param type the type 1369 * @param retrieveFromCache whether to use the finder cache 1370 * @return the matching social relation, or <code>null</code> if a matching social relation could not be found 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T( 1374 long userId1, long userId2, int type, boolean retrieveFromCache) 1375 throws com.liferay.portal.kernel.exception.SystemException; 1376 1377 /** 1378 * Returns all the social relations. 1379 * 1380 * @return the social relations 1381 * @throws SystemException if a system exception occurred 1382 */ 1383 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll() 1384 throws com.liferay.portal.kernel.exception.SystemException; 1385 1386 /** 1387 * Returns a range of all the social relations. 1388 * 1389 * <p> 1390 * 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. 1391 * </p> 1392 * 1393 * @param start the lower bound of the range of social relations 1394 * @param end the upper bound of the range of social relations (not inclusive) 1395 * @return the range of social relations 1396 * @throws SystemException if a system exception occurred 1397 */ 1398 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1399 int start, int end) 1400 throws com.liferay.portal.kernel.exception.SystemException; 1401 1402 /** 1403 * Returns an ordered range of all the social relations. 1404 * 1405 * <p> 1406 * 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. 1407 * </p> 1408 * 1409 * @param start the lower bound of the range of social relations 1410 * @param end the upper bound of the range of social relations (not inclusive) 1411 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1412 * @return the ordered range of social relations 1413 * @throws SystemException if a system exception occurred 1414 */ 1415 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1416 int start, int end, 1417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1418 throws com.liferay.portal.kernel.exception.SystemException; 1419 1420 /** 1421 * Removes all the social relations where uuid = ? from the database. 1422 * 1423 * @param uuid the uuid 1424 * @throws SystemException if a system exception occurred 1425 */ 1426 public void removeByUuid(java.lang.String uuid) 1427 throws com.liferay.portal.kernel.exception.SystemException; 1428 1429 /** 1430 * Removes all the social relations where uuid = ? and companyId = ? from the database. 1431 * 1432 * @param uuid the uuid 1433 * @param companyId the company ID 1434 * @throws SystemException if a system exception occurred 1435 */ 1436 public void removeByUuid_C(java.lang.String uuid, long companyId) 1437 throws com.liferay.portal.kernel.exception.SystemException; 1438 1439 /** 1440 * Removes all the social relations where companyId = ? from the database. 1441 * 1442 * @param companyId the company ID 1443 * @throws SystemException if a system exception occurred 1444 */ 1445 public void removeByCompanyId(long companyId) 1446 throws com.liferay.portal.kernel.exception.SystemException; 1447 1448 /** 1449 * Removes all the social relations where userId1 = ? from the database. 1450 * 1451 * @param userId1 the user id1 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public void removeByUserId1(long userId1) 1455 throws com.liferay.portal.kernel.exception.SystemException; 1456 1457 /** 1458 * Removes all the social relations where userId2 = ? from the database. 1459 * 1460 * @param userId2 the user id2 1461 * @throws SystemException if a system exception occurred 1462 */ 1463 public void removeByUserId2(long userId2) 1464 throws com.liferay.portal.kernel.exception.SystemException; 1465 1466 /** 1467 * Removes all the social relations where type = ? from the database. 1468 * 1469 * @param type the type 1470 * @throws SystemException if a system exception occurred 1471 */ 1472 public void removeByType(int type) 1473 throws com.liferay.portal.kernel.exception.SystemException; 1474 1475 /** 1476 * Removes all the social relations where companyId = ? and type = ? from the database. 1477 * 1478 * @param companyId the company ID 1479 * @param type the type 1480 * @throws SystemException if a system exception occurred 1481 */ 1482 public void removeByC_T(long companyId, int type) 1483 throws com.liferay.portal.kernel.exception.SystemException; 1484 1485 /** 1486 * Removes all the social relations where userId1 = ? and userId2 = ? from the database. 1487 * 1488 * @param userId1 the user id1 1489 * @param userId2 the user id2 1490 * @throws SystemException if a system exception occurred 1491 */ 1492 public void removeByU1_U2(long userId1, long userId2) 1493 throws com.liferay.portal.kernel.exception.SystemException; 1494 1495 /** 1496 * Removes all the social relations where userId1 = ? and type = ? from the database. 1497 * 1498 * @param userId1 the user id1 1499 * @param type the type 1500 * @throws SystemException if a system exception occurred 1501 */ 1502 public void removeByU1_T(long userId1, int type) 1503 throws com.liferay.portal.kernel.exception.SystemException; 1504 1505 /** 1506 * Removes all the social relations where userId2 = ? and type = ? from the database. 1507 * 1508 * @param userId2 the user id2 1509 * @param type the type 1510 * @throws SystemException if a system exception occurred 1511 */ 1512 public void removeByU2_T(long userId2, int type) 1513 throws com.liferay.portal.kernel.exception.SystemException; 1514 1515 /** 1516 * Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. 1517 * 1518 * @param userId1 the user id1 1519 * @param userId2 the user id2 1520 * @param type the type 1521 * @return the social relation that was removed 1522 * @throws SystemException if a system exception occurred 1523 */ 1524 public com.liferay.portlet.social.model.SocialRelation removeByU1_U2_T( 1525 long userId1, long userId2, int type) 1526 throws com.liferay.portal.kernel.exception.SystemException, 1527 com.liferay.portlet.social.NoSuchRelationException; 1528 1529 /** 1530 * Removes all the social relations from the database. 1531 * 1532 * @throws SystemException if a system exception occurred 1533 */ 1534 public void removeAll() 1535 throws com.liferay.portal.kernel.exception.SystemException; 1536 1537 /** 1538 * Returns the number of social relations where uuid = ?. 1539 * 1540 * @param uuid the uuid 1541 * @return the number of matching social relations 1542 * @throws SystemException if a system exception occurred 1543 */ 1544 public int countByUuid(java.lang.String uuid) 1545 throws com.liferay.portal.kernel.exception.SystemException; 1546 1547 /** 1548 * Returns the number of social relations where uuid = ? and companyId = ?. 1549 * 1550 * @param uuid the uuid 1551 * @param companyId the company ID 1552 * @return the number of matching social relations 1553 * @throws SystemException if a system exception occurred 1554 */ 1555 public int countByUuid_C(java.lang.String uuid, long companyId) 1556 throws com.liferay.portal.kernel.exception.SystemException; 1557 1558 /** 1559 * Returns the number of social relations where companyId = ?. 1560 * 1561 * @param companyId the company ID 1562 * @return the number of matching social relations 1563 * @throws SystemException if a system exception occurred 1564 */ 1565 public int countByCompanyId(long companyId) 1566 throws com.liferay.portal.kernel.exception.SystemException; 1567 1568 /** 1569 * Returns the number of social relations where userId1 = ?. 1570 * 1571 * @param userId1 the user id1 1572 * @return the number of matching social relations 1573 * @throws SystemException if a system exception occurred 1574 */ 1575 public int countByUserId1(long userId1) 1576 throws com.liferay.portal.kernel.exception.SystemException; 1577 1578 /** 1579 * Returns the number of social relations where userId2 = ?. 1580 * 1581 * @param userId2 the user id2 1582 * @return the number of matching social relations 1583 * @throws SystemException if a system exception occurred 1584 */ 1585 public int countByUserId2(long userId2) 1586 throws com.liferay.portal.kernel.exception.SystemException; 1587 1588 /** 1589 * Returns the number of social relations where type = ?. 1590 * 1591 * @param type the type 1592 * @return the number of matching social relations 1593 * @throws SystemException if a system exception occurred 1594 */ 1595 public int countByType(int type) 1596 throws com.liferay.portal.kernel.exception.SystemException; 1597 1598 /** 1599 * Returns the number of social relations where companyId = ? and type = ?. 1600 * 1601 * @param companyId the company ID 1602 * @param type the type 1603 * @return the number of matching social relations 1604 * @throws SystemException if a system exception occurred 1605 */ 1606 public int countByC_T(long companyId, int type) 1607 throws com.liferay.portal.kernel.exception.SystemException; 1608 1609 /** 1610 * Returns the number of social relations where userId1 = ? and userId2 = ?. 1611 * 1612 * @param userId1 the user id1 1613 * @param userId2 the user id2 1614 * @return the number of matching social relations 1615 * @throws SystemException if a system exception occurred 1616 */ 1617 public int countByU1_U2(long userId1, long userId2) 1618 throws com.liferay.portal.kernel.exception.SystemException; 1619 1620 /** 1621 * Returns the number of social relations where userId1 = ? and type = ?. 1622 * 1623 * @param userId1 the user id1 1624 * @param type the type 1625 * @return the number of matching social relations 1626 * @throws SystemException if a system exception occurred 1627 */ 1628 public int countByU1_T(long userId1, int type) 1629 throws com.liferay.portal.kernel.exception.SystemException; 1630 1631 /** 1632 * Returns the number of social relations where userId2 = ? and type = ?. 1633 * 1634 * @param userId2 the user id2 1635 * @param type the type 1636 * @return the number of matching social relations 1637 * @throws SystemException if a system exception occurred 1638 */ 1639 public int countByU2_T(long userId2, int type) 1640 throws com.liferay.portal.kernel.exception.SystemException; 1641 1642 /** 1643 * Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?. 1644 * 1645 * @param userId1 the user id1 1646 * @param userId2 the user id2 1647 * @param type the type 1648 * @return the number of matching social relations 1649 * @throws SystemException if a system exception occurred 1650 */ 1651 public int countByU1_U2_T(long userId1, long userId2, int type) 1652 throws com.liferay.portal.kernel.exception.SystemException; 1653 1654 /** 1655 * Returns the number of social relations. 1656 * 1657 * @return the number of social relations 1658 * @throws SystemException if a system exception occurred 1659 */ 1660 public int countAll() 1661 throws com.liferay.portal.kernel.exception.SystemException; 1662 }