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 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the social relation with the primary key or throws a {@link com.liferay.portlet.social.NoSuchRelationException} if it could not be found. 085 * 086 * @param relationId the primary key of the social relation 087 * @return the social relation 088 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey( 092 long relationId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.social.NoSuchRelationException; 095 096 /** 097 * Returns the social relation with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param relationId the primary key of the social relation 100 * @return the social relation, or <code>null</code> if a social relation with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey( 104 long relationId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the social relations where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching social relations 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the social relations where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of social relations 127 * @param end the upper bound of the range of social relations (not inclusive) 128 * @return the range of matching social relations 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the social relations where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of social relations 144 * @param end the upper bound of the range of social relations (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching social relations 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first social relation in the ordered set where uuid = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching social relation 164 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.social.model.SocialRelation findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.social.NoSuchRelationException; 172 173 /** 174 * Returns the last social relation in the ordered set where uuid = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param uuid the uuid 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching social relation 183 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.social.model.SocialRelation findByUuid_Last( 187 java.lang.String uuid, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.social.NoSuchRelationException; 191 192 /** 193 * Returns the social relations before and after the current social relation in the ordered set where uuid = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param relationId the primary key of the current social relation 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next social relation 203 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext( 207 long relationId, java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.social.NoSuchRelationException; 211 212 /** 213 * Returns all the social relations where companyId = ?. 214 * 215 * @param companyId the company ID 216 * @return the matching social relations 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 220 long companyId) 221 throws com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns a range of all the social relations where companyId = ?. 225 * 226 * <p> 227 * 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. 228 * </p> 229 * 230 * @param companyId the company ID 231 * @param start the lower bound of the range of social relations 232 * @param end the upper bound of the range of social relations (not inclusive) 233 * @return the range of matching social relations 234 * @throws SystemException if a system exception occurred 235 */ 236 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 237 long companyId, int start, int end) 238 throws com.liferay.portal.kernel.exception.SystemException; 239 240 /** 241 * Returns an ordered range of all the social relations where companyId = ?. 242 * 243 * <p> 244 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 245 * </p> 246 * 247 * @param companyId the company ID 248 * @param start the lower bound of the range of social relations 249 * @param end the upper bound of the range of social relations (not inclusive) 250 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 251 * @return the ordered range of matching social relations 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId( 255 long companyId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Returns the first social relation in the ordered set where companyId = ?. 261 * 262 * <p> 263 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 264 * </p> 265 * 266 * @param companyId the company ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching social relation 269 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First( 273 long companyId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException, 276 com.liferay.portlet.social.NoSuchRelationException; 277 278 /** 279 * Returns the last social relation in the ordered set where companyId = ?. 280 * 281 * <p> 282 * 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. 283 * </p> 284 * 285 * @param companyId the company ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the last matching social relation 288 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last( 292 long companyId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.social.NoSuchRelationException; 296 297 /** 298 * Returns the social relations before and after the current social relation in the ordered set where companyId = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param relationId the primary key of the current social relation 305 * @param companyId the company ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next social relation 308 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext( 312 long relationId, long companyId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.social.NoSuchRelationException; 316 317 /** 318 * Returns all the social relations where userId1 = ?. 319 * 320 * @param userId1 the user id1 321 * @return the matching social relations 322 * @throws SystemException if a system exception occurred 323 */ 324 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 325 long userId1) 326 throws com.liferay.portal.kernel.exception.SystemException; 327 328 /** 329 * Returns a range of all the social relations where userId1 = ?. 330 * 331 * <p> 332 * 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. 333 * </p> 334 * 335 * @param userId1 the user id1 336 * @param start the lower bound of the range of social relations 337 * @param end the upper bound of the range of social relations (not inclusive) 338 * @return the range of matching social relations 339 * @throws SystemException if a system exception occurred 340 */ 341 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 342 long userId1, int start, int end) 343 throws com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns an ordered range of all the social relations where userId1 = ?. 347 * 348 * <p> 349 * 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. 350 * </p> 351 * 352 * @param userId1 the user id1 353 * @param start the lower bound of the range of social relations 354 * @param end the upper bound of the range of social relations (not inclusive) 355 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 356 * @return the ordered range of matching social relations 357 * @throws SystemException if a system exception occurred 358 */ 359 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1( 360 long userId1, int start, int end, 361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 362 throws com.liferay.portal.kernel.exception.SystemException; 363 364 /** 365 * Returns the first social relation in the ordered set where userId1 = ?. 366 * 367 * <p> 368 * 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. 369 * </p> 370 * 371 * @param userId1 the user id1 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the first matching social relation 374 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 375 * @throws SystemException if a system exception occurred 376 */ 377 public com.liferay.portlet.social.model.SocialRelation findByUserId1_First( 378 long userId1, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException, 381 com.liferay.portlet.social.NoSuchRelationException; 382 383 /** 384 * Returns the last social relation in the ordered set where userId1 = ?. 385 * 386 * <p> 387 * 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. 388 * </p> 389 * 390 * @param userId1 the user id1 391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 392 * @return the last matching social relation 393 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last( 397 long userId1, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException, 400 com.liferay.portlet.social.NoSuchRelationException; 401 402 /** 403 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ?. 404 * 405 * <p> 406 * 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. 407 * </p> 408 * 409 * @param relationId the primary key of the current social relation 410 * @param userId1 the user id1 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the previous, current, and next social relation 413 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext( 417 long relationId, long userId1, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException, 420 com.liferay.portlet.social.NoSuchRelationException; 421 422 /** 423 * Returns all the social relations where userId2 = ?. 424 * 425 * @param userId2 the user id2 426 * @return the matching social relations 427 * @throws SystemException if a system exception occurred 428 */ 429 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 430 long userId2) 431 throws com.liferay.portal.kernel.exception.SystemException; 432 433 /** 434 * Returns a range of all the social relations where userId2 = ?. 435 * 436 * <p> 437 * 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. 438 * </p> 439 * 440 * @param userId2 the user id2 441 * @param start the lower bound of the range of social relations 442 * @param end the upper bound of the range of social relations (not inclusive) 443 * @return the range of matching social relations 444 * @throws SystemException if a system exception occurred 445 */ 446 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 447 long userId2, int start, int end) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Returns an ordered range of all the social relations where userId2 = ?. 452 * 453 * <p> 454 * 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. 455 * </p> 456 * 457 * @param userId2 the user id2 458 * @param start the lower bound of the range of social relations 459 * @param end the upper bound of the range of social relations (not inclusive) 460 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 461 * @return the ordered range of matching social relations 462 * @throws SystemException if a system exception occurred 463 */ 464 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2( 465 long userId2, int start, int end, 466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Returns the first social relation in the ordered set where userId2 = ?. 471 * 472 * <p> 473 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 474 * </p> 475 * 476 * @param userId2 the user id2 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the first matching social relation 479 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public com.liferay.portlet.social.model.SocialRelation findByUserId2_First( 483 long userId2, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException, 486 com.liferay.portlet.social.NoSuchRelationException; 487 488 /** 489 * Returns the last social relation in the ordered set where userId2 = ?. 490 * 491 * <p> 492 * 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. 493 * </p> 494 * 495 * @param userId2 the user id2 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the last matching social relation 498 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last( 502 long userId2, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.kernel.exception.SystemException, 505 com.liferay.portlet.social.NoSuchRelationException; 506 507 /** 508 * Returns the social relations before and after the current social relation in the ordered set where userId2 = ?. 509 * 510 * <p> 511 * 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. 512 * </p> 513 * 514 * @param relationId the primary key of the current social relation 515 * @param userId2 the user id2 516 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 517 * @return the previous, current, and next social relation 518 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext( 522 long relationId, long userId2, 523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 524 throws com.liferay.portal.kernel.exception.SystemException, 525 com.liferay.portlet.social.NoSuchRelationException; 526 527 /** 528 * Returns all the social relations where type = ?. 529 * 530 * @param type the type 531 * @return the matching social relations 532 * @throws SystemException if a system exception occurred 533 */ 534 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 535 int type) throws com.liferay.portal.kernel.exception.SystemException; 536 537 /** 538 * Returns a range of all the social relations where type = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param type the type 545 * @param start the lower bound of the range of social relations 546 * @param end the upper bound of the range of social relations (not inclusive) 547 * @return the range of matching social relations 548 * @throws SystemException if a system exception occurred 549 */ 550 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 551 int type, int start, int end) 552 throws com.liferay.portal.kernel.exception.SystemException; 553 554 /** 555 * Returns an ordered range of all the social relations where type = ?. 556 * 557 * <p> 558 * 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. 559 * </p> 560 * 561 * @param type the type 562 * @param start the lower bound of the range of social relations 563 * @param end the upper bound of the range of social relations (not inclusive) 564 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 565 * @return the ordered range of matching social relations 566 * @throws SystemException if a system exception occurred 567 */ 568 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType( 569 int type, int start, int end, 570 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Returns the first social relation in the ordered set where type = ?. 575 * 576 * <p> 577 * 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. 578 * </p> 579 * 580 * @param type the type 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the first matching social relation 583 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public com.liferay.portlet.social.model.SocialRelation findByType_First( 587 int type, 588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 589 throws com.liferay.portal.kernel.exception.SystemException, 590 com.liferay.portlet.social.NoSuchRelationException; 591 592 /** 593 * Returns the last social relation in the ordered set where type = ?. 594 * 595 * <p> 596 * 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. 597 * </p> 598 * 599 * @param type the type 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the last matching social relation 602 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public com.liferay.portlet.social.model.SocialRelation findByType_Last( 606 int type, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException, 609 com.liferay.portlet.social.NoSuchRelationException; 610 611 /** 612 * Returns the social relations before and after the current social relation in the ordered set where type = ?. 613 * 614 * <p> 615 * 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. 616 * </p> 617 * 618 * @param relationId the primary key of the current social relation 619 * @param type the type 620 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 621 * @return the previous, current, and next social relation 622 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 623 * @throws SystemException if a system exception occurred 624 */ 625 public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext( 626 long relationId, int type, 627 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 628 throws com.liferay.portal.kernel.exception.SystemException, 629 com.liferay.portlet.social.NoSuchRelationException; 630 631 /** 632 * Returns all the social relations where companyId = ? and type = ?. 633 * 634 * @param companyId the company ID 635 * @param type the type 636 * @return the matching social relations 637 * @throws SystemException if a system exception occurred 638 */ 639 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 640 long companyId, int type) 641 throws com.liferay.portal.kernel.exception.SystemException; 642 643 /** 644 * Returns a range of all the social relations where companyId = ? and type = ?. 645 * 646 * <p> 647 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 648 * </p> 649 * 650 * @param companyId the company ID 651 * @param type the type 652 * @param start the lower bound of the range of social relations 653 * @param end the upper bound of the range of social relations (not inclusive) 654 * @return the range of matching social relations 655 * @throws SystemException if a system exception occurred 656 */ 657 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 658 long companyId, int type, int start, int end) 659 throws com.liferay.portal.kernel.exception.SystemException; 660 661 /** 662 * Returns an ordered range of all the social relations where companyId = ? and type = ?. 663 * 664 * <p> 665 * 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. 666 * </p> 667 * 668 * @param companyId the company ID 669 * @param type the type 670 * @param start the lower bound of the range of social relations 671 * @param end the upper bound of the range of social relations (not inclusive) 672 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 673 * @return the ordered range of matching social relations 674 * @throws SystemException if a system exception occurred 675 */ 676 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T( 677 long companyId, int type, int start, int end, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException; 680 681 /** 682 * Returns the first social relation in the ordered set where companyId = ? and type = ?. 683 * 684 * <p> 685 * 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. 686 * </p> 687 * 688 * @param companyId the company ID 689 * @param type the type 690 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 691 * @return the first matching social relation 692 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 693 * @throws SystemException if a system exception occurred 694 */ 695 public com.liferay.portlet.social.model.SocialRelation findByC_T_First( 696 long companyId, int type, 697 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 698 throws com.liferay.portal.kernel.exception.SystemException, 699 com.liferay.portlet.social.NoSuchRelationException; 700 701 /** 702 * Returns the last social relation in the ordered set where companyId = ? and type = ?. 703 * 704 * <p> 705 * 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. 706 * </p> 707 * 708 * @param companyId the company ID 709 * @param type the type 710 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 711 * @return the last matching social relation 712 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 713 * @throws SystemException if a system exception occurred 714 */ 715 public com.liferay.portlet.social.model.SocialRelation findByC_T_Last( 716 long companyId, int type, 717 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 718 throws com.liferay.portal.kernel.exception.SystemException, 719 com.liferay.portlet.social.NoSuchRelationException; 720 721 /** 722 * Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?. 723 * 724 * <p> 725 * 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. 726 * </p> 727 * 728 * @param relationId the primary key of the current social relation 729 * @param companyId the company ID 730 * @param type the type 731 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 732 * @return the previous, current, and next social relation 733 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 734 * @throws SystemException if a system exception occurred 735 */ 736 public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext( 737 long relationId, long companyId, int type, 738 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 739 throws com.liferay.portal.kernel.exception.SystemException, 740 com.liferay.portlet.social.NoSuchRelationException; 741 742 /** 743 * Returns all the social relations where userId1 = ? and userId2 = ?. 744 * 745 * @param userId1 the user id1 746 * @param userId2 the user id2 747 * @return the matching social relations 748 * @throws SystemException if a system exception occurred 749 */ 750 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 751 long userId1, long userId2) 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Returns a range of all the social relations where userId1 = ? and userId2 = ?. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param userId1 the user id1 762 * @param userId2 the user id2 763 * @param start the lower bound of the range of social relations 764 * @param end the upper bound of the range of social relations (not inclusive) 765 * @return the range of matching social relations 766 * @throws SystemException if a system exception occurred 767 */ 768 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 769 long userId1, long userId2, int start, int end) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?. 774 * 775 * <p> 776 * 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. 777 * </p> 778 * 779 * @param userId1 the user id1 780 * @param userId2 the user id2 781 * @param start the lower bound of the range of social relations 782 * @param end the upper bound of the range of social relations (not inclusive) 783 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 784 * @return the ordered range of matching social relations 785 * @throws SystemException if a system exception occurred 786 */ 787 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2( 788 long userId1, long userId2, int start, int end, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. 794 * 795 * <p> 796 * 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. 797 * </p> 798 * 799 * @param userId1 the user id1 800 * @param userId2 the user id2 801 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 802 * @return the first matching social relation 803 * @throws com.liferay.portlet.social.NoSuchRelationException 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 findByU1_U2_First( 807 long userId1, long userId2, 808 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 809 throws com.liferay.portal.kernel.exception.SystemException, 810 com.liferay.portlet.social.NoSuchRelationException; 811 812 /** 813 * Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?. 814 * 815 * <p> 816 * 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. 817 * </p> 818 * 819 * @param userId1 the user id1 820 * @param userId2 the user id2 821 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 822 * @return the last matching social relation 823 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 824 * @throws SystemException if a system exception occurred 825 */ 826 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_Last( 827 long userId1, long userId2, 828 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 829 throws com.liferay.portal.kernel.exception.SystemException, 830 com.liferay.portlet.social.NoSuchRelationException; 831 832 /** 833 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?. 834 * 835 * <p> 836 * 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. 837 * </p> 838 * 839 * @param relationId the primary key of the current social relation 840 * @param userId1 the user id1 841 * @param userId2 the user id2 842 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 843 * @return the previous, current, and next social relation 844 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 845 * @throws SystemException if a system exception occurred 846 */ 847 public com.liferay.portlet.social.model.SocialRelation[] findByU1_U2_PrevAndNext( 848 long relationId, long userId1, long userId2, 849 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 850 throws com.liferay.portal.kernel.exception.SystemException, 851 com.liferay.portlet.social.NoSuchRelationException; 852 853 /** 854 * Returns all the social relations where userId1 = ? and type = ?. 855 * 856 * @param userId1 the user id1 857 * @param type the type 858 * @return the matching social relations 859 * @throws SystemException if a system exception occurred 860 */ 861 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 862 long userId1, int type) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Returns a range of all the social relations where userId1 = ? and type = ?. 867 * 868 * <p> 869 * 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. 870 * </p> 871 * 872 * @param userId1 the user id1 873 * @param type the type 874 * @param start the lower bound of the range of social relations 875 * @param end the upper bound of the range of social relations (not inclusive) 876 * @return the range of matching social relations 877 * @throws SystemException if a system exception occurred 878 */ 879 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 880 long userId1, int type, int start, int end) 881 throws com.liferay.portal.kernel.exception.SystemException; 882 883 /** 884 * Returns an ordered range of all the social relations where userId1 = ? and type = ?. 885 * 886 * <p> 887 * 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. 888 * </p> 889 * 890 * @param userId1 the user id1 891 * @param type the type 892 * @param start the lower bound of the range of social relations 893 * @param end the upper bound of the range of social relations (not inclusive) 894 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 895 * @return the ordered range of matching social relations 896 * @throws SystemException if a system exception occurred 897 */ 898 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T( 899 long userId1, int type, int start, int end, 900 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 901 throws com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Returns the first social relation in the ordered set where userId1 = ? and type = ?. 905 * 906 * <p> 907 * 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. 908 * </p> 909 * 910 * @param userId1 the user id1 911 * @param type the type 912 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 913 * @return the first 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 findByU1_T_First( 918 long userId1, 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 userId1 = ? and type = ?. 925 * 926 * <p> 927 * 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. 928 * </p> 929 * 930 * @param userId1 the user id1 931 * @param type the type 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the last matching social relation 934 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last( 938 long userId1, int type, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.social.NoSuchRelationException; 942 943 /** 944 * Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?. 945 * 946 * <p> 947 * 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. 948 * </p> 949 * 950 * @param relationId the primary key of the current social relation 951 * @param userId1 the user id1 952 * @param type the type 953 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 954 * @return the previous, current, and next social relation 955 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 956 * @throws SystemException if a system exception occurred 957 */ 958 public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext( 959 long relationId, long userId1, int type, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException, 962 com.liferay.portlet.social.NoSuchRelationException; 963 964 /** 965 * Returns all the social relations where userId2 = ? and type = ?. 966 * 967 * @param userId2 the user id2 968 * @param type the type 969 * @return the matching social relations 970 * @throws SystemException if a system exception occurred 971 */ 972 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 973 long userId2, int type) 974 throws com.liferay.portal.kernel.exception.SystemException; 975 976 /** 977 * Returns a range of all the social relations where userId2 = ? and type = ?. 978 * 979 * <p> 980 * 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. 981 * </p> 982 * 983 * @param userId2 the user id2 984 * @param type the type 985 * @param start the lower bound of the range of social relations 986 * @param end the upper bound of the range of social relations (not inclusive) 987 * @return the range of matching social relations 988 * @throws SystemException if a system exception occurred 989 */ 990 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 991 long userId2, int type, int start, int end) 992 throws com.liferay.portal.kernel.exception.SystemException; 993 994 /** 995 * Returns an ordered range of all the social relations where userId2 = ? and type = ?. 996 * 997 * <p> 998 * 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. 999 * </p> 1000 * 1001 * @param userId2 the user id2 1002 * @param type the type 1003 * @param start the lower bound of the range of social relations 1004 * @param end the upper bound of the range of social relations (not inclusive) 1005 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1006 * @return the ordered range of matching social relations 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T( 1010 long userId2, int type, int start, int end, 1011 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1012 throws com.liferay.portal.kernel.exception.SystemException; 1013 1014 /** 1015 * Returns the first social relation in the ordered set where userId2 = ? and type = ?. 1016 * 1017 * <p> 1018 * 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. 1019 * </p> 1020 * 1021 * @param userId2 the user id2 1022 * @param type the type 1023 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1024 * @return the first matching social relation 1025 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public com.liferay.portlet.social.model.SocialRelation findByU2_T_First( 1029 long userId2, int type, 1030 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1031 throws com.liferay.portal.kernel.exception.SystemException, 1032 com.liferay.portlet.social.NoSuchRelationException; 1033 1034 /** 1035 * Returns the last social relation in the ordered set where userId2 = ? and type = ?. 1036 * 1037 * <p> 1038 * 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. 1039 * </p> 1040 * 1041 * @param userId2 the user id2 1042 * @param type the type 1043 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1044 * @return the last matching social relation 1045 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last( 1049 long userId2, int type, 1050 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1051 throws com.liferay.portal.kernel.exception.SystemException, 1052 com.liferay.portlet.social.NoSuchRelationException; 1053 1054 /** 1055 * Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?. 1056 * 1057 * <p> 1058 * 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. 1059 * </p> 1060 * 1061 * @param relationId the primary key of the current social relation 1062 * @param userId2 the user id2 1063 * @param type the type 1064 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1065 * @return the previous, current, and next social relation 1066 * @throws com.liferay.portlet.social.NoSuchRelationException if a social relation with the primary key could not be found 1067 * @throws SystemException if a system exception occurred 1068 */ 1069 public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext( 1070 long relationId, long userId2, int type, 1071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1072 throws com.liferay.portal.kernel.exception.SystemException, 1073 com.liferay.portlet.social.NoSuchRelationException; 1074 1075 /** 1076 * 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. 1077 * 1078 * @param userId1 the user id1 1079 * @param userId2 the user id2 1080 * @param type the type 1081 * @return the matching social relation 1082 * @throws com.liferay.portlet.social.NoSuchRelationException if a matching social relation could not be found 1083 * @throws SystemException if a system exception occurred 1084 */ 1085 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T( 1086 long userId1, long userId2, int type) 1087 throws com.liferay.portal.kernel.exception.SystemException, 1088 com.liferay.portlet.social.NoSuchRelationException; 1089 1090 /** 1091 * 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. 1092 * 1093 * @param userId1 the user id1 1094 * @param userId2 the user id2 1095 * @param type the type 1096 * @return the matching social relation, or <code>null</code> if a matching social relation could not be found 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T( 1100 long userId1, long userId2, int type) 1101 throws com.liferay.portal.kernel.exception.SystemException; 1102 1103 /** 1104 * 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. 1105 * 1106 * @param userId1 the user id1 1107 * @param userId2 the user id2 1108 * @param type the type 1109 * @param retrieveFromCache whether to use the finder cache 1110 * @return the matching social relation, or <code>null</code> if a matching social relation could not be found 1111 * @throws SystemException if a system exception occurred 1112 */ 1113 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T( 1114 long userId1, long userId2, int type, boolean retrieveFromCache) 1115 throws com.liferay.portal.kernel.exception.SystemException; 1116 1117 /** 1118 * Returns all the social relations. 1119 * 1120 * @return the social relations 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll() 1124 throws com.liferay.portal.kernel.exception.SystemException; 1125 1126 /** 1127 * Returns a range of all the social relations. 1128 * 1129 * <p> 1130 * 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. 1131 * </p> 1132 * 1133 * @param start the lower bound of the range of social relations 1134 * @param end the upper bound of the range of social relations (not inclusive) 1135 * @return the range of social relations 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1139 int start, int end) 1140 throws com.liferay.portal.kernel.exception.SystemException; 1141 1142 /** 1143 * Returns an ordered range of all the social relations. 1144 * 1145 * <p> 1146 * 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. 1147 * </p> 1148 * 1149 * @param start the lower bound of the range of social relations 1150 * @param end the upper bound of the range of social relations (not inclusive) 1151 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1152 * @return the ordered range of social relations 1153 * @throws SystemException if a system exception occurred 1154 */ 1155 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1156 int start, int end, 1157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1158 throws com.liferay.portal.kernel.exception.SystemException; 1159 1160 /** 1161 * Removes all the social relations where uuid = ? from the database. 1162 * 1163 * @param uuid the uuid 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public void removeByUuid(java.lang.String uuid) 1167 throws com.liferay.portal.kernel.exception.SystemException; 1168 1169 /** 1170 * Removes all the social relations where companyId = ? from the database. 1171 * 1172 * @param companyId the company ID 1173 * @throws SystemException if a system exception occurred 1174 */ 1175 public void removeByCompanyId(long companyId) 1176 throws com.liferay.portal.kernel.exception.SystemException; 1177 1178 /** 1179 * Removes all the social relations where userId1 = ? from the database. 1180 * 1181 * @param userId1 the user id1 1182 * @throws SystemException if a system exception occurred 1183 */ 1184 public void removeByUserId1(long userId1) 1185 throws com.liferay.portal.kernel.exception.SystemException; 1186 1187 /** 1188 * Removes all the social relations where userId2 = ? from the database. 1189 * 1190 * @param userId2 the user id2 1191 * @throws SystemException if a system exception occurred 1192 */ 1193 public void removeByUserId2(long userId2) 1194 throws com.liferay.portal.kernel.exception.SystemException; 1195 1196 /** 1197 * Removes all the social relations where type = ? from the database. 1198 * 1199 * @param type the type 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public void removeByType(int type) 1203 throws com.liferay.portal.kernel.exception.SystemException; 1204 1205 /** 1206 * Removes all the social relations where companyId = ? and type = ? from the database. 1207 * 1208 * @param companyId the company ID 1209 * @param type the type 1210 * @throws SystemException if a system exception occurred 1211 */ 1212 public void removeByC_T(long companyId, int type) 1213 throws com.liferay.portal.kernel.exception.SystemException; 1214 1215 /** 1216 * Removes all the social relations where userId1 = ? and userId2 = ? from the database. 1217 * 1218 * @param userId1 the user id1 1219 * @param userId2 the user id2 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public void removeByU1_U2(long userId1, long userId2) 1223 throws com.liferay.portal.kernel.exception.SystemException; 1224 1225 /** 1226 * Removes all the social relations where userId1 = ? and type = ? from the database. 1227 * 1228 * @param userId1 the user id1 1229 * @param type the type 1230 * @throws SystemException if a system exception occurred 1231 */ 1232 public void removeByU1_T(long userId1, int type) 1233 throws com.liferay.portal.kernel.exception.SystemException; 1234 1235 /** 1236 * Removes all the social relations where userId2 = ? and type = ? from the database. 1237 * 1238 * @param userId2 the user id2 1239 * @param type the type 1240 * @throws SystemException if a system exception occurred 1241 */ 1242 public void removeByU2_T(long userId2, int type) 1243 throws com.liferay.portal.kernel.exception.SystemException; 1244 1245 /** 1246 * Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. 1247 * 1248 * @param userId1 the user id1 1249 * @param userId2 the user id2 1250 * @param type the type 1251 * @throws SystemException if a system exception occurred 1252 */ 1253 public void removeByU1_U2_T(long userId1, long userId2, int type) 1254 throws com.liferay.portal.kernel.exception.SystemException, 1255 com.liferay.portlet.social.NoSuchRelationException; 1256 1257 /** 1258 * Removes all the social relations from the database. 1259 * 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public void removeAll() 1263 throws com.liferay.portal.kernel.exception.SystemException; 1264 1265 /** 1266 * Returns the number of social relations where uuid = ?. 1267 * 1268 * @param uuid the uuid 1269 * @return the number of matching social relations 1270 * @throws SystemException if a system exception occurred 1271 */ 1272 public int countByUuid(java.lang.String uuid) 1273 throws com.liferay.portal.kernel.exception.SystemException; 1274 1275 /** 1276 * Returns the number of social relations where companyId = ?. 1277 * 1278 * @param companyId the company ID 1279 * @return the number of matching social relations 1280 * @throws SystemException if a system exception occurred 1281 */ 1282 public int countByCompanyId(long companyId) 1283 throws com.liferay.portal.kernel.exception.SystemException; 1284 1285 /** 1286 * Returns the number of social relations where userId1 = ?. 1287 * 1288 * @param userId1 the user id1 1289 * @return the number of matching social relations 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public int countByUserId1(long userId1) 1293 throws com.liferay.portal.kernel.exception.SystemException; 1294 1295 /** 1296 * Returns the number of social relations where userId2 = ?. 1297 * 1298 * @param userId2 the user id2 1299 * @return the number of matching social relations 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public int countByUserId2(long userId2) 1303 throws com.liferay.portal.kernel.exception.SystemException; 1304 1305 /** 1306 * Returns the number of social relations where type = ?. 1307 * 1308 * @param type the type 1309 * @return the number of matching social relations 1310 * @throws SystemException if a system exception occurred 1311 */ 1312 public int countByType(int type) 1313 throws com.liferay.portal.kernel.exception.SystemException; 1314 1315 /** 1316 * Returns the number of social relations where companyId = ? and type = ?. 1317 * 1318 * @param companyId the company ID 1319 * @param type the type 1320 * @return the number of matching social relations 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public int countByC_T(long companyId, int type) 1324 throws com.liferay.portal.kernel.exception.SystemException; 1325 1326 /** 1327 * Returns the number of social relations where userId1 = ? and userId2 = ?. 1328 * 1329 * @param userId1 the user id1 1330 * @param userId2 the user id2 1331 * @return the number of matching social relations 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 public int countByU1_U2(long userId1, long userId2) 1335 throws com.liferay.portal.kernel.exception.SystemException; 1336 1337 /** 1338 * Returns the number of social relations where userId1 = ? and type = ?. 1339 * 1340 * @param userId1 the user id1 1341 * @param type the type 1342 * @return the number of matching social relations 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public int countByU1_T(long userId1, int type) 1346 throws com.liferay.portal.kernel.exception.SystemException; 1347 1348 /** 1349 * Returns the number of social relations where userId2 = ? and type = ?. 1350 * 1351 * @param userId2 the user id2 1352 * @param type the type 1353 * @return the number of matching social relations 1354 * @throws SystemException if a system exception occurred 1355 */ 1356 public int countByU2_T(long userId2, int type) 1357 throws com.liferay.portal.kernel.exception.SystemException; 1358 1359 /** 1360 * Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?. 1361 * 1362 * @param userId1 the user id1 1363 * @param userId2 the user id2 1364 * @param type the type 1365 * @return the number of matching social relations 1366 * @throws SystemException if a system exception occurred 1367 */ 1368 public int countByU1_U2_T(long userId1, long userId2, int type) 1369 throws com.liferay.portal.kernel.exception.SystemException; 1370 1371 /** 1372 * Returns the number of social relations. 1373 * 1374 * @return the number of social relations 1375 * @throws SystemException if a system exception occurred 1376 */ 1377 public int countAll() 1378 throws com.liferay.portal.kernel.exception.SystemException; 1379 }