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