@ProviderType public interface MFATimeBasedOTPEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<MFATimeBasedOTPEntry>
Caching information and settings can be found in portal.properties
MFATimeBasedOTPEntryUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<MFATimeBasedOTPEntry> mfaTimeBasedOTPEntries)
Caches the mfa time based otp entries in the entity cache if it is enabled.
|
void |
cacheResult(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
Caches the mfa time based otp entry in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of mfa time based otp entries.
|
int |
countByUserId(long userId)
Returns the number of mfa time based otp entries where userId = ?.
|
MFATimeBasedOTPEntry |
create(long mfaTimeBasedOTPEntryId)
Creates a new mfa time based otp entry with the primary key.
|
MFATimeBasedOTPEntry |
fetchByPrimaryKey(long mfaTimeBasedOTPEntryId)
Returns the mfa time based otp entry with the primary key or returns
null if it could not be found. |
MFATimeBasedOTPEntry |
fetchByUserId(long userId)
Returns the mfa time based otp entry where userId = ? or returns
null if it could not be found. |
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. |
java.util.List<MFATimeBasedOTPEntry> |
findAll()
Returns all the mfa time based otp entries.
|
java.util.List<MFATimeBasedOTPEntry> |
findAll(int start,
int end)
Returns a range of all the mfa time based otp entries.
|
java.util.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.
|
java.util.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.
|
MFATimeBasedOTPEntry |
findByPrimaryKey(long mfaTimeBasedOTPEntryId)
Returns the mfa time based otp entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
MFATimeBasedOTPEntry |
findByUserId(long userId)
Returns the mfa time based otp entry where userId = ? or throws a
NoSuchEntryException if it could not be found. |
MFATimeBasedOTPEntry |
remove(long mfaTimeBasedOTPEntryId)
Removes the mfa time based otp entry with the primary key from the database.
|
void |
removeAll()
Removes all the mfa time based otp entries from the database.
|
MFATimeBasedOTPEntry |
removeByUserId(long userId)
Removes the mfa time based otp entry where userId = ? from the database.
|
MFATimeBasedOTPEntry |
updateImpl(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry) |
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, setDataSource, unregisterListener, update, updateMFATimeBasedOTPEntry findByUserId(long userId) throws NoSuchEntryException
NoSuchEntryException if it could not be found.userId - the user IDNoSuchEntryException - if a matching mfa time based otp entry could not be foundMFATimeBasedOTPEntry fetchByUserId(long userId)
null if it could not be found. Uses the finder cache.userId - the user IDnull if a matching mfa time based otp entry could not be foundMFATimeBasedOTPEntry fetchByUserId(long userId, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.userId - the user IDuseFinderCache - whether to use the finder cachenull if a matching mfa time based otp entry could not be foundMFATimeBasedOTPEntry removeByUserId(long userId) throws NoSuchEntryException
userId - the user IDNoSuchEntryExceptionint countByUserId(long userId)
userId - the user IDvoid cacheResult(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
mfaTimeBasedOTPEntry - the mfa time based otp entryvoid cacheResult(java.util.List<MFATimeBasedOTPEntry> mfaTimeBasedOTPEntries)
mfaTimeBasedOTPEntries - the mfa time based otp entriesMFATimeBasedOTPEntry create(long mfaTimeBasedOTPEntryId)
mfaTimeBasedOTPEntryId - the primary key for the new mfa time based otp entryMFATimeBasedOTPEntry remove(long mfaTimeBasedOTPEntryId) throws NoSuchEntryException
mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entryNoSuchEntryException - if a mfa time based otp entry with the primary key could not be foundMFATimeBasedOTPEntry updateImpl(MFATimeBasedOTPEntry mfaTimeBasedOTPEntry)
MFATimeBasedOTPEntry findByPrimaryKey(long mfaTimeBasedOTPEntryId) throws NoSuchEntryException
NoSuchEntryException if it could not be found.mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entryNoSuchEntryException - if a mfa time based otp entry with the primary key could not be foundMFATimeBasedOTPEntry fetchByPrimaryKey(long mfaTimeBasedOTPEntryId)
null if it could not be found.mfaTimeBasedOTPEntryId - the primary key of the mfa time based otp entrynull if a mfa time based otp entry with the primary key could not be foundjava.util.List<MFATimeBasedOTPEntry> findAll()
java.util.List<MFATimeBasedOTPEntry> findAll(int start, int end)
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.
start - the lower bound of the range of mfa time based otp entriesend - the upper bound of the range of mfa time based otp entries (not inclusive)java.util.List<MFATimeBasedOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator)
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.
start - the lower bound of the range of mfa time based otp entriesend - the upper bound of the range of mfa time based otp entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<MFATimeBasedOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFATimeBasedOTPEntry> orderByComparator, boolean useFinderCache)
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.
start - the lower bound of the range of mfa time based otp entriesend - 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 cachevoid removeAll()
int countAll()