Interface RememberMeTokenPersistence
- All Superinterfaces:
BasePersistence<RememberMeToken>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByLteExpirationDate(Date expirationDate) Returns the number of remember me tokens where expirationDate ≤ ?.intcountByUserId(long userId) Returns the number of remember me tokens where userId = ?.create(long rememberMeTokenId) Creates a new remember me token with the primary key.fetchByLteExpirationDate_First(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where expirationDate ≤ ?.fetchByPrimaryKey(long rememberMeTokenId) Returns the remember me token with the primary key or returnsnullif it could not be found.fetchByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where userId = ?.findByLteExpirationDate(Date expirationDate) Returns all the remember me tokens where expirationDate ≤ ?.findByLteExpirationDate(Date expirationDate, int start, int end) Returns a range of all the remember me tokens where expirationDate ≤ ?.findByLteExpirationDate(Date expirationDate, int start, int end, OrderByComparator<RememberMeToken> orderByComparator) Returns an ordered range of all the remember me tokens where expirationDate ≤ ?.findByLteExpirationDate(Date expirationDate, int start, int end, OrderByComparator<RememberMeToken> orderByComparator, boolean useFinderCache) Returns an ordered range of all the remember me tokens where expirationDate ≤ ?.findByLteExpirationDate_First(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where expirationDate ≤ ?.findByPrimaryKey(long rememberMeTokenId) Returns the remember me token with the primary key or throws aNoSuchRememberMeTokenExceptionif it could not be found.default List<RememberMeToken> findByUserId(long userId) Returns all the remember me tokens where userId = ?.default List<RememberMeToken> findByUserId(long userId, int start, int end) Returns a range of all the remember me tokens where userId = ?.default List<RememberMeToken> findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> orderByComparator) Returns an ordered range of all the remember me tokens where userId = ?.findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> orderByComparator, boolean useFinderCache) Returns an ordered range of all the remember me tokens where userId = ?.findByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where userId = ?.remove(long rememberMeTokenId) Removes the remember me token with the primary key from the database.voidremoveByLteExpirationDate(Date expirationDate) Removes all the remember me tokens where expirationDate ≤ ? from the database.voidremoveByUserId(long userId) Removes all the remember me tokens where userId = ? from the database.updateImpl(RememberMeToken rememberMeToken) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUserId
List<RememberMeToken> findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> orderByComparator, boolean useFinderCache) Returns an ordered range of all the remember me tokens where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching remember me tokens
-
findByUserId_First
RememberMeToken findByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException Returns the first remember me token in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching remember me token
- Throws:
NoSuchRememberMeTokenException- if a matching remember me token could not be found
-
fetchByUserId_First
RememberMeToken fetchByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching remember me token, or
nullif a matching remember me token could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the remember me tokens where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of remember me tokens where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching remember me tokens
-
findByLteExpirationDate
Returns all the remember me tokens where expirationDate ≤ ?.- Parameters:
expirationDate- the expiration date- Returns:
- the matching remember me tokens
-
findByLteExpirationDate
Returns a range of all the remember me tokens where expirationDate ≤ ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)- Returns:
- the range of matching remember me tokens
-
findByLteExpirationDate
List<RememberMeToken> findByLteExpirationDate(Date expirationDate, int start, int end, OrderByComparator<RememberMeToken> orderByComparator) Returns an ordered range of all the remember me tokens where expirationDate ≤ ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching remember me tokens
-
findByLteExpirationDate
List<RememberMeToken> findByLteExpirationDate(Date expirationDate, int start, int end, OrderByComparator<RememberMeToken> orderByComparator, boolean useFinderCache) Returns an ordered range of all the remember me tokens where expirationDate ≤ ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching remember me tokens
-
findByLteExpirationDate_First
RememberMeToken findByLteExpirationDate_First(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException Returns the first remember me token in the ordered set where expirationDate ≤ ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching remember me token
- Throws:
NoSuchRememberMeTokenException- if a matching remember me token could not be found
-
fetchByLteExpirationDate_First
RememberMeToken fetchByLteExpirationDate_First(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) Returns the first remember me token in the ordered set where expirationDate ≤ ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching remember me token, or
nullif a matching remember me token could not be found
-
removeByLteExpirationDate
Removes all the remember me tokens where expirationDate ≤ ? from the database.- Parameters:
expirationDate- the expiration date
-
countByLteExpirationDate
Returns the number of remember me tokens where expirationDate ≤ ?.- Parameters:
expirationDate- the expiration date- Returns:
- the number of matching remember me tokens
-
create
Creates a new remember me token with the primary key. Does not add the remember me token to the database.- Parameters:
rememberMeTokenId- the primary key for the new remember me token- Returns:
- the new remember me token
-
remove
Removes the remember me token with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
rememberMeTokenId- the primary key of the remember me token- Returns:
- the remember me token that was removed
- Throws:
NoSuchRememberMeTokenException- if a remember me token with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the remember me token with the primary key or throws aNoSuchRememberMeTokenExceptionif it could not be found.- Parameters:
rememberMeTokenId- the primary key of the remember me token- Returns:
- the remember me token
- Throws:
NoSuchRememberMeTokenException- if a remember me token with the primary key could not be found
-
fetchByPrimaryKey
Returns the remember me token with the primary key or returnsnullif it could not be found.- Parameters:
rememberMeTokenId- the primary key of the remember me token- Returns:
- the remember me token, or
nullif a remember me token with the primary key could not be found
-
findByUserId
Returns all the remember me tokens where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching remember me tokens
-
findByUserId
Returns a range of all the remember me tokens where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)- Returns:
- the range of matching remember me tokens
-
findByUserId
default List<RememberMeToken> findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> orderByComparator) Returns an ordered range of all the remember me tokens where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RememberMeTokenModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of remember me tokensend- the upper bound of the range of remember me tokens (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching remember me tokens
-