@ProviderType public interface OAuthUserPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuthUser>
Caching information and settings can be found in portal.properties
OAuthUserUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<OAuthUser> oAuthUsers)
Caches the o auth users in the entity cache if it is enabled.
|
void |
cacheResult(OAuthUser oAuthUser)
Caches the o auth user in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of o auth users.
|
int |
countByAccessToken(java.lang.String accessToken)
Returns the number of o auth users where accessToken = ?.
|
int |
countByOAuthApplicationId(long oAuthApplicationId)
Returns the number of o auth users where oAuthApplicationId = ?.
|
int |
countByU_OAI(long userId,
long oAuthApplicationId)
Returns the number of o auth users where userId = ? and oAuthApplicationId = ?.
|
int |
countByUserId(long userId)
Returns the number of o auth users where userId = ?.
|
OAuthUser |
create(long oAuthUserId)
Creates a new o auth user with the primary key.
|
OAuthUser |
fetchByAccessToken(java.lang.String accessToken)
Returns the o auth user where accessToken = ? or returns
null if it could not be found. |
OAuthUser |
fetchByAccessToken(java.lang.String accessToken,
boolean retrieveFromCache)
Returns the o auth user where accessToken = ? or returns
null if it could not be found, optionally using the finder cache. |
OAuthUser |
fetchByOAuthApplicationId_First(long oAuthApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the first o auth user in the ordered set where oAuthApplicationId = ?.
|
OAuthUser |
fetchByOAuthApplicationId_Last(long oAuthApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the last o auth user in the ordered set where oAuthApplicationId = ?.
|
OAuthUser |
fetchByPrimaryKey(long oAuthUserId)
Returns the o auth user with the primary key or returns
null if it could not be found. |
OAuthUser |
fetchByU_OAI(long userId,
long oAuthApplicationId)
Returns the o auth user where userId = ? and oAuthApplicationId = ? or returns
null if it could not be found. |
OAuthUser |
fetchByU_OAI(long userId,
long oAuthApplicationId,
boolean retrieveFromCache)
Returns the o auth user where userId = ? and oAuthApplicationId = ? or returns
null if it could not be found, optionally using the finder cache. |
OAuthUser |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the first o auth user in the ordered set where userId = ?.
|
OAuthUser |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the last o auth user in the ordered set where userId = ?.
|
java.util.List<OAuthUser> |
findAll()
Returns all the o auth users.
|
java.util.List<OAuthUser> |
findAll(int start,
int end)
Returns a range of all the o auth users.
|
java.util.List<OAuthUser> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns an ordered range of all the o auth users.
|
java.util.List<OAuthUser> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth users.
|
OAuthUser |
findByAccessToken(java.lang.String accessToken)
Returns the o auth user where accessToken = ? or throws a
NoSuchUserException if it could not be found. |
OAuthUser |
findByOAuthApplicationId_First(long oAuthApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the first o auth user in the ordered set where oAuthApplicationId = ?.
|
OAuthUser |
findByOAuthApplicationId_Last(long oAuthApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the last o auth user in the ordered set where oAuthApplicationId = ?.
|
OAuthUser[] |
findByOAuthApplicationId_PrevAndNext(long oAuthUserId,
long oAuthApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the o auth users before and after the current o auth user in the ordered set where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId)
Returns all the o auth users where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId,
int start,
int end)
Returns a range of all the o auth users where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns an ordered range of all the o auth users where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth users where oAuthApplicationId = ?.
|
OAuthUser |
findByPrimaryKey(long oAuthUserId)
Returns the o auth user with the primary key or throws a
NoSuchUserException if it could not be found. |
OAuthUser |
findByU_OAI(long userId,
long oAuthApplicationId)
Returns the o auth user where userId = ? and oAuthApplicationId = ? or throws a
NoSuchUserException if it could not be found. |
OAuthUser |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the first o auth user in the ordered set where userId = ?.
|
OAuthUser |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the last o auth user in the ordered set where userId = ?.
|
OAuthUser[] |
findByUserId_PrevAndNext(long oAuthUserId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns the o auth users before and after the current o auth user in the ordered set where userId = ?.
|
java.util.List<OAuthUser> |
findByUserId(long userId)
Returns all the o auth users where userId = ?.
|
java.util.List<OAuthUser> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth users where userId = ?.
|
java.util.List<OAuthUser> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns an ordered range of all the o auth users where userId = ?.
|
java.util.List<OAuthUser> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth users where userId = ?.
|
OAuthUser |
remove(long oAuthUserId)
Removes the o auth user with the primary key from the database.
|
void |
removeAll()
Removes all the o auth users from the database.
|
OAuthUser |
removeByAccessToken(java.lang.String accessToken)
Removes the o auth user where accessToken = ? from the database.
|
void |
removeByOAuthApplicationId(long oAuthApplicationId)
Removes all the o auth users where oAuthApplicationId = ? from the database.
|
OAuthUser |
removeByU_OAI(long userId,
long oAuthApplicationId)
Removes the o auth user where userId = ? and oAuthApplicationId = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the o auth users where userId = ? from the database.
|
OAuthUser |
updateImpl(OAuthUser oAuthUser) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<OAuthUser> findByUserId(long userId)
userId
- the user IDjava.util.List<OAuthUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)java.util.List<OAuthUser> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthUser> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthUser findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth user could not be foundOAuthUser findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth user could not be foundOAuthUser[] findByUserId_PrevAndNext(long oAuthUserId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
oAuthUserId
- the primary key of the current o auth useruserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a o auth user with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDjava.util.List<OAuthUser> findByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDjava.util.List<OAuthUser> findByOAuthApplicationId(long oAuthApplicationId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
oAuthApplicationId
- the o auth application IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)java.util.List<OAuthUser> findByOAuthApplicationId(long oAuthApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
oAuthApplicationId
- the o auth application IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthUser> findByOAuthApplicationId(long oAuthApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
oAuthApplicationId
- the o auth application IDstart
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthUser findByOAuthApplicationId_First(long oAuthApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
oAuthApplicationId
- the o auth application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByOAuthApplicationId_First(long oAuthApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
oAuthApplicationId
- the o auth application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth user could not be foundOAuthUser findByOAuthApplicationId_Last(long oAuthApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
oAuthApplicationId
- the o auth application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByOAuthApplicationId_Last(long oAuthApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
oAuthApplicationId
- the o auth application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth user could not be foundOAuthUser[] findByOAuthApplicationId_PrevAndNext(long oAuthUserId, long oAuthApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) throws NoSuchUserException
oAuthUserId
- the primary key of the current o auth useroAuthApplicationId
- the o auth application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a o auth user with the primary key could not be foundvoid removeByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDint countByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDOAuthUser findByAccessToken(java.lang.String accessToken) throws NoSuchUserException
NoSuchUserException
if it could not be found.accessToken
- the access tokenNoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByAccessToken(java.lang.String accessToken)
null
if it could not be found. Uses the finder cache.accessToken
- the access tokennull
if a matching o auth user could not be foundOAuthUser fetchByAccessToken(java.lang.String accessToken, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.accessToken
- the access tokenretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching o auth user could not be foundOAuthUser removeByAccessToken(java.lang.String accessToken) throws NoSuchUserException
accessToken
- the access tokenNoSuchUserException
int countByAccessToken(java.lang.String accessToken)
accessToken
- the access tokenOAuthUser findByU_OAI(long userId, long oAuthApplicationId) throws NoSuchUserException
NoSuchUserException
if it could not be found.userId
- the user IDoAuthApplicationId
- the o auth application IDNoSuchUserException
- if a matching o auth user could not be foundOAuthUser fetchByU_OAI(long userId, long oAuthApplicationId)
null
if it could not be found. Uses the finder cache.userId
- the user IDoAuthApplicationId
- the o auth application IDnull
if a matching o auth user could not be foundOAuthUser fetchByU_OAI(long userId, long oAuthApplicationId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDoAuthApplicationId
- the o auth application IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching o auth user could not be foundOAuthUser removeByU_OAI(long userId, long oAuthApplicationId) throws NoSuchUserException
userId
- the user IDoAuthApplicationId
- the o auth application IDNoSuchUserException
int countByU_OAI(long userId, long oAuthApplicationId)
userId
- the user IDoAuthApplicationId
- the o auth application IDvoid cacheResult(OAuthUser oAuthUser)
oAuthUser
- the o auth uservoid cacheResult(java.util.List<OAuthUser> oAuthUsers)
oAuthUsers
- the o auth usersOAuthUser create(long oAuthUserId)
oAuthUserId
- the primary key for the new o auth userOAuthUser remove(long oAuthUserId) throws NoSuchUserException
oAuthUserId
- the primary key of the o auth userNoSuchUserException
- if a o auth user with the primary key could not be foundOAuthUser findByPrimaryKey(long oAuthUserId) throws NoSuchUserException
NoSuchUserException
if it could not be found.oAuthUserId
- the primary key of the o auth userNoSuchUserException
- if a o auth user with the primary key could not be foundOAuthUser fetchByPrimaryKey(long oAuthUserId)
null
if it could not be found.oAuthUserId
- the primary key of the o auth usernull
if a o auth user with the primary key could not be foundjava.util.List<OAuthUser> findAll()
java.util.List<OAuthUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)java.util.List<OAuthUser> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthUser> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of o auth usersend
- the upper bound of the range of o auth users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()