@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 useFinderCache)
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 useFinderCache)
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 = ?.
|
int |
filterCountByOAuthApplicationId(long oAuthApplicationId)
Returns the number of o auth users that the user has permission to view where oAuthApplicationId = ?.
|
int |
filterCountByUserId(long userId)
Returns the number of o auth users that the user has permission to view where userId = ?.
|
OAuthUser[] |
filterFindByOAuthApplicationId_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 of o auth users that the user has permission to view where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
filterFindByOAuthApplicationId(long oAuthApplicationId)
Returns all the o auth users that the user has permission to view where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
filterFindByOAuthApplicationId(long oAuthApplicationId,
int start,
int end)
Returns a range of all the o auth users that the user has permission to view where oAuthApplicationId = ?.
|
java.util.List<OAuthUser> |
filterFindByOAuthApplicationId(long oAuthApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns an ordered range of all the o auth users that the user has permissions to view where oAuthApplicationId = ?.
|
OAuthUser[] |
filterFindByUserId_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 of o auth users that the user has permission to view where userId = ?.
|
java.util.List<OAuthUser> |
filterFindByUserId(long userId)
Returns all the o auth users that the user has permission to view where userId = ?.
|
java.util.List<OAuthUser> |
filterFindByUserId(long userId,
int start,
int end)
Returns a range of all the o auth users that the user has permission to view where userId = ?.
|
java.util.List<OAuthUser> |
filterFindByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
Returns an ordered range of all the o auth users that the user has permissions to view 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 useFinderCache)
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 useFinderCache)
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 useFinderCache)
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, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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 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 OAuthUserModelImpl.
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)useFinderCache - whether to use 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 foundjava.util.List<OAuthUser> filterFindByUserId(long userId)
userId - the user IDjava.util.List<OAuthUser> filterFindByUserId(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 OAuthUserModelImpl.
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> filterFindByUserId(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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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)OAuthUser[] filterFindByUserId_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 IDint filterCountByUserId(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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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 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 OAuthUserModelImpl.
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)useFinderCache - whether to use 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 foundjava.util.List<OAuthUser> filterFindByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId - the o auth application IDjava.util.List<OAuthUser> filterFindByOAuthApplicationId(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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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> filterFindByOAuthApplicationId(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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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)OAuthUser[] filterFindByOAuthApplicationId_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 IDint filterCountByOAuthApplicationId(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 useFinderCache)
null if it could not be found, optionally using the finder cache.accessToken - the access tokenuseFinderCache - whether to use the finder cachenull if a matching o auth user could not be foundOAuthUser removeByAccessToken(java.lang.String accessToken) throws NoSuchUserException
accessToken - the access tokenNoSuchUserExceptionint 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 useFinderCache)
null if it could not be found, optionally using the finder cache.userId - the user IDoAuthApplicationId - the o auth application IDuseFinderCache - whether to use 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 IDNoSuchUserExceptionint 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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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, then the query will include the default ORDER BY logic from OAuthUserModelImpl.
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 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 OAuthUserModelImpl.
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)useFinderCache - whether to use the finder cachevoid removeAll()
int countAll()