Class MFAEmailOTPEntryUtil
com.liferay.multi.factor.authentication.email.otp.service.persistence.impl.MFAEmailOTPEntryPersistenceImpl 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(MFAEmailOTPEntry mfaEmailOTPEntry) Caches the mfa email otp entry in the entity cache if it is enabled.static voidcacheResult(List<MFAEmailOTPEntry> mfaEmailOTPEntries) Caches the mfa email otp entries in the entity cache if it is enabled.static voidstatic voidclearCache(MFAEmailOTPEntry mfaEmailOTPEntry) static intcountAll()Returns the number of mfa email otp entries.static intcountByUserId(long userId) Returns the number of mfa email otp entries where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static MFAEmailOTPEntrycreate(long mfaEmailOTPEntryId) Creates a new mfa email otp entry with the primary key.static MFAEmailOTPEntryfetchByPrimaryKey(long mfaEmailOTPEntryId) Returns the mfa email otp entry with the primary key or returnsnullif it could not be found.static Map<Serializable,MFAEmailOTPEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static MFAEmailOTPEntryfetchByUserId(long userId) Returns the mfa email otp entry where userId = ? or returnsnullif it could not be found.static MFAEmailOTPEntryfetchByUserId(long userId, boolean useFinderCache) Returns the mfa email otp entry where userId = ? or returnsnullif it could not be found, optionally using the finder cache.static List<MFAEmailOTPEntry>findAll()Returns all the mfa email otp entries.static List<MFAEmailOTPEntry>findAll(int start, int end) Returns a range of all the mfa email otp entries.static List<MFAEmailOTPEntry>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator) Returns an ordered range of all the mfa email otp entries.static List<MFAEmailOTPEntry>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the mfa email otp entries.static MFAEmailOTPEntryfindByPrimaryKey(long mfaEmailOTPEntryId) Returns the mfa email otp entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.static MFAEmailOTPEntryfindByUserId(long userId) Returns the mfa email otp entry where userId = ? or throws aNoSuchEntryExceptionif it could not be found.static List<MFAEmailOTPEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<MFAEmailOTPEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<MFAEmailOTPEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator) static MFAEmailOTPEntryPersistencestatic MFAEmailOTPEntryremove(long mfaEmailOTPEntryId) Removes the mfa email otp entry with the primary key from the database.static voidRemoves all the mfa email otp entries from the database.static MFAEmailOTPEntryremoveByUserId(long userId) Removes the mfa email otp entry where userId = ? from the database.static voidsetPersistence(MFAEmailOTPEntryPersistence persistence) static MFAEmailOTPEntryupdate(MFAEmailOTPEntry mfaEmailOTPEntry) static MFAEmailOTPEntryupdate(MFAEmailOTPEntry mfaEmailOTPEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static MFAEmailOTPEntryupdateImpl(MFAEmailOTPEntry mfaEmailOTPEntry)
-
Constructor Details
-
MFAEmailOTPEntryUtil
public MFAEmailOTPEntryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<MFAEmailOTPEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<MFAEmailOTPEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<MFAEmailOTPEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static MFAEmailOTPEntry update(MFAEmailOTPEntry mfaEmailOTPEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUserId
Returns the mfa email otp entry where userId = ? or throws aNoSuchEntryExceptionif 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 foundNoSuchEntryException
-
fetchByUserId
Returns the mfa email otp entry where userId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user ID- Returns:
- the matching mfa email otp entry, or
nullif a matching mfa email otp entry could not be found
-
fetchByUserId
Returns the mfa email otp entry where userId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching mfa email otp entry, or
nullif a matching mfa email otp entry could not be found
-
removeByUserId
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
public static 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
-
cacheResult
Caches the mfa email otp entry in the entity cache if it is enabled.- Parameters:
mfaEmailOTPEntry- the mfa email otp entry
-
cacheResult
Caches the mfa email otp entries in the entity cache if it is enabled.- Parameters:
mfaEmailOTPEntries- the mfa email otp entries
-
create
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
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 foundNoSuchEntryException
-
updateImpl
-
findByPrimaryKey
public static MFAEmailOTPEntry findByPrimaryKey(long mfaEmailOTPEntryId) throws NoSuchEntryException Returns the mfa email otp entry with the primary key or throws aNoSuchEntryExceptionif 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 foundNoSuchEntryException
-
fetchByPrimaryKey
Returns the mfa email otp entry with the primary key or returnsnullif it could not be found.- Parameters:
mfaEmailOTPEntryId- the primary key of the mfa email otp entry- Returns:
- the mfa email otp entry, or
nullif a mfa email otp entry with the primary key could not be found
-
findAll
Returns all the mfa email otp entries.- Returns:
- the mfa email otp entries
-
findAll
Returns a range of all the mfa email otp entries.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 bothstartandendtoQueryUtil#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 fromMFAEmailOTPEntryModelImpl.- Parameters:
start- the lower bound of the range of mfa email otp entriesend- the upper bound of the range of mfa email otp entries (not inclusive)- Returns:
- the range of mfa email otp entries
-
findAll
public static List<MFAEmailOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator) Returns an ordered range of all the mfa email otp entries.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 bothstartandendtoQueryUtil#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 fromMFAEmailOTPEntryModelImpl.- Parameters:
start- the lower bound of the range of mfa email otp entriesend- the upper bound of the range of mfa email otp entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of mfa email otp entries
-
findAll
public static List<MFAEmailOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the mfa email otp entries.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 bothstartandendtoQueryUtil#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 fromMFAEmailOTPEntryModelImpl.- Parameters:
start- the lower bound of the range of mfa email otp entriesend- the upper bound of the range of mfa email otp entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of mfa email otp entries
-
removeAll
public static void removeAll()Removes all the mfa email otp entries from the database. -
countAll
public static int countAll()Returns the number of mfa email otp entries.- Returns:
- the number of mfa email otp entries
-
getPersistence
-
setPersistence
-