Interface RememberMeTokenPersistence

All Superinterfaces:
BasePersistence<RememberMeToken>

@ProviderType public interface RememberMeTokenPersistence extends BasePersistence<RememberMeToken>
The persistence interface for the remember me token service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByUserId

      List<RememberMeToken> findByUserId(long userId)
      Returns all the remember me tokens where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching remember me tokens
    • findByUserId

      List<RememberMeToken> findByUserId(long userId, int start, int end)
      Returns a range of all the remember me tokens where userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      Returns:
      the range of matching remember me tokens
    • findByUserId

      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching remember me tokens
    • 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching remember me token, or null if a matching remember me token could not be found
    • findByUserId_Last

      RememberMeToken findByUserId_Last(long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
      Returns the last remember me token in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching remember me token
      Throws:
      NoSuchRememberMeTokenException - if a matching remember me token could not be found
    • fetchByUserId_Last

      RememberMeToken fetchByUserId_Last(long userId, OrderByComparator<RememberMeToken> orderByComparator)
      Returns the last remember me token in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching remember me token, or null if a matching remember me token could not be found
    • findByUserId_PrevAndNext

      RememberMeToken[] findByUserId_PrevAndNext(long rememberMeTokenId, long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
      Returns the remember me tokens before and after the current remember me token in the ordered set where userId = ?.
      Parameters:
      rememberMeTokenId - the primary key of the current remember me token
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next remember me token
      Throws:
      NoSuchRememberMeTokenException - if a remember me token with the primary key 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

      List<RememberMeToken> findByLteExpirationDate(Date expirationDate)
      Returns all the remember me tokens where expirationDate ≤ ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the matching remember me tokens
    • findByLteExpirationDate

      List<RememberMeToken> findByLteExpirationDate(Date expirationDate, int start, int end)
      Returns a range of all the remember me tokens where expirationDate ≤ ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of remember me tokens
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 date
      orderByComparator - the comparator to order the set by (optionally null)
      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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching remember me token, or null if a matching remember me token could not be found
    • findByLteExpirationDate_Last

      RememberMeToken findByLteExpirationDate_Last(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
      Returns the last remember me token in the ordered set where expirationDate ≤ ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching remember me token
      Throws:
      NoSuchRememberMeTokenException - if a matching remember me token could not be found
    • fetchByLteExpirationDate_Last

      RememberMeToken fetchByLteExpirationDate_Last(Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator)
      Returns the last remember me token in the ordered set where expirationDate ≤ ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching remember me token, or null if a matching remember me token could not be found
    • findByLteExpirationDate_PrevAndNext

      RememberMeToken[] findByLteExpirationDate_PrevAndNext(long rememberMeTokenId, Date expirationDate, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
      Returns the remember me tokens before and after the current remember me token in the ordered set where expirationDate ≤ ?.
      Parameters:
      rememberMeTokenId - the primary key of the current remember me token
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next remember me token
      Throws:
      NoSuchRememberMeTokenException - if a remember me token with the primary key could not be found
    • removeByLteExpirationDate

      void removeByLteExpirationDate(Date expirationDate)
      Removes all the remember me tokens where expirationDate ≤ ? from the database.
      Parameters:
      expirationDate - the expiration date
    • countByLteExpirationDate

      int countByLteExpirationDate(Date expirationDate)
      Returns the number of remember me tokens where expirationDate ≤ ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the number of matching remember me tokens
    • cacheResult

      void cacheResult(RememberMeToken rememberMeToken)
      Caches the remember me token in the entity cache if it is enabled.
      Parameters:
      rememberMeToken - the remember me token
    • cacheResult

      void cacheResult(List<RememberMeToken> rememberMeTokens)
      Caches the remember me tokens in the entity cache if it is enabled.
      Parameters:
      rememberMeTokens - the remember me tokens
    • create

      RememberMeToken create(long rememberMeTokenId)
      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

      RememberMeToken remove(long rememberMeTokenId) throws NoSuchRememberMeTokenException
      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

      RememberMeToken updateImpl(RememberMeToken rememberMeToken)
    • findByPrimaryKey

      RememberMeToken findByPrimaryKey(long rememberMeTokenId) throws NoSuchRememberMeTokenException
      Returns the remember me token with the primary key or throws a NoSuchRememberMeTokenException if 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

      RememberMeToken fetchByPrimaryKey(long rememberMeTokenId)
      Returns the remember me token with the primary key or returns null if it could not be found.
      Parameters:
      rememberMeTokenId - the primary key of the remember me token
      Returns:
      the remember me token, or null if a remember me token with the primary key could not be found
    • findAll

      List<RememberMeToken> findAll()
      Returns all the remember me tokens.
      Returns:
      the remember me tokens
    • findAll

      List<RememberMeToken> findAll(int start, int end)
      Returns a range of all the remember me tokens.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      Returns:
      the range of remember me tokens
    • findAll

      List<RememberMeToken> findAll(int start, int end, OrderByComparator<RememberMeToken> orderByComparator)
      Returns an ordered range of all the remember me tokens.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of remember me tokens
    • findAll

      List<RememberMeToken> findAll(int start, int end, OrderByComparator<RememberMeToken> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the remember me tokens.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from RememberMeTokenModelImpl.

      Parameters:
      start - the lower bound of the range of remember me tokens
      end - the upper bound of the range of remember me tokens (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of remember me tokens
    • removeAll

      void removeAll()
      Removes all the remember me tokens from the database.
    • countAll

      int countAll()
      Returns the number of remember me tokens.
      Returns:
      the number of remember me tokens