001 /** 002 * Copyright (c) 2000-2012 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.portal.service.persistence; 016 017 import com.liferay.portal.model.PasswordTracker; 018 019 /** 020 * The persistence interface for the password tracker service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see PasswordTrackerPersistenceImpl 028 * @see PasswordTrackerUtil 029 * @generated 030 */ 031 public interface PasswordTrackerPersistence extends BasePersistence<PasswordTracker> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link PasswordTrackerUtil} to access the password tracker persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the password trackers where userId = ?. 040 * 041 * @param userId the user ID 042 * @return the matching password trackers 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId( 046 long userId) throws com.liferay.portal.kernel.exception.SystemException; 047 048 /** 049 * Returns a range of all the password trackers where userId = ?. 050 * 051 * <p> 052 * 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.portal.model.impl.PasswordTrackerModelImpl}. 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. 053 * </p> 054 * 055 * @param userId the user ID 056 * @param start the lower bound of the range of password trackers 057 * @param end the upper bound of the range of password trackers (not inclusive) 058 * @return the range of matching password trackers 059 * @throws SystemException if a system exception occurred 060 */ 061 public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId( 062 long userId, int start, int end) 063 throws com.liferay.portal.kernel.exception.SystemException; 064 065 /** 066 * Returns an ordered range of all the password trackers where userId = ?. 067 * 068 * <p> 069 * 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.portal.model.impl.PasswordTrackerModelImpl}. 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. 070 * </p> 071 * 072 * @param userId the user ID 073 * @param start the lower bound of the range of password trackers 074 * @param end the upper bound of the range of password trackers (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching password trackers 077 * @throws SystemException if a system exception occurred 078 */ 079 public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId( 080 long userId, int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * Returns the first password tracker in the ordered set where userId = ?. 086 * 087 * @param userId the user ID 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching password tracker 090 * @throws com.liferay.portal.NoSuchPasswordTrackerException if a matching password tracker could not be found 091 * @throws SystemException if a system exception occurred 092 */ 093 public com.liferay.portal.model.PasswordTracker findByUserId_First( 094 long userId, 095 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 096 throws com.liferay.portal.NoSuchPasswordTrackerException, 097 com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns the first password tracker in the ordered set where userId = ?. 101 * 102 * @param userId the user ID 103 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 104 * @return the first matching password tracker, or <code>null</code> if a matching password tracker could not be found 105 * @throws SystemException if a system exception occurred 106 */ 107 public com.liferay.portal.model.PasswordTracker fetchByUserId_First( 108 long userId, 109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Returns the last password tracker in the ordered set where userId = ?. 114 * 115 * @param userId the user ID 116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 117 * @return the last matching password tracker 118 * @throws com.liferay.portal.NoSuchPasswordTrackerException if a matching password tracker could not be found 119 * @throws SystemException if a system exception occurred 120 */ 121 public com.liferay.portal.model.PasswordTracker findByUserId_Last( 122 long userId, 123 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 124 throws com.liferay.portal.NoSuchPasswordTrackerException, 125 com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns the last password tracker in the ordered set where userId = ?. 129 * 130 * @param userId the user ID 131 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 132 * @return the last matching password tracker, or <code>null</code> if a matching password tracker could not be found 133 * @throws SystemException if a system exception occurred 134 */ 135 public com.liferay.portal.model.PasswordTracker fetchByUserId_Last( 136 long userId, 137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 138 throws com.liferay.portal.kernel.exception.SystemException; 139 140 /** 141 * Returns the password trackers before and after the current password tracker in the ordered set where userId = ?. 142 * 143 * @param passwordTrackerId the primary key of the current password tracker 144 * @param userId the user ID 145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 146 * @return the previous, current, and next password tracker 147 * @throws com.liferay.portal.NoSuchPasswordTrackerException if a password tracker with the primary key could not be found 148 * @throws SystemException if a system exception occurred 149 */ 150 public com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext( 151 long passwordTrackerId, long userId, 152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 153 throws com.liferay.portal.NoSuchPasswordTrackerException, 154 com.liferay.portal.kernel.exception.SystemException; 155 156 /** 157 * Removes all the password trackers where userId = ? from the database. 158 * 159 * @param userId the user ID 160 * @throws SystemException if a system exception occurred 161 */ 162 public void removeByUserId(long userId) 163 throws com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Returns the number of password trackers where userId = ?. 167 * 168 * @param userId the user ID 169 * @return the number of matching password trackers 170 * @throws SystemException if a system exception occurred 171 */ 172 public int countByUserId(long userId) 173 throws com.liferay.portal.kernel.exception.SystemException; 174 175 /** 176 * Caches the password tracker in the entity cache if it is enabled. 177 * 178 * @param passwordTracker the password tracker 179 */ 180 public void cacheResult( 181 com.liferay.portal.model.PasswordTracker passwordTracker); 182 183 /** 184 * Caches the password trackers in the entity cache if it is enabled. 185 * 186 * @param passwordTrackers the password trackers 187 */ 188 public void cacheResult( 189 java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers); 190 191 /** 192 * Creates a new password tracker with the primary key. Does not add the password tracker to the database. 193 * 194 * @param passwordTrackerId the primary key for the new password tracker 195 * @return the new password tracker 196 */ 197 public com.liferay.portal.model.PasswordTracker create( 198 long passwordTrackerId); 199 200 /** 201 * Removes the password tracker with the primary key from the database. Also notifies the appropriate model listeners. 202 * 203 * @param passwordTrackerId the primary key of the password tracker 204 * @return the password tracker that was removed 205 * @throws com.liferay.portal.NoSuchPasswordTrackerException if a password tracker with the primary key could not be found 206 * @throws SystemException if a system exception occurred 207 */ 208 public com.liferay.portal.model.PasswordTracker remove( 209 long passwordTrackerId) 210 throws com.liferay.portal.NoSuchPasswordTrackerException, 211 com.liferay.portal.kernel.exception.SystemException; 212 213 public com.liferay.portal.model.PasswordTracker updateImpl( 214 com.liferay.portal.model.PasswordTracker passwordTracker) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Returns the password tracker with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordTrackerException} if it could not be found. 219 * 220 * @param passwordTrackerId the primary key of the password tracker 221 * @return the password tracker 222 * @throws com.liferay.portal.NoSuchPasswordTrackerException if a password tracker with the primary key could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portal.model.PasswordTracker findByPrimaryKey( 226 long passwordTrackerId) 227 throws com.liferay.portal.NoSuchPasswordTrackerException, 228 com.liferay.portal.kernel.exception.SystemException; 229 230 /** 231 * Returns the password tracker with the primary key or returns <code>null</code> if it could not be found. 232 * 233 * @param passwordTrackerId the primary key of the password tracker 234 * @return the password tracker, or <code>null</code> if a password tracker with the primary key could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 public com.liferay.portal.model.PasswordTracker fetchByPrimaryKey( 238 long passwordTrackerId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns all the password trackers. 243 * 244 * @return the password trackers 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.PasswordTracker> findAll() 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns a range of all the password trackers. 252 * 253 * <p> 254 * 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.portal.model.impl.PasswordTrackerModelImpl}. 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. 255 * </p> 256 * 257 * @param start the lower bound of the range of password trackers 258 * @param end the upper bound of the range of password trackers (not inclusive) 259 * @return the range of password trackers 260 * @throws SystemException if a system exception occurred 261 */ 262 public java.util.List<com.liferay.portal.model.PasswordTracker> findAll( 263 int start, int end) 264 throws com.liferay.portal.kernel.exception.SystemException; 265 266 /** 267 * Returns an ordered range of all the password trackers. 268 * 269 * <p> 270 * 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.portal.model.impl.PasswordTrackerModelImpl}. 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. 271 * </p> 272 * 273 * @param start the lower bound of the range of password trackers 274 * @param end the upper bound of the range of password trackers (not inclusive) 275 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 276 * @return the ordered range of password trackers 277 * @throws SystemException if a system exception occurred 278 */ 279 public java.util.List<com.liferay.portal.model.PasswordTracker> findAll( 280 int start, int end, 281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Removes all the password trackers from the database. 286 * 287 * @throws SystemException if a system exception occurred 288 */ 289 public void removeAll() 290 throws com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Returns the number of password trackers. 294 * 295 * @return the number of password trackers 296 * @throws SystemException if a system exception occurred 297 */ 298 public int countAll() 299 throws com.liferay.portal.kernel.exception.SystemException; 300 }