001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.social.model.SocialEquitySetting; 021 022 /** 023 * The persistence interface for the social equity setting service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see SocialEquitySettingPersistenceImpl 031 * @see SocialEquitySettingUtil 032 * @generated 033 */ 034 public interface SocialEquitySettingPersistence extends BasePersistence<SocialEquitySetting> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link SocialEquitySettingUtil} to access the social equity setting persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the social equity setting in the entity cache if it is enabled. 043 * 044 * @param socialEquitySetting the social equity setting to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting); 048 049 /** 050 * Caches the social equity settings in the entity cache if it is enabled. 051 * 052 * @param socialEquitySettings the social equity settings to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> socialEquitySettings); 056 057 /** 058 * Creates a new social equity setting with the primary key. Does not add the social equity setting to the database. 059 * 060 * @param equitySettingId the primary key for the new social equity setting 061 * @return the new social equity setting 062 */ 063 public com.liferay.portlet.social.model.SocialEquitySetting create( 064 long equitySettingId); 065 066 /** 067 * Removes the social equity setting with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param equitySettingId the primary key of the social equity setting to remove 070 * @return the social equity setting that was removed 071 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a social equity setting with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.social.model.SocialEquitySetting remove( 075 long equitySettingId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.social.NoSuchEquitySettingException; 078 079 public com.liferay.portlet.social.model.SocialEquitySetting updateImpl( 080 com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting, 081 boolean merge) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * Finds the social equity setting with the primary key or throws a {@link com.liferay.portlet.social.NoSuchEquitySettingException} if it could not be found. 086 * 087 * @param equitySettingId the primary key of the social equity setting to find 088 * @return the social equity setting 089 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a social equity setting with the primary key could not be found 090 * @throws SystemException if a system exception occurred 091 */ 092 public com.liferay.portlet.social.model.SocialEquitySetting findByPrimaryKey( 093 long equitySettingId) 094 throws com.liferay.portal.kernel.exception.SystemException, 095 com.liferay.portlet.social.NoSuchEquitySettingException; 096 097 /** 098 * Finds the social equity setting with the primary key or returns <code>null</code> if it could not be found. 099 * 100 * @param equitySettingId the primary key of the social equity setting to find 101 * @return the social equity setting, or <code>null</code> if a social equity setting with the primary key could not be found 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.social.model.SocialEquitySetting fetchByPrimaryKey( 105 long equitySettingId) 106 throws com.liferay.portal.kernel.exception.SystemException; 107 108 /** 109 * Finds all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. 110 * 111 * @param groupId the group ID to search with 112 * @param classNameId the class name ID to search with 113 * @param actionId the action ID to search with 114 * @return the matching social equity settings 115 * @throws SystemException if a system exception occurred 116 */ 117 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A( 118 long groupId, long classNameId, java.lang.String actionId) 119 throws com.liferay.portal.kernel.exception.SystemException; 120 121 /** 122 * Finds a range of all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. 123 * 124 * <p> 125 * 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. 126 * </p> 127 * 128 * @param groupId the group ID to search with 129 * @param classNameId the class name ID to search with 130 * @param actionId the action ID to search with 131 * @param start the lower bound of the range of social equity settings to return 132 * @param end the upper bound of the range of social equity settings to return (not inclusive) 133 * @return the range of matching social equity settings 134 * @throws SystemException if a system exception occurred 135 */ 136 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A( 137 long groupId, long classNameId, java.lang.String actionId, int start, 138 int end) throws com.liferay.portal.kernel.exception.SystemException; 139 140 /** 141 * Finds an ordered range of all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. 142 * 143 * <p> 144 * 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. 145 * </p> 146 * 147 * @param groupId the group ID to search with 148 * @param classNameId the class name ID to search with 149 * @param actionId the action ID to search with 150 * @param start the lower bound of the range of social equity settings to return 151 * @param end the upper bound of the range of social equity settings to return (not inclusive) 152 * @param orderByComparator the comparator to order the results by 153 * @return the ordered range of matching social equity settings 154 * @throws SystemException if a system exception occurred 155 */ 156 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A( 157 long groupId, long classNameId, java.lang.String actionId, int start, 158 int end, 159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 160 throws com.liferay.portal.kernel.exception.SystemException; 161 162 /** 163 * Finds the first social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. 164 * 165 * <p> 166 * 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. 167 * </p> 168 * 169 * @param groupId the group ID to search with 170 * @param classNameId the class name ID to search with 171 * @param actionId the action ID to search with 172 * @param orderByComparator the comparator to order the set by 173 * @return the first matching social equity setting 174 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a matching social equity setting could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_First( 178 long groupId, long classNameId, java.lang.String actionId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.social.NoSuchEquitySettingException; 182 183 /** 184 * Finds the last social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. 185 * 186 * <p> 187 * 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. 188 * </p> 189 * 190 * @param groupId the group ID to search with 191 * @param classNameId the class name ID to search with 192 * @param actionId the action ID to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the last matching social equity setting 195 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a matching social equity setting could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_Last( 199 long groupId, long classNameId, java.lang.String actionId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.kernel.exception.SystemException, 202 com.liferay.portlet.social.NoSuchEquitySettingException; 203 204 /** 205 * Finds the social equity settings before and after the current social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. 206 * 207 * <p> 208 * 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. 209 * </p> 210 * 211 * @param equitySettingId the primary key of the current social equity setting 212 * @param groupId the group ID to search with 213 * @param classNameId the class name ID to search with 214 * @param actionId the action ID to search with 215 * @param orderByComparator the comparator to order the set by 216 * @return the previous, current, and next social equity setting 217 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a social equity setting with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.social.model.SocialEquitySetting[] findByG_C_A_PrevAndNext( 221 long equitySettingId, long groupId, long classNameId, 222 java.lang.String actionId, 223 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 224 throws com.liferay.portal.kernel.exception.SystemException, 225 com.liferay.portlet.social.NoSuchEquitySettingException; 226 227 /** 228 * Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or throws a {@link com.liferay.portlet.social.NoSuchEquitySettingException} if it could not be found. 229 * 230 * @param groupId the group ID to search with 231 * @param classNameId the class name ID to search with 232 * @param actionId the action ID to search with 233 * @param type the type to search with 234 * @return the matching social equity setting 235 * @throws com.liferay.portlet.social.NoSuchEquitySettingException if a matching social equity setting could not be found 236 * @throws SystemException if a system exception occurred 237 */ 238 public com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_T( 239 long groupId, long classNameId, java.lang.String actionId, int type) 240 throws com.liferay.portal.kernel.exception.SystemException, 241 com.liferay.portlet.social.NoSuchEquitySettingException; 242 243 /** 244 * Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 245 * 246 * @param groupId the group ID to search with 247 * @param classNameId the class name ID to search with 248 * @param actionId the action ID to search with 249 * @param type the type to search with 250 * @return the matching social equity setting, or <code>null</code> if a matching social equity setting could not be found 251 * @throws SystemException if a system exception occurred 252 */ 253 public com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T( 254 long groupId, long classNameId, java.lang.String actionId, int type) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 259 * 260 * @param groupId the group ID to search with 261 * @param classNameId the class name ID to search with 262 * @param actionId the action ID to search with 263 * @param type the type to search with 264 * @return the matching social equity setting, or <code>null</code> if a matching social equity setting could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T( 268 long groupId, long classNameId, java.lang.String actionId, int type, 269 boolean retrieveFromCache) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Finds all the social equity settings. 274 * 275 * @return the social equity settings 276 * @throws SystemException if a system exception occurred 277 */ 278 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll() 279 throws com.liferay.portal.kernel.exception.SystemException; 280 281 /** 282 * Finds a range of all the social equity settings. 283 * 284 * <p> 285 * 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. 286 * </p> 287 * 288 * @param start the lower bound of the range of social equity settings to return 289 * @param end the upper bound of the range of social equity settings to return (not inclusive) 290 * @return the range of social equity settings 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll( 294 int start, int end) 295 throws com.liferay.portal.kernel.exception.SystemException; 296 297 /** 298 * Finds an ordered range of all the social equity settings. 299 * 300 * <p> 301 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 302 * </p> 303 * 304 * @param start the lower bound of the range of social equity settings to return 305 * @param end the upper bound of the range of social equity settings to return (not inclusive) 306 * @param orderByComparator the comparator to order the results by 307 * @return the ordered range of social equity settings 308 * @throws SystemException if a system exception occurred 309 */ 310 public java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll( 311 int start, int end, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Removes all the social equity settings where groupId = ? and classNameId = ? and actionId = ? from the database. 317 * 318 * @param groupId the group ID to search with 319 * @param classNameId the class name ID to search with 320 * @param actionId the action ID to search with 321 * @throws SystemException if a system exception occurred 322 */ 323 public void removeByG_C_A(long groupId, long classNameId, 324 java.lang.String actionId) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Removes the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? from the database. 329 * 330 * @param groupId the group ID to search with 331 * @param classNameId the class name ID to search with 332 * @param actionId the action ID to search with 333 * @param type the type to search with 334 * @throws SystemException if a system exception occurred 335 */ 336 public void removeByG_C_A_T(long groupId, long classNameId, 337 java.lang.String actionId, int type) 338 throws com.liferay.portal.kernel.exception.SystemException, 339 com.liferay.portlet.social.NoSuchEquitySettingException; 340 341 /** 342 * Removes all the social equity settings from the database. 343 * 344 * @throws SystemException if a system exception occurred 345 */ 346 public void removeAll() 347 throws com.liferay.portal.kernel.exception.SystemException; 348 349 /** 350 * Counts all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. 351 * 352 * @param groupId the group ID to search with 353 * @param classNameId the class name ID to search with 354 * @param actionId the action ID to search with 355 * @return the number of matching social equity settings 356 * @throws SystemException if a system exception occurred 357 */ 358 public int countByG_C_A(long groupId, long classNameId, 359 java.lang.String actionId) 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Counts all the social equity settings where groupId = ? and classNameId = ? and actionId = ? and type = ?. 364 * 365 * @param groupId the group ID to search with 366 * @param classNameId the class name ID to search with 367 * @param actionId the action ID to search with 368 * @param type the type to search with 369 * @return the number of matching social equity settings 370 * @throws SystemException if a system exception occurred 371 */ 372 public int countByG_C_A_T(long groupId, long classNameId, 373 java.lang.String actionId, int type) 374 throws com.liferay.portal.kernel.exception.SystemException; 375 376 /** 377 * Counts all the social equity settings. 378 * 379 * @return the number of social equity settings 380 * @throws SystemException if a system exception occurred 381 */ 382 public int countAll() 383 throws com.liferay.portal.kernel.exception.SystemException; 384 385 public SocialEquitySetting remove(SocialEquitySetting socialEquitySetting) 386 throws SystemException; 387 }