@ProviderType public interface RememberMeTokenPersistence extends BasePersistence<RememberMeToken>
Caching information and settings can be found in portal.properties
RememberMeTokenUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<RememberMeToken> rememberMeTokens)
Caches the remember me tokens in the entity cache if it is enabled.
|
void |
cacheResult(RememberMeToken rememberMeToken)
Caches the remember me token in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of remember me tokens.
|
int |
countByUserId(long userId)
Returns the number of remember me tokens where userId = ?.
|
RememberMeToken |
create(long rememberMeTokenId)
Creates a new remember me token with the primary key.
|
RememberMeToken |
fetchByPrimaryKey(long rememberMeTokenId)
Returns the remember me token with the primary key or returns
null if it could not be found. |
RememberMeToken |
fetchByUserId_First(long userId,
OrderByComparator<RememberMeToken> orderByComparator)
Returns the first remember me token in the ordered set where userId = ?.
|
RememberMeToken |
fetchByUserId_Last(long userId,
OrderByComparator<RememberMeToken> orderByComparator)
Returns the last remember me token in the ordered set where userId = ?.
|
List<RememberMeToken> |
findAll()
Returns all the remember me tokens.
|
List<RememberMeToken> |
findAll(int start,
int end)
Returns a range of all the remember me tokens.
|
List<RememberMeToken> |
findAll(int start,
int end,
OrderByComparator<RememberMeToken> orderByComparator)
Returns an ordered range of all the remember me tokens.
|
List<RememberMeToken> |
findAll(int start,
int end,
OrderByComparator<RememberMeToken> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the remember me tokens.
|
RememberMeToken |
findByPrimaryKey(long rememberMeTokenId)
Returns the remember me token with the primary key or throws a
NoSuchRememberMeTokenException if it could not be found. |
RememberMeToken |
findByUserId_First(long userId,
OrderByComparator<RememberMeToken> orderByComparator)
Returns the first remember me token in the ordered set where userId = ?.
|
RememberMeToken |
findByUserId_Last(long userId,
OrderByComparator<RememberMeToken> orderByComparator)
Returns the last remember me token in the ordered set where userId = ?.
|
RememberMeToken[] |
findByUserId_PrevAndNext(long rememberMeTokenId,
long userId,
OrderByComparator<RememberMeToken> orderByComparator)
Returns the remember me tokens before and after the current remember me token in the ordered set where userId = ?.
|
List<RememberMeToken> |
findByUserId(long userId)
Returns all the remember me tokens where userId = ?.
|
List<RememberMeToken> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the remember me tokens where userId = ?.
|
List<RememberMeToken> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RememberMeToken> orderByComparator)
Returns an ordered range of all the remember me tokens where userId = ?.
|
List<RememberMeToken> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RememberMeToken> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the remember me tokens where userId = ?.
|
RememberMeToken |
remove(long rememberMeTokenId)
Removes the remember me token with the primary key from the database.
|
void |
removeAll()
Removes all the remember me tokens from the database.
|
void |
removeByUserId(long userId)
Removes all the remember me tokens where userId = ? from the database.
|
RememberMeToken |
updateImpl(RememberMeToken rememberMeToken) |
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
List<RememberMeToken> findByUserId(long userId)
userId
- the user IDList<RememberMeToken> findByUserId(long userId, 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 RememberMeTokenModelImpl
.
userId
- the user IDstart
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)List<RememberMeToken> findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> 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 RememberMeTokenModelImpl
.
userId
- the user IDstart
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<RememberMeToken> findByUserId(long userId, int start, int end, OrderByComparator<RememberMeToken> 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 RememberMeTokenModelImpl
.
userId
- the user IDstart
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheRememberMeToken findByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRememberMeTokenException
- if a matching remember me token could not be foundRememberMeToken fetchByUserId_First(long userId, OrderByComparator<RememberMeToken> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching remember me token could not be foundRememberMeToken findByUserId_Last(long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRememberMeTokenException
- if a matching remember me token could not be foundRememberMeToken fetchByUserId_Last(long userId, OrderByComparator<RememberMeToken> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching remember me token could not be foundRememberMeToken[] findByUserId_PrevAndNext(long rememberMeTokenId, long userId, OrderByComparator<RememberMeToken> orderByComparator) throws NoSuchRememberMeTokenException
rememberMeTokenId
- the primary key of the current remember me tokenuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRememberMeTokenException
- if a remember me token with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDvoid cacheResult(RememberMeToken rememberMeToken)
rememberMeToken
- the remember me tokenvoid cacheResult(List<RememberMeToken> rememberMeTokens)
rememberMeTokens
- the remember me tokensRememberMeToken create(long rememberMeTokenId)
rememberMeTokenId
- the primary key for the new remember me tokenRememberMeToken remove(long rememberMeTokenId) throws NoSuchRememberMeTokenException
rememberMeTokenId
- the primary key of the remember me tokenNoSuchRememberMeTokenException
- if a remember me token with the primary key could not be foundRememberMeToken updateImpl(RememberMeToken rememberMeToken)
RememberMeToken findByPrimaryKey(long rememberMeTokenId) throws NoSuchRememberMeTokenException
NoSuchRememberMeTokenException
if it could not be found.rememberMeTokenId
- the primary key of the remember me tokenNoSuchRememberMeTokenException
- if a remember me token with the primary key could not be foundRememberMeToken fetchByPrimaryKey(long rememberMeTokenId)
null
if it could not be found.rememberMeTokenId
- the primary key of the remember me tokennull
if a remember me token with the primary key could not be foundList<RememberMeToken> findAll()
List<RememberMeToken> 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 RememberMeTokenModelImpl
.
start
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)List<RememberMeToken> findAll(int start, int end, OrderByComparator<RememberMeToken> 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 RememberMeTokenModelImpl
.
start
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<RememberMeToken> findAll(int start, int end, OrderByComparator<RememberMeToken> 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 RememberMeTokenModelImpl
.
start
- the lower bound of the range of remember me tokensend
- the upper bound of the range of remember me tokens (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()