Interface MFATimeBasedOTPEntryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<MFATimeBasedOTPEntry>

@ProviderType public interface MFATimeBasedOTPEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<MFATimeBasedOTPEntry>
The persistence interface for the mfa time based otp entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
    Caches the mfa time based otp entry in the entity cache if it is enabled.
    void
    cacheResult(List<MFATimeBasedOTPEntry> mfaTimeBasedOTPEntries)
    Caches the mfa time based otp entries in the entity cache if it is enabled.
    int
    Returns the number of mfa time based otp entries.
    int
    countByUserId(long userId)
    Returns the number of mfa time based otp entries where userId = ?.
    create(long mfaTimeBasedOTPEntryId)
    Creates a new mfa time based otp entry with the primary key.
    fetchByPrimaryKey(long mfaTimeBasedOTPEntryId)
    Returns the mfa time based otp entry with the primary key or returns null if it could not be found.
    fetchByUserId(long userId)
    Returns the mfa time based otp entry where userId = ? or returns null if it could not be found.
    fetchByUserId(long userId, boolean useFinderCache)
    Returns the mfa time based otp entry where userId = ? or returns null if it could not be found, optionally using the finder cache.
    Returns all the mfa time based otp entries.
    findAll(int start, int end)
    Returns a range of all the mfa time based otp entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator)
    Returns an ordered range of all the mfa time based otp entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the mfa time based otp entries.
    findByPrimaryKey(long mfaTimeBasedOTPEntryId)
    Returns the mfa time based otp entry with the primary key or throws a NoSuchEntryException if it could not be found.
    findByUserId(long userId)
    Returns the mfa time based otp entry where userId = ? or throws a NoSuchEntryException if it could not be found.
    remove(long mfaTimeBasedOTPEntryId)
    Removes the mfa time based otp entry with the primary key from the database.
    void
    Removes all the mfa time based otp entries from the database.
    removeByUserId(long userId)
    Removes the mfa time based otp entry where userId = ? from the database.
    updateImpl(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUserId

      MFATimeBasedOTPEntry findByUserId(long userId) throws NoSuchEntryException
      Returns the mfa time based otp entry where userId = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      userId - the user ID
      Returns:
      the matching mfa time based otp entry
      Throws:
      NoSuchEntryException - if a matching mfa time based otp entry could not be found
    • fetchByUserId

      MFATimeBasedOTPEntry fetchByUserId(long userId)
      Returns the mfa time based otp entry where userId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      Returns:
      the matching mfa time based otp entry, or null if a matching mfa time based otp entry could not be found
    • fetchByUserId

      MFATimeBasedOTPEntry fetchByUserId(long userId, boolean useFinderCache)
      Returns the mfa time based otp entry where userId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching mfa time based otp entry, or null if a matching mfa time based otp entry could not be found
    • removeByUserId

      MFATimeBasedOTPEntry removeByUserId(long userId) throws NoSuchEntryException
      Removes the mfa time based otp entry where userId = ? from the database.
      Parameters:
      userId - the user ID
      Returns:
      the mfa time based otp entry that was removed
      Throws:
      NoSuchEntryException
    • countByUserId

      int countByUserId(long userId)
      Returns the number of mfa time based otp entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching mfa time based otp entries
    • cacheResult

      void cacheResult(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
      Caches the mfa time based otp entry in the entity cache if it is enabled.
      Parameters:
      mfaTimeBasedOTPEntry - the mfa time based otp entry
    • cacheResult

      void cacheResult(List<MFATimeBasedOTPEntry> mfaTimeBasedOTPEntries)
      Caches the mfa time based otp entries in the entity cache if it is enabled.
      Parameters:
      mfaTimeBasedOTPEntries - the mfa time based otp entries
    • create

      MFATimeBasedOTPEntry create(long mfaTimeBasedOTPEntryId)
      Creates a new mfa time based otp entry with the primary key. Does not add the mfa time based otp entry to the database.
      Parameters:
      mfaTimeBasedOTPEntryId - the primary key for the new mfa time based otp entry
      Returns:
      the new mfa time based otp entry
    • remove

      MFATimeBasedOTPEntry remove(long mfaTimeBasedOTPEntryId) throws NoSuchEntryException
      Removes the mfa time based otp entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entry
      Returns:
      the mfa time based otp entry that was removed
      Throws:
      NoSuchEntryException - if a mfa time based otp entry with the primary key could not be found
    • updateImpl

      MFATimeBasedOTPEntry updateImpl(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
    • findByPrimaryKey

      MFATimeBasedOTPEntry findByPrimaryKey(long mfaTimeBasedOTPEntryId) throws NoSuchEntryException
      Returns the mfa time based otp entry with the primary key or throws a NoSuchEntryException if it could not be found.
      Parameters:
      mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entry
      Returns:
      the mfa time based otp entry
      Throws:
      NoSuchEntryException - if a mfa time based otp entry with the primary key could not be found
    • fetchByPrimaryKey

      MFATimeBasedOTPEntry fetchByPrimaryKey(long mfaTimeBasedOTPEntryId)
      Returns the mfa time based otp entry with the primary key or returns null if it could not be found.
      Parameters:
      mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entry
      Returns:
      the mfa time based otp entry, or null if a mfa time based otp entry with the primary key could not be found
    • findAll

      Returns all the mfa time based otp entries.
      Returns:
      the mfa time based otp entries
    • findAll

      List<MFATimeBasedOTPEntry> findAll(int start, int end)
      Returns a range of all the mfa time based otp entries.

      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 MFATimeBasedOTPEntryModelImpl.

      Parameters:
      start - the lower bound of the range of mfa time based otp entries
      end - the upper bound of the range of mfa time based otp entries (not inclusive)
      Returns:
      the range of mfa time based otp entries
    • findAll

      List<MFATimeBasedOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator)
      Returns an ordered range of all the mfa time based otp entries.

      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 MFATimeBasedOTPEntryModelImpl.

      Parameters:
      start - the lower bound of the range of mfa time based otp entries
      end - the upper bound of the range of mfa time based otp entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of mfa time based otp entries
    • findAll

      List<MFATimeBasedOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the mfa time based otp entries.

      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 MFATimeBasedOTPEntryModelImpl.

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

      void removeAll()
      Removes all the mfa time based otp entries from the database.
    • countAll

      int countAll()
      Returns the number of mfa time based otp entries.
      Returns:
      the number of mfa time based otp entries