@ProviderType public interface MFAEmailOTPEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<MFAEmailOTPEntry>
Caching information and settings can be found in portal.properties
MFAEmailOTPEntryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<MFAEmailOTPEntry> mfaEmailOTPEntries)
Caches the mfa email otp entries in the entity cache if it is enabled.
|
void |
cacheResult(MFAEmailOTPEntry mfaEmailOTPEntry)
Caches the mfa email otp entry in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of mfa email otp entries.
|
int |
countByUserId(long userId)
Returns the number of mfa email otp entries where userId = ?.
|
MFAEmailOTPEntry |
create(long mfaEmailOTPEntryId)
Creates a new mfa email otp entry with the primary key.
|
MFAEmailOTPEntry |
fetchByPrimaryKey(long mfaEmailOTPEntryId)
Returns the mfa email otp entry with the primary key or returns
null if it could not be found. |
MFAEmailOTPEntry |
fetchByUserId(long userId)
Returns the mfa email otp entry where userId = ? or returns
null if it could not be found. |
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. |
java.util.List<MFAEmailOTPEntry> |
findAll()
Returns all the mfa email otp entries.
|
java.util.List<MFAEmailOTPEntry> |
findAll(int start,
int end)
Returns a range of all the mfa email otp entries.
|
java.util.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.
|
java.util.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.
|
MFAEmailOTPEntry |
findByPrimaryKey(long mfaEmailOTPEntryId)
Returns the mfa email otp entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
MFAEmailOTPEntry |
findByUserId(long userId)
Returns the mfa email otp entry where userId = ? or throws a
NoSuchEntryException if it could not be found. |
MFAEmailOTPEntry |
remove(long mfaEmailOTPEntryId)
Removes the mfa email otp entry with the primary key from the database.
|
void |
removeAll()
Removes all the mfa email otp entries from the database.
|
MFAEmailOTPEntry |
removeByUserId(long userId)
Removes the mfa email otp entry where userId = ? from the database.
|
MFAEmailOTPEntry |
updateImpl(MFAEmailOTPEntry mfaEmailOTPEntry) |
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, update
MFAEmailOTPEntry findByUserId(long userId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.userId
- the user IDNoSuchEntryException
- if a matching mfa email otp entry could not be foundMFAEmailOTPEntry fetchByUserId(long userId)
null
if it could not be found. Uses the finder cache.userId
- the user IDnull
if a matching mfa email otp entry could not be foundMFAEmailOTPEntry 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 email otp entry could not be foundMFAEmailOTPEntry removeByUserId(long userId) throws NoSuchEntryException
userId
- the user IDNoSuchEntryException
int countByUserId(long userId)
userId
- the user IDvoid cacheResult(MFAEmailOTPEntry mfaEmailOTPEntry)
mfaEmailOTPEntry
- the mfa email otp entryvoid cacheResult(java.util.List<MFAEmailOTPEntry> mfaEmailOTPEntries)
mfaEmailOTPEntries
- the mfa email otp entriesMFAEmailOTPEntry create(long mfaEmailOTPEntryId)
mfaEmailOTPEntryId
- the primary key for the new mfa email otp entryMFAEmailOTPEntry remove(long mfaEmailOTPEntryId) throws NoSuchEntryException
mfaEmailOTPEntryId
- the primary key of the mfa email otp entryNoSuchEntryException
- if a mfa email otp entry with the primary key could not be foundMFAEmailOTPEntry updateImpl(MFAEmailOTPEntry mfaEmailOTPEntry)
MFAEmailOTPEntry findByPrimaryKey(long mfaEmailOTPEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.mfaEmailOTPEntryId
- the primary key of the mfa email otp entryNoSuchEntryException
- if a mfa email otp entry with the primary key could not be foundMFAEmailOTPEntry fetchByPrimaryKey(long mfaEmailOTPEntryId)
null
if it could not be found.mfaEmailOTPEntryId
- the primary key of the mfa email otp entrynull
if a mfa email otp entry with the primary key could not be foundjava.util.List<MFAEmailOTPEntry> findAll()
java.util.List<MFAEmailOTPEntry> 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 MFAEmailOTPEntryModelImpl
.
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)java.util.List<MFAEmailOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> 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 MFAEmailOTPEntryModelImpl
.
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 (optionally null
)java.util.List<MFAEmailOTPEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MFAEmailOTPEntry> 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 MFAEmailOTPEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()