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