java.lang.Object
com.liferay.multi.factor.authentication.fido2.credential.service.persistence.MFAFIDO2CredentialEntryUtil

public class MFAFIDO2CredentialEntryUtil extends Object
The persistence utility for the mfafido2 credential entry service. This utility wraps com.liferay.multi.factor.authentication.fido2.credential.service.persistence.impl.MFAFIDO2CredentialEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • MFAFIDO2CredentialEntryUtil

      public MFAFIDO2CredentialEntryUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<MFAFIDO2CredentialEntry> mfaFIDO2CredentialEntries)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(MFAFIDO2CredentialEntry mfaFIDO2CredentialEntry)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(MFAFIDO2CredentialEntry mfaFIDO2CredentialEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,MFAFIDO2CredentialEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<MFAFIDO2CredentialEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<MFAFIDO2CredentialEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<MFAFIDO2CredentialEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static MFAFIDO2CredentialEntry update(MFAFIDO2CredentialEntry mfaFIDO2CredentialEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static MFAFIDO2CredentialEntry update(MFAFIDO2CredentialEntry mfaFIDO2CredentialEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUserId

      public static List<MFAFIDO2CredentialEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the mfafido2 credential entries 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential 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 matching mfafido2 credential entries
    • findByUserId_First

      public static MFAFIDO2CredentialEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator) throws NoSuchMFAFIDO2CredentialEntryException
      Returns the first mfafido2 credential entry 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 mfafido2 credential entry
    • fetchByUserId_First

      public static MFAFIDO2CredentialEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator)
      Returns the first mfafido2 credential entry 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 mfafido2 credential entry, or null if a matching mfafido2 credential entry could not be found
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the mfafido2 credential entries where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static int countByUserId(long userId)
      Returns the number of mfafido2 credential entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching mfafido2 credential entries
    • findByCredentialKeyHash

      public static List<MFAFIDO2CredentialEntry> findByCredentialKeyHash(long credentialKeyHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the mfafido2 credential entries where credentialKeyHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      credentialKeyHash - the credential key hash
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential 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 matching mfafido2 credential entries
    • findByCredentialKeyHash_First

      public static MFAFIDO2CredentialEntry findByCredentialKeyHash_First(long credentialKeyHash, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator) throws NoSuchMFAFIDO2CredentialEntryException
      Returns the first mfafido2 credential entry in the ordered set where credentialKeyHash = ?.
      Parameters:
      credentialKeyHash - the credential key hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching mfafido2 credential entry
    • fetchByCredentialKeyHash_First

      public static MFAFIDO2CredentialEntry fetchByCredentialKeyHash_First(long credentialKeyHash, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator)
      Returns the first mfafido2 credential entry in the ordered set where credentialKeyHash = ?.
      Parameters:
      credentialKeyHash - the credential key hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching mfafido2 credential entry, or null if a matching mfafido2 credential entry could not be found
    • removeByCredentialKeyHash

      public static void removeByCredentialKeyHash(long credentialKeyHash)
      Removes all the mfafido2 credential entries where credentialKeyHash = ? from the database.
      Parameters:
      credentialKeyHash - the credential key hash
    • countByCredentialKeyHash

      public static int countByCredentialKeyHash(long credentialKeyHash)
      Returns the number of mfafido2 credential entries where credentialKeyHash = ?.
      Parameters:
      credentialKeyHash - the credential key hash
      Returns:
      the number of matching mfafido2 credential entries
    • findByU_C

      public static MFAFIDO2CredentialEntry findByU_C(long userId, long credentialKeyHash) throws NoSuchMFAFIDO2CredentialEntryException
      Returns the mfafido2 credential entry where userId = ? and credentialKeyHash = ? or throws a NoSuchMFAFIDO2CredentialEntryException if it could not be found.
      Parameters:
      userId - the user ID
      credentialKeyHash - the credential key hash
      Returns:
      the matching mfafido2 credential entry
    • fetchByU_C

      public static MFAFIDO2CredentialEntry fetchByU_C(long userId, long credentialKeyHash, boolean useFinderCache)
      Returns the mfafido2 credential entry where userId = ? and credentialKeyHash = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      credentialKeyHash - the credential key hash
      useFinderCache - whether to use the finder cache
      Returns:
      the matching mfafido2 credential entry, or null if a matching mfafido2 credential entry could not be found
    • removeByU_C

      public static MFAFIDO2CredentialEntry removeByU_C(long userId, long credentialKeyHash) throws NoSuchMFAFIDO2CredentialEntryException
      Removes the mfafido2 credential entry where userId = ? and credentialKeyHash = ? from the database.
      Parameters:
      userId - the user ID
      credentialKeyHash - the credential key hash
      Returns:
      the mfafido2 credential entry that was removed
      Throws:
      NoSuchMFAFIDO2CredentialEntryException
    • countByU_C

      public static int countByU_C(long userId, long credentialKeyHash)
      Returns the number of mfafido2 credential entries where userId = ? and credentialKeyHash = ?.
      Parameters:
      userId - the user ID
      credentialKeyHash - the credential key hash
      Returns:
      the number of matching mfafido2 credential entries
    • create

      public static MFAFIDO2CredentialEntry create(long mfaFIDO2CredentialEntryId)
      Creates a new mfafido2 credential entry with the primary key. Does not add the mfafido2 credential entry to the database.
      Parameters:
      mfaFIDO2CredentialEntryId - the primary key for the new mfafido2 credential entry
      Returns:
      the new mfafido2 credential entry
    • remove

      public static MFAFIDO2CredentialEntry remove(long mfaFIDO2CredentialEntryId) throws NoSuchMFAFIDO2CredentialEntryException
      Removes the mfafido2 credential entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      mfaFIDO2CredentialEntryId - the primary key of the mfafido2 credential entry
      Returns:
      the mfafido2 credential entry that was removed
    • updateImpl

      public static MFAFIDO2CredentialEntry updateImpl(MFAFIDO2CredentialEntry mfaFIDO2CredentialEntry)
    • findByPrimaryKey

      public static MFAFIDO2CredentialEntry findByPrimaryKey(long mfaFIDO2CredentialEntryId) throws NoSuchMFAFIDO2CredentialEntryException
      Returns the mfafido2 credential entry with the primary key or throws a NoSuchMFAFIDO2CredentialEntryException if it could not be found.
      Parameters:
      mfaFIDO2CredentialEntryId - the primary key of the mfafido2 credential entry
      Returns:
      the mfafido2 credential entry
    • fetchByPrimaryKey

      public static MFAFIDO2CredentialEntry fetchByPrimaryKey(long mfaFIDO2CredentialEntryId)
      Returns the mfafido2 credential entry with the primary key or returns null if it could not be found.
      Parameters:
      mfaFIDO2CredentialEntryId - the primary key of the mfafido2 credential entry
      Returns:
      the mfafido2 credential entry, or null if a mfafido2 credential entry with the primary key could not be found
    • fetchByU_C

      public static MFAFIDO2CredentialEntry fetchByU_C(long userId, long credentialKeyHash)
      Returns the mfafido2 credential entry where userId = ? and credentialKeyHash = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      credentialKeyHash - the credential key hash
      Returns:
      the matching mfafido2 credential entry, or null if a matching mfafido2 credential entry could not be found
    • findByUserId

      public static List<MFAFIDO2CredentialEntry> findByUserId(long userId)
      Returns all the mfafido2 credential entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching mfafido2 credential entries
    • findByUserId

      public static List<MFAFIDO2CredentialEntry> findByUserId(long userId, int start, int end)
      Returns a range of all the mfafido2 credential entries 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential entries (not inclusive)
      Returns:
      the range of matching mfafido2 credential entries
    • findByUserId

      public static List<MFAFIDO2CredentialEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator)
      Returns an ordered range of all the mfafido2 credential entries 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching mfafido2 credential entries
    • findByCredentialKeyHash

      public static List<MFAFIDO2CredentialEntry> findByCredentialKeyHash(long credentialKeyHash)
      Returns all the mfafido2 credential entries where credentialKeyHash = ?.
      Parameters:
      credentialKeyHash - the credential key hash
      Returns:
      the matching mfafido2 credential entries
    • findByCredentialKeyHash

      public static List<MFAFIDO2CredentialEntry> findByCredentialKeyHash(long credentialKeyHash, int start, int end)
      Returns a range of all the mfafido2 credential entries where credentialKeyHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      credentialKeyHash - the credential key hash
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential entries (not inclusive)
      Returns:
      the range of matching mfafido2 credential entries
    • findByCredentialKeyHash

      public static List<MFAFIDO2CredentialEntry> findByCredentialKeyHash(long credentialKeyHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAFIDO2CredentialEntry> orderByComparator)
      Returns an ordered range of all the mfafido2 credential entries where credentialKeyHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.multi.factor.authentication.fido2.credential.model.impl.MFAFIDO2CredentialEntryModelImpl.

      Parameters:
      credentialKeyHash - the credential key hash
      start - the lower bound of the range of mfafido2 credential entries
      end - the upper bound of the range of mfafido2 credential entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching mfafido2 credential entries
    • getPersistence

      public static MFAFIDO2CredentialEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(MFAFIDO2CredentialEntryPersistence persistence)