public class OAuth2AuthorizationUtil
extends java.lang.Object
com.liferay.oauth2.provider.service.persistence.impl.OAuth2AuthorizationPersistenceImpl
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
OAuth2AuthorizationPersistence
Constructor and Description |
---|
OAuth2AuthorizationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Adds an association between the o auth2 authorization and the o auth2 scope grant.
|
static void |
addOAuth2ScopeGrant(long pk,
OAuth2ScopeGrant oAuth2ScopeGrant)
Adds an association between the o auth2 authorization and the o auth2 scope grant.
|
static void |
addOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Adds an association between the o auth2 authorization and the o auth2 scope grants.
|
static void |
addOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Adds an association between the o auth2 authorization and the o auth2 scope grants.
|
static void |
cacheResult(java.util.List<OAuth2Authorization> oAuth2Authorizations)
Caches the o auth2 authorizations in the entity cache if it is enabled.
|
static void |
cacheResult(OAuth2Authorization oAuth2Authorization)
Caches the o auth2 authorization in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OAuth2Authorization oAuth2Authorization) |
static void |
clearOAuth2ScopeGrants(long pk)
Clears all associations between the o auth2 authorization and its o auth2 scope grants.
|
static boolean |
containsOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Returns
true if the o auth2 scope grant is associated with the o auth2 authorization. |
static boolean |
containsOAuth2ScopeGrants(long pk)
Returns
true if the o auth2 authorization has any o auth2 scope grants associated with it. |
static int |
countAll()
Returns the number of o auth2 authorizations.
|
static int |
countByC_ATCH(long companyId,
long accessTokenContentHash)
Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
static int |
countByC_RTCH(long companyId,
long refreshTokenContentHash)
Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
static int |
countByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
|
static int |
countByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static int |
countByUserId(long userId)
Returns the number of o auth2 authorizations where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OAuth2Authorization |
create(long oAuth2AuthorizationId)
Creates a new o auth2 authorization with the primary key.
|
static OAuth2Authorization |
fetchByC_ATCH_First(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByC_ATCH_Last(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByC_RTCH_First(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByC_RTCH_Last(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
static OAuth2Authorization |
fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
static OAuth2Authorization |
fetchByPrimaryKey(long oAuth2AuthorizationId)
Returns the o auth2 authorization with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OAuth2Authorization> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static OAuth2Authorization |
fetchByU_O_R_First(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static OAuth2Authorization |
fetchByU_O_R_Last(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static OAuth2Authorization |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ?.
|
static OAuth2Authorization |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findAll()
Returns all the o auth2 authorizations.
|
static java.util.List<OAuth2Authorization> |
findAll(int start,
int end)
Returns a range of all the o auth2 authorizations.
|
static java.util.List<OAuth2Authorization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations.
|
static java.util.List<OAuth2Authorization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations.
|
static OAuth2Authorization |
findByC_ATCH_First(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
static OAuth2Authorization |
findByC_ATCH_Last(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
static OAuth2Authorization[] |
findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId,
long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash)
Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
static OAuth2Authorization |
findByC_RTCH_First(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
static OAuth2Authorization |
findByC_RTCH_Last(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
static OAuth2Authorization[] |
findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId,
long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash)
Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
static OAuth2Authorization |
findByOAuth2ApplicationId_First(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
static OAuth2Authorization |
findByOAuth2ApplicationId_Last(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
static OAuth2Authorization[] |
findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId,
long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
static java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
static java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId,
int start,
int end)
Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
static java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
static java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
static OAuth2Authorization |
findByPrimaryKey(long oAuth2AuthorizationId)
Returns the o auth2 authorization with the primary key or throws a
NoSuchOAuth2AuthorizationException if it could not be found. |
static OAuth2Authorization |
findByU_O_R_First(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static OAuth2Authorization |
findByU_O_R_Last(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static OAuth2Authorization[] |
findByU_O_R_PrevAndNext(long oAuth2AuthorizationId,
long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end)
Returns a range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
static OAuth2Authorization |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ?.
|
static OAuth2Authorization |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ?.
|
static OAuth2Authorization[] |
findByUserId_PrevAndNext(long oAuth2AuthorizationId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findByUserId(long userId)
Returns all the o auth2 authorizations where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth2 authorizations where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where userId = ?.
|
static java.util.List<OAuth2Authorization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OAuth2Authorization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OAuth2Authorization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) |
static java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long pk)
Returns all the o auth2 authorization associated with the o auth2 scope grant.
|
static java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long pk,
int start,
int end)
Returns all the o auth2 authorization associated with the o auth2 scope grant.
|
static java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns all the o auth2 authorization associated with the o auth2 scope grant.
|
static long[] |
getOAuth2ScopeGrantPrimaryKeys(long pk)
Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.
|
static int |
getOAuth2ScopeGrantsSize(long pk)
Returns the number of o auth2 scope grants associated with the o auth2 authorization.
|
static OAuth2AuthorizationPersistence |
getPersistence() |
static OAuth2Authorization |
remove(long oAuth2AuthorizationId)
Removes the o auth2 authorization with the primary key from the database.
|
static void |
removeAll()
Removes all the o auth2 authorizations from the database.
|
static void |
removeByC_ATCH(long companyId,
long accessTokenContentHash)
Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.
|
static void |
removeByC_RTCH(long companyId,
long refreshTokenContentHash)
Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.
|
static void |
removeByOAuth2ApplicationId(long oAuth2ApplicationId)
Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
|
static void |
removeByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the o auth2 authorizations where userId = ? from the database.
|
static void |
removeOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
static void |
removeOAuth2ScopeGrant(long pk,
OAuth2ScopeGrant oAuth2ScopeGrant)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
static void |
removeOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Removes the association between the o auth2 authorization and the o auth2 scope grants.
|
static void |
removeOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Removes the association between the o auth2 authorization and the o auth2 scope grants.
|
static void |
setOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.
|
static void |
setOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.
|
static OAuth2Authorization |
update(OAuth2Authorization oAuth2Authorization) |
static OAuth2Authorization |
update(OAuth2Authorization oAuth2Authorization,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuth2Authorization |
updateImpl(OAuth2Authorization oAuth2Authorization) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OAuth2Authorization oAuth2Authorization)
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,OAuth2Authorization> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OAuth2Authorization update(OAuth2Authorization oAuth2Authorization)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OAuth2Authorization update(OAuth2Authorization oAuth2Authorization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OAuth2Authorization> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuth2Authorization findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization[] findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization 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<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDpublic static java.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, 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 OAuth2AuthorizationModelImpl
.
oAuth2ApplicationId
- the o auth2 application IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
oAuth2ApplicationId
- the o auth2 application IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
oAuth2ApplicationId
- the o auth2 application IDstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuth2Authorization findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization findByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization[] findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationoAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static void removeByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDpublic static int countByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDpublic static java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashpublic static java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuth2Authorization findByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization findByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization[] findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationcompanyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static void removeByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashpublic static int countByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashpublic static java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashpublic static java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuth2Authorization findByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization findByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization[] findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationcompanyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static void removeByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashpublic static int countByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashpublic static java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentpublic static java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuth2Authorization findByU_O_R_First(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByU_O_R_First(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization findByU_O_R_Last(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization fetchByU_O_R_Last(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundpublic static OAuth2Authorization[] findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationuserId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static void removeByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentpublic static int countByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentpublic static void cacheResult(OAuth2Authorization oAuth2Authorization)
oAuth2Authorization
- the o auth2 authorizationpublic static void cacheResult(java.util.List<OAuth2Authorization> oAuth2Authorizations)
oAuth2Authorizations
- the o auth2 authorizationspublic static OAuth2Authorization create(long oAuth2AuthorizationId)
oAuth2AuthorizationId
- the primary key for the new o auth2 authorizationpublic static OAuth2Authorization remove(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationNoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static OAuth2Authorization updateImpl(OAuth2Authorization oAuth2Authorization)
public static OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
NoSuchOAuth2AuthorizationException
if it could not be found.oAuth2AuthorizationId
- the primary key of the o auth2 authorizationNoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundpublic static OAuth2Authorization fetchByPrimaryKey(long oAuth2AuthorizationId)
null
if it could not be found.oAuth2AuthorizationId
- the primary key of the o auth2 authorizationnull
if a o auth2 authorization with the primary key could not be foundpublic static java.util.List<OAuth2Authorization> findAll()
public static java.util.List<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public static java.util.List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getOAuth2ScopeGrantPrimaryKeys(long pk)
pk
- the primary key of the o auth2 authorizationpublic static java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk)
pk
- the primary key of the o auth2 scope grantpublic static java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, 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 OAuth2AuthorizationModelImpl
.
pk
- the primary key of the o auth2 scope grantstart
- the lower bound of the range of o auth2 scope grantsend
- the upper bound of the range of o auth2 scope grants (not inclusive)public static java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
.
pk
- the primary key of the o auth2 scope grantstart
- the lower bound of the range of o auth2 scope grantsend
- the upper bound of the range of o auth2 scope grants (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getOAuth2ScopeGrantsSize(long pk)
pk
- the primary key of the o auth2 authorizationpublic static boolean containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
true
if the o auth2 scope grant is associated with the o auth2 authorization.pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope granttrue
if the o auth2 scope grant is associated with the o auth2 authorization; false
otherwisepublic static boolean containsOAuth2ScopeGrants(long pk)
true
if the o auth2 authorization has any o auth2 scope grants associated with it.pk
- the primary key of the o auth2 authorization to check for associations with o auth2 scope grantstrue
if the o auth2 authorization has any o auth2 scope grants associated with it; false
otherwisepublic static void addOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope grantpublic static void addOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrant
- the o auth2 scope grantpublic static void addOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs
- the primary keys of the o auth2 scope grantspublic static void addOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grantspublic static void clearOAuth2ScopeGrants(long pk)
pk
- the primary key of the o auth2 authorization to clear the associated o auth2 scope grants frompublic static void removeOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope grantpublic static void removeOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrant
- the o auth2 scope grantpublic static void removeOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs
- the primary keys of the o auth2 scope grantspublic static void removeOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grantspublic static void setOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs
- the primary keys of the o auth2 scope grants to be associated with the o auth2 authorizationpublic static void setOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grants to be associated with the o auth2 authorizationpublic static OAuth2AuthorizationPersistence getPersistence()