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