@ProviderType
public class OAuthUserUtil
extends java.lang.Object
com.liferay.oauth.service.persistence.impl.OAuthUserPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
OAuthUserPersistence
Constructor and Description |
---|
OAuthUserUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<OAuthUser> oAuthUsers)
Caches the o auth users in the entity cache if it is enabled.
|
static void |
cacheResult(OAuthUser oAuthUser)
Caches the o auth user in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OAuthUser oAuthUser) |
static int |
countAll()
Returns the number of o auth users.
|
static int |
countByAccessToken(java.lang.String accessToken)
Returns the number of o auth users where accessToken = ?.
|
static int |
countByOAuthApplicationId(long oAuthApplicationId)
Returns the number of o auth users where oAuthApplicationId = ?.
|
static int |
countByU_OAI(long userId,
long oAuthApplicationId)
Returns the number of o auth users where userId = ? and oAuthApplicationId = ?.
|
static int |
countByUserId(long userId)
Returns the number of o auth users where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OAuthUser |
create(long oAuthUserId)
Creates a new o auth user with the primary key.
|
static OAuthUser |
fetchByAccessToken(java.lang.String accessToken)
Returns the o auth user where accessToken = ? or returns
null if it could not be found. |
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static OAuthUser |
fetchByPrimaryKey(long oAuthUserId)
Returns the o auth user with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OAuthUser> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static 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. |
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthUser> |
findAll()
Returns all the o auth users.
|
static java.util.List<OAuthUser> |
findAll(int start,
int end)
Returns a range of all the o auth users.
|
static 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.
|
static 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.
|
static OAuthUser |
findByAccessToken(java.lang.String accessToken)
Returns the o auth user where accessToken = ? or throws a
NoSuchUserException if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId)
Returns all the o auth users where oAuthApplicationId = ?.
|
static java.util.List<OAuthUser> |
findByOAuthApplicationId(long oAuthApplicationId,
int start,
int end)
Returns a range of all the o auth users where oAuthApplicationId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static OAuthUser |
findByPrimaryKey(long oAuthUserId)
Returns the o auth user with the primary key or throws a
NoSuchUserException if it could not be found. |
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthUser> |
findByUserId(long userId)
Returns all the o auth users where userId = ?.
|
static java.util.List<OAuthUser> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth users where userId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OAuthUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OAuthUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator) |
static OAuthUserPersistence |
getPersistence() |
static OAuthUser |
remove(long oAuthUserId)
Removes the o auth user with the primary key from the database.
|
static void |
removeAll()
Removes all the o auth users from the database.
|
static OAuthUser |
removeByAccessToken(java.lang.String accessToken)
Removes the o auth user where accessToken = ? from the database.
|
static void |
removeByOAuthApplicationId(long oAuthApplicationId)
Removes all the o auth users where oAuthApplicationId = ? from the database.
|
static OAuthUser |
removeByU_OAI(long userId,
long oAuthApplicationId)
Removes the o auth user where userId = ? and oAuthApplicationId = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the o auth users where userId = ? from the database.
|
static OAuthUser |
update(OAuthUser oAuthUser) |
static OAuthUser |
update(OAuthUser oAuthUser,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuthUser |
updateImpl(OAuthUser oAuthUser) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OAuthUser oAuthUser)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,OAuthUser> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OAuthUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OAuthUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OAuthUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthUser> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OAuthUser update(OAuthUser oAuthUser)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OAuthUser update(OAuthUser oAuthUser, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OAuthUser> findByUserId(long userId)
userId
- the user IDpublic static java.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)public static 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
)public static 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 cachepublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser[] 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 foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static java.util.List<OAuthUser> findByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDpublic static java.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)public static 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
)public static 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 cachepublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser[] 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 foundpublic static void removeByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDpublic static int countByOAuthApplicationId(long oAuthApplicationId)
oAuthApplicationId
- the o auth application IDpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser removeByAccessToken(java.lang.String accessToken) throws NoSuchUserException
accessToken
- the access tokenNoSuchUserException
public static int countByAccessToken(java.lang.String accessToken)
accessToken
- the access tokenpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser removeByU_OAI(long userId, long oAuthApplicationId) throws NoSuchUserException
userId
- the user IDoAuthApplicationId
- the o auth application IDNoSuchUserException
public static int countByU_OAI(long userId, long oAuthApplicationId)
userId
- the user IDoAuthApplicationId
- the o auth application IDpublic static void cacheResult(OAuthUser oAuthUser)
oAuthUser
- the o auth userpublic static void cacheResult(java.util.List<OAuthUser> oAuthUsers)
oAuthUsers
- the o auth userspublic static OAuthUser create(long oAuthUserId)
oAuthUserId
- the primary key for the new o auth userpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static OAuthUser 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 foundpublic static java.util.List<OAuthUser> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static OAuthUserPersistence getPersistence()