@ProviderType
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 |
countByAccessTokenContentHash(long accessTokenContentHash)
Returns the number of o auth2 authorizations where accessTokenContentHash = ?.
|
static int |
countByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
|
static int |
countByRefreshTokenContentHash(long refreshTokenContentHash)
Returns the number of o auth2 authorizations where refreshTokenContentHash = ?.
|
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 |
fetchByAccessTokenContentHash_First(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByAccessTokenContentHash_Last(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
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 |
fetchByRefreshTokenContentHash_First(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
static OAuth2Authorization |
fetchByRefreshTokenContentHash_Last(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
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 retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations.
|
static OAuth2Authorization |
findByAccessTokenContentHash_First(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
static OAuth2Authorization |
findByAccessTokenContentHash_Last(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
static OAuth2Authorization[] |
findByAccessTokenContentHash_PrevAndNext(long oAuth2AuthorizationId,
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 accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash)
Returns all the o auth2 authorizations where accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(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 accessTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where accessTokenContentHash = ?.
|
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 retrieveFromCache)
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 |
findByRefreshTokenContentHash_First(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
static OAuth2Authorization |
findByRefreshTokenContentHash_Last(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
static OAuth2Authorization[] |
findByRefreshTokenContentHash_PrevAndNext(long oAuth2AuthorizationId,
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 refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash)
Returns all the o auth2 authorizations where refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(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 refreshTokenContentHash = ?.
|
static java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where refreshTokenContentHash = ?.
|
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 retrieveFromCache)
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 |
removeByAccessTokenContentHash(long accessTokenContentHash)
Removes all the o auth2 authorizations where accessTokenContentHash = ? from the database.
|
static void |
removeByOAuth2ApplicationId(long oAuth2ApplicationId)
Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
|
static void |
removeByRefreshTokenContentHash(long refreshTokenContentHash)
Removes all the o auth2 authorizations where refreshTokenContentHash = ? 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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 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 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 OAuth2AuthorizationModelImpl
. 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 auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
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 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 OAuth2AuthorizationModelImpl
. 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.
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
)retrieveFromCache
- whether to retrieve from 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> findByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashpublic static java.util.List<OAuth2Authorization> findByAccessTokenContentHash(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
accessTokenContentHash
- 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> findByAccessTokenContentHash(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
accessTokenContentHash
- 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> findByAccessTokenContentHash(long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
. 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.
accessTokenContentHash
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static OAuth2Authorization findByAccessTokenContentHash_First(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
accessTokenContentHash
- 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 fetchByAccessTokenContentHash_First(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
accessTokenContentHash
- 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 findByAccessTokenContentHash_Last(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
accessTokenContentHash
- 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 fetchByAccessTokenContentHash_Last(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
accessTokenContentHash
- 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[] findByAccessTokenContentHash_PrevAndNext(long oAuth2AuthorizationId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationaccessTokenContentHash
- 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 removeByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashpublic static int countByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashpublic static java.util.List<OAuth2Authorization> findByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashpublic static java.util.List<OAuth2Authorization> findByRefreshTokenContentHash(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
refreshTokenContentHash
- 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> findByRefreshTokenContentHash(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
refreshTokenContentHash
- 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> findByRefreshTokenContentHash(long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> 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 OAuth2AuthorizationModelImpl
. 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.
refreshTokenContentHash
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static OAuth2Authorization findByRefreshTokenContentHash_First(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
refreshTokenContentHash
- 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 fetchByRefreshTokenContentHash_First(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
refreshTokenContentHash
- 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 findByRefreshTokenContentHash_Last(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
refreshTokenContentHash
- 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 fetchByRefreshTokenContentHash_Last(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
refreshTokenContentHash
- 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[] findByRefreshTokenContentHash_PrevAndNext(long oAuth2AuthorizationId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationrefreshTokenContentHash
- 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 removeByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashpublic static int countByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashpublic 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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 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 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 OAuth2AuthorizationModelImpl
. 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 auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (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 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
. 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.
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()