Interface MFAEmailOTPEntryPersistence

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

@ProviderType public interface MFAEmailOTPEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<MFAEmailOTPEntry>
The persistence interface for the mfa email otp entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByUserId(long userId)
    Returns the number of mfa email otp entries where userId = ?.
    create(long mfaEmailOTPEntryId)
    Creates a new mfa email otp entry with the primary key.
    fetchByPrimaryKey(long mfaEmailOTPEntryId)
    Returns the mfa email otp entry with the primary key or returns null if it could not be found.
    fetchByUserId(long userId)
    Returns the mfa email otp entry where userId = ? or returns null if it could not be found.
    fetchByUserId(long userId, boolean useFinderCache)
    Returns the mfa email otp entry where userId = ? or returns null if it could not be found, optionally using the finder cache.
    findByPrimaryKey(long mfaEmailOTPEntryId)
    Returns the mfa email otp entry with the primary key or throws a NoSuchEntryException if it could not be found.
    findByUserId(long userId)
    Returns the mfa email otp entry where userId = ? or throws a NoSuchEntryException if it could not be found.
    remove(long mfaEmailOTPEntryId)
    Removes the mfa email otp entry with the primary key from the database.
    removeByUserId(long userId)
    Removes the mfa email otp entry where userId = ? from the database.
    updateImpl(MFAEmailOTPEntry mfaEmailOTPEntry)
     

    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

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

      MFAEmailOTPEntry fetchByUserId(long userId, boolean useFinderCache)
      Returns the mfa email 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 email otp entry, or null if a matching mfa email otp entry could not be found
    • removeByUserId

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

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

      MFAEmailOTPEntry create(long mfaEmailOTPEntryId)
      Creates a new mfa email otp entry with the primary key. Does not add the mfa email otp entry to the database.
      Parameters:
      mfaEmailOTPEntryId - the primary key for the new mfa email otp entry
      Returns:
      the new mfa email otp entry
    • remove

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

      MFAEmailOTPEntry updateImpl(MFAEmailOTPEntry mfaEmailOTPEntry)
    • findByPrimaryKey

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

      MFAEmailOTPEntry fetchByPrimaryKey(long mfaEmailOTPEntryId)
      Returns the mfa email otp entry with the primary key or returns null if it could not be found.
      Parameters:
      mfaEmailOTPEntryId - the primary key of the mfa email otp entry
      Returns:
      the mfa email otp entry, or null if a mfa email otp entry with the primary key could not be found
    • fetchByUserId

      default MFAEmailOTPEntry fetchByUserId(long userId)
      Returns the mfa email 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 email otp entry, or null if a matching mfa email otp entry could not be found