@ProviderType public interface OAuth2ScopeGrantPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>
Caching information and settings can be found in portal.properties
com.liferay.oauth2.provider.service.persistence.impl.OAuth2ScopeGrantPersistenceImpl
,
OAuth2ScopeGrantUtil
Modifier and Type | Method and Description |
---|---|
void |
addOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Adds an association between the o auth2 scope grant and the o auth2 authorization.
|
void |
addOAuth2Authorization(long pk,
OAuth2Authorization oAuth2Authorization)
Adds an association between the o auth2 scope grant and the o auth2 authorization.
|
void |
addOAuth2Authorizations(long pk,
java.util.List<OAuth2Authorization> oAuth2Authorizations)
Adds an association between the o auth2 scope grant and the o auth2 authorizations.
|
void |
addOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Adds an association between the o auth2 scope grant and the o auth2 authorizations.
|
void |
cacheResult(java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Caches the o auth2 scope grants in the entity cache if it is enabled.
|
void |
cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
Caches the o auth2 scope grant in the entity cache if it is enabled.
|
void |
clearOAuth2Authorizations(long pk)
Clears all associations between the o auth2 scope grant and its o auth2 authorizations.
|
boolean |
containsOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Returns
true if the o auth2 authorization is associated with the o auth2 scope grant. |
boolean |
containsOAuth2Authorizations(long pk)
Returns
true if the o auth2 scope grant has any o auth2 authorizations associated with it. |
int |
countAll()
Returns the number of o auth2 scope grants.
|
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 = ?.
|
int |
countByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Returns the number of o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
OAuth2ScopeGrant |
create(long oAuth2ScopeGrantId)
Creates a new o auth2 scope grant with the primary key.
|
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. |
OAuth2ScopeGrant |
fetchByC_O_A_B_S(long companyId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String applicationName,
java.lang.String bundleSymbolicName,
java.lang.String scope,
boolean retrieveFromCache)
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. |
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 = ?.
|
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 = ?.
|
OAuth2ScopeGrant |
fetchByPrimaryKey(long oAuth2ScopeGrantId)
Returns the o auth2 scope grant with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,OAuth2ScopeGrant> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<OAuth2ScopeGrant> |
findAll()
Returns all the o auth2 scope grants.
|
java.util.List<OAuth2ScopeGrant> |
findAll(int start,
int end)
Returns a range of all the o auth2 scope grants.
|
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.
|
java.util.List<OAuth2ScopeGrant> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 scope grants.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Returns all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId,
int start,
int end)
Returns a range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
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 = ?.
|
java.util.List<OAuth2ScopeGrant> |
findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.
|
OAuth2ScopeGrant |
findByPrimaryKey(long oAuth2ScopeGrantId)
Returns the o auth2 scope grant with the primary key or throws a
NoSuchOAuth2ScopeGrantException if it could not be found. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
long[] |
getOAuth2AuthorizationPrimaryKeys(long pk)
Returns the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant.
|
java.util.List<OAuth2Authorization> |
getOAuth2Authorizations(long pk)
Returns all the o auth2 authorizations associated with the o auth2 scope grant.
|
java.util.List<OAuth2Authorization> |
getOAuth2Authorizations(long pk,
int start,
int end)
Returns a range of all the o auth2 authorizations associated with the o auth2 scope grant.
|
java.util.List<OAuth2Authorization> |
getOAuth2Authorizations(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations associated with the o auth2 scope grant.
|
int |
getOAuth2AuthorizationsSize(long pk)
Returns the number of o auth2 authorizations associated with the o auth2 scope grant.
|
OAuth2ScopeGrant |
remove(long oAuth2ScopeGrantId)
Removes the o auth2 scope grant with the primary key from the database.
|
void |
removeAll()
Removes all the o auth2 scope grants from the database.
|
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.
|
void |
removeByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
Removes all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ? from the database.
|
void |
removeOAuth2Authorization(long pk,
long oAuth2AuthorizationPK)
Removes the association between the o auth2 scope grant and the o auth2 authorization.
|
void |
removeOAuth2Authorization(long pk,
OAuth2Authorization oAuth2Authorization)
Removes the association between the o auth2 scope grant and the o auth2 authorization.
|
void |
removeOAuth2Authorizations(long pk,
java.util.List<OAuth2Authorization> oAuth2Authorizations)
Removes the association between the o auth2 scope grant and the o auth2 authorizations.
|
void |
removeOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Removes the association between the o auth2 scope grant and the o auth2 authorizations.
|
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.
|
void |
setOAuth2Authorizations(long pk,
long[] oAuth2AuthorizationPKs)
Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.
|
OAuth2ScopeGrant |
updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDjava.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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2ScopeGrantModelImpl
. 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.
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)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2ScopeGrantModelImpl
. 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.
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
)java.util.List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
. 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.
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
)retrieveFromCache
- whether to retrieve from the finder cacheOAuth2ScopeGrant 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 foundOAuth2ScopeGrant 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 foundOAuth2ScopeGrant 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 foundOAuth2ScopeGrant 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 foundOAuth2ScopeGrant[] 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 foundvoid removeByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDint countByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
oAuth2ApplicationScopeAliasesId
- the o auth2 application scope aliases IDOAuth2ScopeGrant 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 foundOAuth2ScopeGrant 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 foundOAuth2ScopeGrant fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, java.lang.String applicationName, java.lang.String bundleSymbolicName, java.lang.String scope, boolean retrieveFromCache)
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 scoperetrieveFromCache
- whether to retrieve from the finder cachenull
if a matching o auth2 scope grant could not be foundOAuth2ScopeGrant 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
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 scopevoid cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
oAuth2ScopeGrant
- the o auth2 scope grantvoid cacheResult(java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
oAuth2ScopeGrants
- the o auth2 scope grantsOAuth2ScopeGrant create(long oAuth2ScopeGrantId)
oAuth2ScopeGrantId
- the primary key for the new o auth2 scope grantOAuth2ScopeGrant 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 foundOAuth2ScopeGrant updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant)
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 foundOAuth2ScopeGrant 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 foundjava.util.Map<java.io.Serializable,OAuth2ScopeGrant> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>
java.util.List<OAuth2ScopeGrant> findAll()
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2ScopeGrantModelImpl
. 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 scope grantsend
- the upper bound of the range of o auth2 scope grants (not inclusive)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuth2ScopeGrantModelImpl
. 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 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
)java.util.List<OAuth2ScopeGrant> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> 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 OAuth2ScopeGrantModelImpl
. 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 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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
long[] getOAuth2AuthorizationPrimaryKeys(long pk)
pk
- the primary key of the o auth2 scope grantjava.util.List<OAuth2Authorization> getOAuth2Authorizations(long pk)
pk
- the primary key of the o auth2 scope grantjava.util.List<OAuth2Authorization> getOAuth2Authorizations(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 OAuth2ScopeGrantModelImpl
. 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)java.util.List<OAuth2Authorization> getOAuth2Authorizations(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 OAuth2ScopeGrantModelImpl
. 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
)int getOAuth2AuthorizationsSize(long pk)
pk
- the primary key of the o auth2 scope grantboolean 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
otherwiseboolean 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
otherwisevoid addOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPK
- the primary key of the o auth2 authorizationvoid addOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
pk
- the primary key of the o auth2 scope grantoAuth2Authorization
- the o auth2 authorizationvoid addOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs
- the primary keys of the o auth2 authorizationsvoid addOAuth2Authorizations(long pk, java.util.List<OAuth2Authorization> oAuth2Authorizations)
pk
- the primary key of the o auth2 scope grantoAuth2Authorizations
- the o auth2 authorizationsvoid clearOAuth2Authorizations(long pk)
pk
- the primary key of the o auth2 scope grant to clear the associated o auth2 authorizations fromvoid removeOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPK
- the primary key of the o auth2 authorizationvoid removeOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
pk
- the primary key of the o auth2 scope grantoAuth2Authorization
- the o auth2 authorizationvoid removeOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
pk
- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs
- the primary keys of the o auth2 authorizationsvoid removeOAuth2Authorizations(long pk, java.util.List<OAuth2Authorization> oAuth2Authorizations)
pk
- the primary key of the o auth2 scope grantoAuth2Authorizations
- the o auth2 authorizationsvoid 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 grantvoid 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 grantjava.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>