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