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 TypeMethodDescriptionintcountByUserId(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 returnsnullif it could not be found.default MFATimeBasedOTPEntryfetchByUserId(long userId) Returns the mfa time based otp entry where userId = ? or returnsnullif it could not be found.fetchByUserId(long userId, boolean useFinderCache) Returns the mfa time based otp entry where userId = ? or returnsnullif it could not be found, optionally using the finder cache.findByPrimaryKey(long mfaTimeBasedOTPEntryId) Returns the mfa time based otp entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.findByUserId(long userId) Returns the mfa time based otp entry where userId = ? or throws aNoSuchEntryExceptionif it could not be found.remove(long mfaTimeBasedOTPEntryId) Removes the mfa time based otp entry with the primary key 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
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
Returns the mfa time based otp entry where userId = ? or throws aNoSuchEntryExceptionif 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
Returns the mfa time based 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 time based otp entry, or
nullif a matching mfa time based otp entry could not be found
-
removeByUserId
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
-
create
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
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
-
findByPrimaryKey
Returns the mfa time based otp entry with the primary key or throws aNoSuchEntryExceptionif 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
Returns the mfa time based otp entry with the primary key or returnsnullif 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
nullif a mfa time based otp entry with the primary key could not be found
-
fetchByUserId
Returns the mfa time based otp entry where userId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user ID- Returns:
- the matching mfa time based otp entry, or
nullif a matching mfa time based otp entry could not be found
-