001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.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 to cache 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 to cache 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the social relations where uuid = ?. 204 * 205 * @param uuid the uuid to search with 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 * Finds 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 to search with 223 * @param start the lower bound of the range of social relations to return 224 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 242 * @param start the lower bound of the range of social relations to return 243 * @param end the upper bound of the range of social relations to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 263 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 284 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 306 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where companyId = ?. 322 * 323 * @param companyId the company ID to search with 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 * Finds 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 to search with 341 * @param start the lower bound of the range of social relations to return 342 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 360 * @param start the lower bound of the range of social relations to return 361 * @param end the upper bound of the range of social relations to return (not inclusive) 362 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 382 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 404 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 427 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where userId1 = ?. 444 * 445 * @param userId1 the user id1 to search with 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 * Finds 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 to search with 463 * @param start the lower bound of the range of social relations to return 464 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 482 * @param start the lower bound of the range of social relations to return 483 * @param end the upper bound of the range of social relations to return (not inclusive) 484 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 504 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 525 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 547 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where userId2 = ?. 564 * 565 * @param userId2 the user id2 to search with 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 * Finds 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 to search with 583 * @param start the lower bound of the range of social relations to return 584 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 602 * @param start the lower bound of the range of social relations to return 603 * @param end the upper bound of the range of social relations to return (not inclusive) 604 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 624 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 645 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 667 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where type = ?. 684 * 685 * @param type the type to search with 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 * Finds 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 to search with 702 * @param start the lower bound of the range of social relations to return 703 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 721 * @param start the lower bound of the range of social relations to return 722 * @param end the upper bound of the range of social relations to return (not inclusive) 723 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 742 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 763 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 785 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where companyId = ? and type = ?. 801 * 802 * @param companyId the company ID to search with 803 * @param type the type to search with 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 * Finds 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 to search with 821 * @param type the type to search with 822 * @param start the lower bound of the range of social relations to return 823 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 841 * @param type the type to search with 842 * @param start the lower bound of the range of social relations to return 843 * @param end the upper bound of the range of social relations to return (not inclusive) 844 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 864 * @param type the type to search with 865 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 887 * @param type the type to search with 888 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 911 * @param type the type to search with 912 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where userId1 = ? and userId2 = ?. 929 * 930 * @param userId1 the user id1 to search with 931 * @param userId2 the user id2 to search with 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 * Finds 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 to search with 949 * @param userId2 the user id2 to search with 950 * @param start the lower bound of the range of social relations to return 951 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 969 * @param userId2 the user id2 to search with 970 * @param start the lower bound of the range of social relations to return 971 * @param end the upper bound of the range of social relations to return (not inclusive) 972 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 992 * @param userId2 the user id2 to search with 993 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1015 * @param userId2 the user id2 to search with 1016 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1039 * @param userId2 the user id2 to search with 1040 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where userId1 = ? and type = ?. 1057 * 1058 * @param userId1 the user id1 to search with 1059 * @param type the type to search with 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 * Finds 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 to search with 1077 * @param type the type to search with 1078 * @param start the lower bound of the range of social relations to return 1079 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 1097 * @param type the type to search with 1098 * @param start the lower bound of the range of social relations to return 1099 * @param end the upper bound of the range of social relations to return (not inclusive) 1100 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 1120 * @param type the type to search with 1121 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1143 * @param type the type to search with 1144 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1166 * @param type the type to search with 1167 * @param orderByComparator the comparator to order the set by 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 * Finds all the social relations where userId2 = ? and type = ?. 1184 * 1185 * @param userId2 the user id2 to search with 1186 * @param type the type to search with 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 * Finds 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 to search with 1204 * @param type the type to search with 1205 * @param start the lower bound of the range of social relations to return 1206 * @param end the upper bound of the range of social relations to return (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 * Finds 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 to search with 1224 * @param type the type to search with 1225 * @param start the lower bound of the range of social relations to return 1226 * @param end the upper bound of the range of social relations to return (not inclusive) 1227 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 1247 * @param type the type to search with 1248 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1270 * @param type the type to search with 1271 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1293 * @param type the type to search with 1294 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 1313 * @param userId2 the user id2 to search with 1314 * @param type the type to search with 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 * Finds 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 to search with 1330 * @param userId2 the user id2 to search with 1331 * @param type the type to search with 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 * Finds 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 to search with 1345 * @param userId2 the user id2 to search with 1346 * @param type the type to search with 1347 * @return the matching social relation, or <code>null</code> if a matching social relation could not be found 1348 * @throws SystemException if a system exception occurred 1349 */ 1350 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T( 1351 long userId1, long userId2, int type, boolean retrieveFromCache) 1352 throws com.liferay.portal.kernel.exception.SystemException { 1353 return getPersistence() 1354 .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache); 1355 } 1356 1357 /** 1358 * Finds all the social relations. 1359 * 1360 * @return the social relations 1361 * @throws SystemException if a system exception occurred 1362 */ 1363 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll() 1364 throws com.liferay.portal.kernel.exception.SystemException { 1365 return getPersistence().findAll(); 1366 } 1367 1368 /** 1369 * Finds a range of all the social relations. 1370 * 1371 * <p> 1372 * 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. 1373 * </p> 1374 * 1375 * @param start the lower bound of the range of social relations to return 1376 * @param end the upper bound of the range of social relations to return (not inclusive) 1377 * @return the range of social relations 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1381 int start, int end) 1382 throws com.liferay.portal.kernel.exception.SystemException { 1383 return getPersistence().findAll(start, end); 1384 } 1385 1386 /** 1387 * Finds an ordered range of all the social relations. 1388 * 1389 * <p> 1390 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 1391 * </p> 1392 * 1393 * @param start the lower bound of the range of social relations to return 1394 * @param end the upper bound of the range of social relations to return (not inclusive) 1395 * @param orderByComparator the comparator to order the results by 1396 * @return the ordered range of social relations 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll( 1400 int start, int end, 1401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1402 throws com.liferay.portal.kernel.exception.SystemException { 1403 return getPersistence().findAll(start, end, orderByComparator); 1404 } 1405 1406 /** 1407 * Removes all the social relations where uuid = ? from the database. 1408 * 1409 * @param uuid the uuid to search with 1410 * @throws SystemException if a system exception occurred 1411 */ 1412 public static void removeByUuid(java.lang.String uuid) 1413 throws com.liferay.portal.kernel.exception.SystemException { 1414 getPersistence().removeByUuid(uuid); 1415 } 1416 1417 /** 1418 * Removes all the social relations where companyId = ? from the database. 1419 * 1420 * @param companyId the company ID to search with 1421 * @throws SystemException if a system exception occurred 1422 */ 1423 public static void removeByCompanyId(long companyId) 1424 throws com.liferay.portal.kernel.exception.SystemException { 1425 getPersistence().removeByCompanyId(companyId); 1426 } 1427 1428 /** 1429 * Removes all the social relations where userId1 = ? from the database. 1430 * 1431 * @param userId1 the user id1 to search with 1432 * @throws SystemException if a system exception occurred 1433 */ 1434 public static void removeByUserId1(long userId1) 1435 throws com.liferay.portal.kernel.exception.SystemException { 1436 getPersistence().removeByUserId1(userId1); 1437 } 1438 1439 /** 1440 * Removes all the social relations where userId2 = ? from the database. 1441 * 1442 * @param userId2 the user id2 to search with 1443 * @throws SystemException if a system exception occurred 1444 */ 1445 public static void removeByUserId2(long userId2) 1446 throws com.liferay.portal.kernel.exception.SystemException { 1447 getPersistence().removeByUserId2(userId2); 1448 } 1449 1450 /** 1451 * Removes all the social relations where type = ? from the database. 1452 * 1453 * @param type the type to search with 1454 * @throws SystemException if a system exception occurred 1455 */ 1456 public static void removeByType(int type) 1457 throws com.liferay.portal.kernel.exception.SystemException { 1458 getPersistence().removeByType(type); 1459 } 1460 1461 /** 1462 * Removes all the social relations where companyId = ? and type = ? from the database. 1463 * 1464 * @param companyId the company ID to search with 1465 * @param type the type to search with 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 public static void removeByC_T(long companyId, int type) 1469 throws com.liferay.portal.kernel.exception.SystemException { 1470 getPersistence().removeByC_T(companyId, type); 1471 } 1472 1473 /** 1474 * Removes all the social relations where userId1 = ? and userId2 = ? from the database. 1475 * 1476 * @param userId1 the user id1 to search with 1477 * @param userId2 the user id2 to search with 1478 * @throws SystemException if a system exception occurred 1479 */ 1480 public static void removeByU1_U2(long userId1, long userId2) 1481 throws com.liferay.portal.kernel.exception.SystemException { 1482 getPersistence().removeByU1_U2(userId1, userId2); 1483 } 1484 1485 /** 1486 * Removes all the social relations where userId1 = ? and type = ? from the database. 1487 * 1488 * @param userId1 the user id1 to search with 1489 * @param type the type to search with 1490 * @throws SystemException if a system exception occurred 1491 */ 1492 public static void removeByU1_T(long userId1, int type) 1493 throws com.liferay.portal.kernel.exception.SystemException { 1494 getPersistence().removeByU1_T(userId1, type); 1495 } 1496 1497 /** 1498 * Removes all the social relations where userId2 = ? and type = ? from the database. 1499 * 1500 * @param userId2 the user id2 to search with 1501 * @param type the type to search with 1502 * @throws SystemException if a system exception occurred 1503 */ 1504 public static void removeByU2_T(long userId2, int type) 1505 throws com.liferay.portal.kernel.exception.SystemException { 1506 getPersistence().removeByU2_T(userId2, type); 1507 } 1508 1509 /** 1510 * Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. 1511 * 1512 * @param userId1 the user id1 to search with 1513 * @param userId2 the user id2 to search with 1514 * @param type the type to search with 1515 * @throws SystemException if a system exception occurred 1516 */ 1517 public static void removeByU1_U2_T(long userId1, long userId2, int type) 1518 throws com.liferay.portal.kernel.exception.SystemException, 1519 com.liferay.portlet.social.NoSuchRelationException { 1520 getPersistence().removeByU1_U2_T(userId1, userId2, type); 1521 } 1522 1523 /** 1524 * Removes all the social relations from the database. 1525 * 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public static void removeAll() 1529 throws com.liferay.portal.kernel.exception.SystemException { 1530 getPersistence().removeAll(); 1531 } 1532 1533 /** 1534 * Counts all the social relations where uuid = ?. 1535 * 1536 * @param uuid the uuid to search with 1537 * @return the number of matching social relations 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public static int countByUuid(java.lang.String uuid) 1541 throws com.liferay.portal.kernel.exception.SystemException { 1542 return getPersistence().countByUuid(uuid); 1543 } 1544 1545 /** 1546 * Counts all the social relations where companyId = ?. 1547 * 1548 * @param companyId the company ID to search with 1549 * @return the number of matching social relations 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public static int countByCompanyId(long companyId) 1553 throws com.liferay.portal.kernel.exception.SystemException { 1554 return getPersistence().countByCompanyId(companyId); 1555 } 1556 1557 /** 1558 * Counts all the social relations where userId1 = ?. 1559 * 1560 * @param userId1 the user id1 to search with 1561 * @return the number of matching social relations 1562 * @throws SystemException if a system exception occurred 1563 */ 1564 public static int countByUserId1(long userId1) 1565 throws com.liferay.portal.kernel.exception.SystemException { 1566 return getPersistence().countByUserId1(userId1); 1567 } 1568 1569 /** 1570 * Counts all the social relations where userId2 = ?. 1571 * 1572 * @param userId2 the user id2 to search with 1573 * @return the number of matching social relations 1574 * @throws SystemException if a system exception occurred 1575 */ 1576 public static int countByUserId2(long userId2) 1577 throws com.liferay.portal.kernel.exception.SystemException { 1578 return getPersistence().countByUserId2(userId2); 1579 } 1580 1581 /** 1582 * Counts all the social relations where type = ?. 1583 * 1584 * @param type the type to search with 1585 * @return the number of matching social relations 1586 * @throws SystemException if a system exception occurred 1587 */ 1588 public static int countByType(int type) 1589 throws com.liferay.portal.kernel.exception.SystemException { 1590 return getPersistence().countByType(type); 1591 } 1592 1593 /** 1594 * Counts all the social relations where companyId = ? and type = ?. 1595 * 1596 * @param companyId the company ID to search with 1597 * @param type the type to search with 1598 * @return the number of matching social relations 1599 * @throws SystemException if a system exception occurred 1600 */ 1601 public static int countByC_T(long companyId, int type) 1602 throws com.liferay.portal.kernel.exception.SystemException { 1603 return getPersistence().countByC_T(companyId, type); 1604 } 1605 1606 /** 1607 * Counts all the social relations where userId1 = ? and userId2 = ?. 1608 * 1609 * @param userId1 the user id1 to search with 1610 * @param userId2 the user id2 to search with 1611 * @return the number of matching social relations 1612 * @throws SystemException if a system exception occurred 1613 */ 1614 public static int countByU1_U2(long userId1, long userId2) 1615 throws com.liferay.portal.kernel.exception.SystemException { 1616 return getPersistence().countByU1_U2(userId1, userId2); 1617 } 1618 1619 /** 1620 * Counts all the social relations where userId1 = ? and type = ?. 1621 * 1622 * @param userId1 the user id1 to search with 1623 * @param type the type to search with 1624 * @return the number of matching social relations 1625 * @throws SystemException if a system exception occurred 1626 */ 1627 public static int countByU1_T(long userId1, int type) 1628 throws com.liferay.portal.kernel.exception.SystemException { 1629 return getPersistence().countByU1_T(userId1, type); 1630 } 1631 1632 /** 1633 * Counts all the social relations where userId2 = ? and type = ?. 1634 * 1635 * @param userId2 the user id2 to search with 1636 * @param type the type to search with 1637 * @return the number of matching social relations 1638 * @throws SystemException if a system exception occurred 1639 */ 1640 public static int countByU2_T(long userId2, int type) 1641 throws com.liferay.portal.kernel.exception.SystemException { 1642 return getPersistence().countByU2_T(userId2, type); 1643 } 1644 1645 /** 1646 * Counts all the social relations where userId1 = ? and userId2 = ? and type = ?. 1647 * 1648 * @param userId1 the user id1 to search with 1649 * @param userId2 the user id2 to search with 1650 * @param type the type to search with 1651 * @return the number of matching social relations 1652 * @throws SystemException if a system exception occurred 1653 */ 1654 public static int countByU1_U2_T(long userId1, long userId2, int type) 1655 throws com.liferay.portal.kernel.exception.SystemException { 1656 return getPersistence().countByU1_U2_T(userId1, userId2, type); 1657 } 1658 1659 /** 1660 * Counts all the social relations. 1661 * 1662 * @return the number of social relations 1663 * @throws SystemException if a system exception occurred 1664 */ 1665 public static int countAll() 1666 throws com.liferay.portal.kernel.exception.SystemException { 1667 return getPersistence().countAll(); 1668 } 1669 1670 public static SocialRelationPersistence getPersistence() { 1671 if (_persistence == null) { 1672 _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName()); 1673 1674 ReferenceRegistry.registerReference(SocialRelationUtil.class, 1675 "_persistence"); 1676 } 1677 1678 return _persistence; 1679 } 1680 1681 public void setPersistence(SocialRelationPersistence persistence) { 1682 _persistence = persistence; 1683 1684 ReferenceRegistry.registerReference(SocialRelationUtil.class, 1685 "_persistence"); 1686 } 1687 1688 private static SocialRelationPersistence _persistence; 1689 }