public class OAuth2ScopeGrantUtil
extends java.lang.Object
com.liferay.oauth2.provider.service.persistence.impl.OAuth2ScopeGrantPersistenceImpl
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
OAuth2ScopeGrantPersistence
Constructor and Description |
---|
OAuth2ScopeGrantUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Adds an association between the o auth2 scope grant and the o auth2 authorization.
|
static void |
addOAuth2Authorization(long pk,
OAuth2Authorization oAuth2Authorization)
Adds an association between the o auth2 scope grant and the o auth2 authorization.
|
static void |
addOAuth2Authorizations(long pk,
java.util.List<OAuth2Authorization> oAuth2Authorizations)
Adds an association between the o auth2 scope grant and the o auth2 authorizations.
|
static void |
addOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Adds an association between the o auth2 scope grant and the o auth2 authorizations.
|
static void |
cacheResult(java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Caches the o auth2 scope grants in the entity cache if it is enabled.
|
static void |
cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
Caches the o auth2 scope grant in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OAuth2ScopeGrant oAuth2ScopeGrant) |
static void |
clearOAuth2Authorizations(long pk)
Clears all associations between the o auth2 scope grant and its o auth2 authorizations.
|
static boolean |
containsOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Returns
true if the o auth2 authorization is associated with the o auth2 scope grant. |
static boolean |
containsOAuth2Authorizations(long pk)
Returns
true if the o auth2 scope grant has any o auth2 authorizations associated with it. |
static int |
countAll()
Returns the number of o auth2 scope grants.
|
static int |
countByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope)
Returns the number of o auth2 scope grants where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ?.
|
static int |
countByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Returns the number of o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OAuth2ScopeGrant |
create(long oAuth2ScopeGrantId)
Creates a new o auth2 scope grant with the primary key.
|
static OAuth2ScopeGrant |
fetchByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope)
Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returns
null if it could not be found. |
static OAuth2ScopeGrant |
fetchByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope,
boolean useFinderCache)
Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returns
null if it could not be found, optionally using the finder cache. |
static OAuth2ScopeGrant |
fetchByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns the first o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
|
static OAuth2ScopeGrant |
fetchByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns the last o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
|
static OAuth2ScopeGrant |
fetchByPrimaryKey(long oAuth2ScopeGrantId)
Returns the o auth2 scope grant with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OAuth2ScopeGrant> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<OAuth2ScopeGrant> |
findAll()
Returns all the o auth2 scope grants.
|
static java.util.List<OAuth2ScopeGrant> |
findAll(int start,
int end)
Returns a range of all the o auth2 scope grants.
|
static java.util.List<OAuth2ScopeGrant> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns an ordered range of all the o auth2 scope grants.
|
static java.util.List<OAuth2ScopeGrant> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 scope grants.
|
static OAuth2ScopeGrant |
findByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope)
Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or throws a
NoSuchOAuth2ScopeGrantException if it could not be found. |
static OAuth2ScopeGrant |
findByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns the first o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
|
static OAuth2ScopeGrant |
findByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns the last o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
|
static OAuth2ScopeGrant[] |
findByOAuth2ApplicationScopeAliasesId_PrevAndNext(long oAuth2ScopeGrantId,
long oAuth2ApplicationScopeAliasesId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns the o auth2 scope grants before and after the current o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
|
static java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Returns all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
static java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId,
int start,
int end)
Returns a range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
static java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns an ordered range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
static java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
static OAuth2ScopeGrant |
findByPrimaryKey(long oAuth2ScopeGrantId)
Returns the o auth2 scope grant with the primary key or throws a
NoSuchOAuth2ScopeGrantException if it could not be found. |
static java.util.List<OAuth2ScopeGrant> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OAuth2ScopeGrant> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OAuth2ScopeGrant> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) |
static java.util.List<OAuth2ScopeGrant> |
getOAuth2AuthorizationOAuth2ScopeGrants(long pk)
Returns all the o auth2 scope grant associated with the o auth2 authorization.
|
static java.util.List<OAuth2ScopeGrant> |
getOAuth2AuthorizationOAuth2ScopeGrants(long pk,
int start,
int end)
Returns all the o auth2 scope grant associated with the o auth2 authorization.
|
static java.util.List<OAuth2ScopeGrant> |
getOAuth2AuthorizationOAuth2ScopeGrants(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
Returns all the o auth2 scope grant associated with the o auth2 authorization.
|
static long[] |
getOAuth2AuthorizationPrimaryKeys(long pk)
Returns the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant.
|
static int |
getOAuth2AuthorizationsSize(long pk)
Returns the number of o auth2 authorizations associated with the o auth2 scope grant.
|
static OAuth2ScopeGrantPersistence |
getPersistence() |
static OAuth2ScopeGrant |
remove(long oAuth2ScopeGrantId)
Removes the o auth2 scope grant with the primary key from the database.
|
static void |
removeAll()
Removes all the o auth2 scope grants from the database.
|
static OAuth2ScopeGrant |
removeByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope)
Removes the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? from the database.
|
static void |
removeByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Removes all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ? from the database.
|
static void |
removeOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Removes the association between the o auth2 scope grant and the o auth2 authorization.
|
static void |
removeOAuth2Authorization(long pk,
OAuth2Authorization oAuth2Authorization)
Removes the association between the o auth2 scope grant and the o auth2 authorization.
|
static void |
removeOAuth2Authorizations(long pk,
java.util.List<OAuth2Authorization> oAuth2Authorizations)
Removes the association between the o auth2 scope grant and the o auth2 authorizations.
|
static void |
removeOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Removes the association between the o auth2 scope grant and the o auth2 authorizations.
|
static void |
setOAuth2Authorizations(long pk,
java.util.List<OAuth2Authorization> oAuth2Authorizations)
Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.
|
static void |
setOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.
|
static OAuth2ScopeGrant |
update(OAuth2ScopeGrant oAuth2ScopeGrant) |
static OAuth2ScopeGrant |
update(OAuth2ScopeGrant oAuth2ScopeGrant,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuth2ScopeGrant |
updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OAuth2ScopeGrant oAuth2ScopeGrant)
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,OAuth2ScopeGrant> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OAuth2ScopeGrant update(OAuth2ScopeGrant oAuth2ScopeGrant)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OAuth2ScopeGrant update(OAuth2ScopeGrant oAuth2ScopeGrant, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDpublic static java.util.List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, 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 OAuth2ScopeGrantModelImpl
.
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDstart
- 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<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDstart
- 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 java.util.List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDstart
- 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
)useFinderCache
- whether to use the finder cachepublic static OAuth2ScopeGrant findByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ScopeGrantException
- if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant fetchByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant findByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ScopeGrantException
- if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant fetchByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant[] findByOAuth2ApplicationScopeAliasesId_PrevAndNext(long oAuth2ScopeGrantId, long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException
oAuth2ScopeGrantId
- the primary key of the current o auth2 scope grantoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ScopeGrantException
- if a o auth2 scope grant with the primary key could not be foundpublic static void removeByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDpublic static int countByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDpublic static OAuth2ScopeGrant findByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope) throws NoSuchOAuth2ScopeGrantException
NoSuchOAuth2ScopeGrantException
if it could not be found.companyId
- the company IDoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDapplicationName
- the application namebundleSymbolicName
- the bundle symbolic namescope
- the scopeNoSuchOAuth2ScopeGrantException
- if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope)
null
if it could not be found. Uses the finder cache.companyId
- the company IDoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDapplicationName
- the application namebundleSymbolicName
- the bundle symbolic namescope
- the scopenull
if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDapplicationName
- the application namebundleSymbolicName
- the bundle symbolic namescope
- the scopeuseFinderCache
- whether to use the finder cachenull
if a matching o auth2 scope grant could not be foundpublic static OAuth2ScopeGrant removeByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope) throws NoSuchOAuth2ScopeGrantException
companyId
- the company IDoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDapplicationName
- the application namebundleSymbolicName
- the bundle symbolic namescope
- the scopeNoSuchOAuth2ScopeGrantException
public static int countByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope)
companyId
- the company IDoAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDapplicationName
- the application namebundleSymbolicName
- the bundle symbolic namescope
- the scopepublic static void cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
oAuth2ScopeGrant
- the o auth2 scope grantpublic static void cacheResult(java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
oAuth2ScopeGrants
- the o auth2 scope grantspublic static OAuth2ScopeGrant create(long oAuth2ScopeGrantId)
oAuth2ScopeGrantId
- the primary key for the new o auth2 scope grantpublic static OAuth2ScopeGrant remove(long oAuth2ScopeGrantId) throws NoSuchOAuth2ScopeGrantException
oAuth2ScopeGrantId
- the primary key of the o auth2 scope grantNoSuchOAuth2ScopeGrantException
- if a o auth2 scope grant with the primary key could not be foundpublic static OAuth2ScopeGrant updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant)
public static OAuth2ScopeGrant findByPrimaryKey(long oAuth2ScopeGrantId) throws NoSuchOAuth2ScopeGrantException
NoSuchOAuth2ScopeGrantException
if it could not be found.oAuth2ScopeGrantId
- the primary key of the o auth2 scope grantNoSuchOAuth2ScopeGrantException
- if a o auth2 scope grant with the primary key could not be foundpublic static OAuth2ScopeGrant fetchByPrimaryKey(long oAuth2ScopeGrantId)
null
if it could not be found.oAuth2ScopeGrantId
- the primary key of the o auth2 scope grantnull
if a o auth2 scope grant with the primary key could not be foundpublic static java.util.List<OAuth2ScopeGrant> findAll()
public static java.util.List<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
start
- 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<OAuth2ScopeGrant> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
start
- 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 java.util.List<OAuth2ScopeGrant> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
start
- 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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getOAuth2AuthorizationPrimaryKeys(long pk)
pk
- the primary key of the o auth2 scope grantpublic static java.util.List<OAuth2ScopeGrant> getOAuth2AuthorizationOAuth2ScopeGrants(long pk)
pk
- the primary key of the o auth2 authorizationpublic static java.util.List<OAuth2ScopeGrant> getOAuth2AuthorizationOAuth2ScopeGrants(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 OAuth2ScopeGrantModelImpl
.
pk
- the primary key of the o auth2 authorizationstart
- 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<OAuth2ScopeGrant> getOAuth2AuthorizationOAuth2ScopeGrants(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
.
pk
- the primary key of the o auth2 authorizationstart
- 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 int getOAuth2AuthorizationsSize(long pk)
pk
- the primary key of the o auth2 scope grantpublic static boolean containsOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
true
if the o auth2 authorization is associated with the o auth2 scope grant.pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPK
- the primary key of the o auth2 authorizationtrue
if the o auth2 authorization is associated with the o auth2 scope grant; false
otherwisepublic static boolean containsOAuth2Authorizations(long pk)
true
if the o auth2 scope grant has any o auth2 authorizations associated with it.pk
- the primary key of the o auth2 scope grant to check for associations with o auth2 authorizationstrue
if the o auth2 scope grant has any o auth2 authorizations associated with it; false
otherwisepublic static void addOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPK
- the primary key of the o auth2 authorizationpublic static void addOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
pk
- the primary key of the o auth2 scope grantoAuth2Authorization
- the o auth2 authorizationpublic static void addOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs
- the primary keys of the o auth2 authorizationspublic static void addOAuth2Authorizations(long pk, java.util.List<OAuth2Authorization> oAuth2Authorizations)
pk
- the primary key of the o auth2 scope grantoAuth2Authorizations
- the o auth2 authorizationspublic static void clearOAuth2Authorizations(long pk)
pk
- the primary key of the o auth2 scope grant to clear the associated o auth2 authorizations frompublic static void removeOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPK
- the primary key of the o auth2 authorizationpublic static void removeOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
pk
- the primary key of the o auth2 scope grantoAuth2Authorization
- the o auth2 authorizationpublic static void removeOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs
- the primary keys of the o auth2 authorizationspublic static void removeOAuth2Authorizations(long pk, java.util.List<OAuth2Authorization> oAuth2Authorizations)
pk
- the primary key of the o auth2 scope grantoAuth2Authorizations
- the o auth2 authorizationspublic static void setOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs
- the primary keys of the o auth2 authorizations to be associated with the o auth2 scope grantpublic static void setOAuth2Authorizations(long pk, java.util.List<OAuth2Authorization> oAuth2Authorizations)
pk
- the primary key of the o auth2 scope grantoAuth2Authorizations
- the o auth2 authorizations to be associated with the o auth2 scope grantpublic static OAuth2ScopeGrantPersistence getPersistence()