Interface OAuth2ScopeGrantPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Adds an association between the o auth2 scope grant and the o auth2 authorization.booleanaddOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization) Adds an association between the o auth2 scope grant and the o auth2 authorization.booleanaddOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Adds an association between the o auth2 scope grant and the o auth2 authorizations.booleanaddOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations) Adds an association between the o auth2 scope grant and the o auth2 authorizations.voidcacheResult(OAuth2ScopeGrant oAuth2ScopeGrant) Caches the o auth2 scope grant in the entity cache if it is enabled.voidcacheResult(List<OAuth2ScopeGrant> oAuth2ScopeGrants) Caches the o auth2 scope grants in the entity cache if it is enabled.voidclearOAuth2Authorizations(long pk) Clears all associations between the o auth2 scope grant and its o auth2 authorizations.booleancontainsOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Returnstrueif the o auth2 authorization is associated with the o auth2 scope grant.booleancontainsOAuth2Authorizations(long pk) Returnstrueif the o auth2 scope grant has any o auth2 authorizations associated with it.intcountAll()Returns the number of o auth2 scope grants.intcountByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Returns the number of o auth2 scope grants where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ?.intcountByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId) Returns the number of o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.create(long oAuth2ScopeGrantId) Creates a new o auth2 scope grant with the primary key.fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returnsnullif it could not be found.fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope, boolean useFinderCache) Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returnsnullif it could not be found, optionally using the finder cache.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 = ?.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 = ?.fetchByPrimaryKey(long oAuth2ScopeGrantId) Returns the o auth2 scope grant with the primary key or returnsnullif it could not be found.findAll()Returns all the o auth2 scope grants.findAll(int start, int end) Returns a range of all the o auth2 scope grants.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) Returns an ordered range of all the o auth2 scope grants.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.findByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or throws aNoSuchOAuth2ScopeGrantExceptionif it could not be found.findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId) Returns all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, int start, int end) Returns a range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByPrimaryKey(long oAuth2ScopeGrantId) Returns the o auth2 scope grant with the primary key or throws aNoSuchOAuth2ScopeGrantExceptionif it could not be found.Returns all the o auth2 scope grant associated with the o auth2 authorization.getOAuth2AuthorizationOAuth2ScopeGrants(long pk, int start, int end) Returns all the o auth2 scope grant associated with the o auth2 authorization.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.long[]getOAuth2AuthorizationPrimaryKeys(long pk) Returns the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant.intgetOAuth2AuthorizationsSize(long pk) Returns the number of o auth2 authorizations associated with the o auth2 scope grant.remove(long oAuth2ScopeGrantId) Removes the o auth2 scope grant with the primary key from the database.voidRemoves all the o auth2 scope grants from the database.removeByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Removes the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? from the database.voidremoveByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId) Removes all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ? from the database.voidremoveOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Removes the association between the o auth2 scope grant and the o auth2 authorization.voidremoveOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization) Removes the association between the o auth2 scope grant and the o auth2 authorization.voidremoveOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Removes the association between the o auth2 scope grant and the o auth2 authorizations.voidremoveOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations) Removes the association between the o auth2 scope grant and the o auth2 authorizations.voidsetOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.voidsetOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations) Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByOAuth2ApplicationScopeAliasesId
Returns all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases ID- Returns:
- the matching o auth2 scope grants
-
findByOAuth2ApplicationScopeAliasesId
List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId, int start, int end) Returns a range of all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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)- Returns:
- the range of matching o auth2 scope grants
-
findByOAuth2ApplicationScopeAliasesId
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching o auth2 scope grants
-
findByOAuth2ApplicationScopeAliasesId
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 scope grants
-
findByOAuth2ApplicationScopeAliasesId_First
OAuth2ScopeGrant findByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException Returns the first o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 scope grant
- Throws:
NoSuchOAuth2ScopeGrantException- if a matching o auth2 scope grant could not be found
-
fetchByOAuth2ApplicationScopeAliasesId_First
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 = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 scope grant, or
nullif a matching o auth2 scope grant could not be found
-
findByOAuth2ApplicationScopeAliasesId_Last
OAuth2ScopeGrant findByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException Returns the last o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 scope grant
- Throws:
NoSuchOAuth2ScopeGrantException- if a matching o auth2 scope grant could not be found
-
fetchByOAuth2ApplicationScopeAliasesId_Last
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 = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 scope grant, or
nullif a matching o auth2 scope grant could not be found
-
findByOAuth2ApplicationScopeAliasesId_PrevAndNext
OAuth2ScopeGrant[] findByOAuth2ApplicationScopeAliasesId_PrevAndNext(long oAuth2ScopeGrantId, long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator) throws NoSuchOAuth2ScopeGrantException Returns the o auth2 scope grants before and after the current o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.- Parameters:
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 (optionallynull)- Returns:
- the previous, current, and next o auth2 scope grant
- Throws:
NoSuchOAuth2ScopeGrantException- if a o auth2 scope grant with the primary key could not be found
-
removeByOAuth2ApplicationScopeAliasesId
void removeByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId) Removes all the o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ? from the database.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases ID
-
countByOAuth2ApplicationScopeAliasesId
int countByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId) Returns the number of o auth2 scope grants where oAuth2ApplicationScopeAliasesId = ?.- Parameters:
oAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases ID- Returns:
- the number of matching o auth2 scope grants
-
findByC_O_A_B_S
OAuth2ScopeGrant findByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) throws NoSuchOAuth2ScopeGrantException Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or throws aNoSuchOAuth2ScopeGrantExceptionif it could not be found.- Parameters:
companyId- the company IDoAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDapplicationName- the application namebundleSymbolicName- the bundle symbolic namescope- the scope- Returns:
- the matching o auth2 scope grant
- Throws:
NoSuchOAuth2ScopeGrantException- if a matching o auth2 scope grant could not be found
-
fetchByC_O_A_B_S
OAuth2ScopeGrant fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDoAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDapplicationName- the application namebundleSymbolicName- the bundle symbolic namescope- the scope- Returns:
- the matching o auth2 scope grant, or
nullif a matching o auth2 scope grant could not be found
-
fetchByC_O_A_B_S
OAuth2ScopeGrant fetchByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope, boolean useFinderCache) Returns the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
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 cache- Returns:
- the matching o auth2 scope grant, or
nullif a matching o auth2 scope grant could not be found
-
removeByC_O_A_B_S
OAuth2ScopeGrant removeByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) throws NoSuchOAuth2ScopeGrantException Removes the o auth2 scope grant where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ? from the database.- Parameters:
companyId- the company IDoAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDapplicationName- the application namebundleSymbolicName- the bundle symbolic namescope- the scope- Returns:
- the o auth2 scope grant that was removed
- Throws:
NoSuchOAuth2ScopeGrantException
-
countByC_O_A_B_S
int countByC_O_A_B_S(long companyId, long oAuth2ApplicationScopeAliasesId, String applicationName, String bundleSymbolicName, String scope) Returns the number of o auth2 scope grants where companyId = ? and oAuth2ApplicationScopeAliasesId = ? and applicationName = ? and bundleSymbolicName = ? and scope = ?.- Parameters:
companyId- the company IDoAuth2ApplicationScopeAliasesId- the o auth2 application scope aliases IDapplicationName- the application namebundleSymbolicName- the bundle symbolic namescope- the scope- Returns:
- the number of matching o auth2 scope grants
-
cacheResult
Caches the o auth2 scope grant in the entity cache if it is enabled.- Parameters:
oAuth2ScopeGrant- the o auth2 scope grant
-
cacheResult
Caches the o auth2 scope grants in the entity cache if it is enabled.- Parameters:
oAuth2ScopeGrants- the o auth2 scope grants
-
create
Creates a new o auth2 scope grant with the primary key. Does not add the o auth2 scope grant to the database.- Parameters:
oAuth2ScopeGrantId- the primary key for the new o auth2 scope grant- Returns:
- the new o auth2 scope grant
-
remove
Removes the o auth2 scope grant with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
oAuth2ScopeGrantId- the primary key of the o auth2 scope grant- Returns:
- the o auth2 scope grant that was removed
- Throws:
NoSuchOAuth2ScopeGrantException- if a o auth2 scope grant with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the o auth2 scope grant with the primary key or throws aNoSuchOAuth2ScopeGrantExceptionif it could not be found.- Parameters:
oAuth2ScopeGrantId- the primary key of the o auth2 scope grant- Returns:
- the o auth2 scope grant
- Throws:
NoSuchOAuth2ScopeGrantException- if a o auth2 scope grant with the primary key could not be found
-
fetchByPrimaryKey
Returns the o auth2 scope grant with the primary key or returnsnullif it could not be found.- Parameters:
oAuth2ScopeGrantId- the primary key of the o auth2 scope grant- Returns:
- the o auth2 scope grant, or
nullif a o auth2 scope grant with the primary key could not be found
-
findAll
List<OAuth2ScopeGrant> findAll()Returns all the o auth2 scope grants.- Returns:
- the o auth2 scope grants
-
findAll
Returns a range of all the o auth2 scope grants.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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)- Returns:
- the range of o auth2 scope grants
-
findAll
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of o auth2 scope grants
-
findAll
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of o auth2 scope grants
-
removeAll
void removeAll()Removes all the o auth2 scope grants from the database. -
countAll
int countAll()Returns the number of o auth2 scope grants.- Returns:
- the number of o auth2 scope grants
-
getOAuth2AuthorizationPrimaryKeys
long[] getOAuth2AuthorizationPrimaryKeys(long pk) Returns the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant.- Parameters:
pk- the primary key of the o auth2 scope grant- Returns:
- long[] of the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant
-
getOAuth2AuthorizationOAuth2ScopeGrants
Returns all the o auth2 scope grant associated with the o auth2 authorization.- Parameters:
pk- the primary key of the o auth2 authorization- Returns:
- the o auth2 scope grants associated with the o auth2 authorization
-
getOAuth2AuthorizationOAuth2ScopeGrants
Returns all the o auth2 scope grant associated with the o auth2 authorization.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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)- Returns:
- the range of o auth2 scope grants associated with the o auth2 authorization
-
getOAuth2AuthorizationOAuth2ScopeGrants
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2ScopeGrantModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of o auth2 scope grants associated with the o auth2 authorization
-
getOAuth2AuthorizationsSize
int getOAuth2AuthorizationsSize(long pk) Returns the number of o auth2 authorizations associated with the o auth2 scope grant.- Parameters:
pk- the primary key of the o auth2 scope grant- Returns:
- the number of o auth2 authorizations associated with the o auth2 scope grant
-
containsOAuth2Authorization
boolean containsOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Returnstrueif the o auth2 authorization is associated with the o auth2 scope grant.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2AuthorizationPK- the primary key of the o auth2 authorization- Returns:
trueif the o auth2 authorization is associated with the o auth2 scope grant;falseotherwise
-
containsOAuth2Authorizations
boolean containsOAuth2Authorizations(long pk) Returnstrueif the o auth2 scope grant has any o auth2 authorizations associated with it.- Parameters:
pk- the primary key of the o auth2 scope grant to check for associations with o auth2 authorizations- Returns:
trueif the o auth2 scope grant has any o auth2 authorizations associated with it;falseotherwise
-
addOAuth2Authorization
boolean addOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Adds an association between the o auth2 scope grant and the o auth2 authorization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2AuthorizationPK- the primary key of the o auth2 authorization- Returns:
trueif an association between the o auth2 scope grant and the o auth2 authorization was added;falseif they were already associated
-
addOAuth2Authorization
Adds an association between the o auth2 scope grant and the o auth2 authorization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2Authorization- the o auth2 authorization- Returns:
trueif an association between the o auth2 scope grant and the o auth2 authorization was added;falseif they were already associated
-
addOAuth2Authorizations
boolean addOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Adds an association between the o auth2 scope grant and the o auth2 authorizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs- the primary keys of the o auth2 authorizations- Returns:
trueif at least one association between the o auth2 scope grant and the o auth2 authorizations was added;falseif they were all already associated
-
addOAuth2Authorizations
Adds an association between the o auth2 scope grant and the o auth2 authorizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2Authorizations- the o auth2 authorizations- Returns:
trueif at least one association between the o auth2 scope grant and the o auth2 authorizations was added;falseif they were all already associated
-
clearOAuth2Authorizations
void clearOAuth2Authorizations(long pk) Clears all associations between the o auth2 scope grant and its o auth2 authorizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grant to clear the associated o auth2 authorizations from
-
removeOAuth2Authorization
void removeOAuth2Authorization(long pk, long oAuth2AuthorizationPK) Removes the association between the o auth2 scope grant and the o auth2 authorization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2AuthorizationPK- the primary key of the o auth2 authorization
-
removeOAuth2Authorization
Removes the association between the o auth2 scope grant and the o auth2 authorization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2Authorization- the o auth2 authorization
-
removeOAuth2Authorizations
void removeOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Removes the association between the o auth2 scope grant and the o auth2 authorizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2AuthorizationPKs- the primary keys of the o auth2 authorizations
-
removeOAuth2Authorizations
Removes the association between the o auth2 scope grant and the o auth2 authorizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2Authorizations- the o auth2 authorizations
-
setOAuth2Authorizations
void setOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs) Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
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 grant
-
setOAuth2Authorizations
Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 scope grantoAuth2Authorizations- the o auth2 authorizations to be associated with the o auth2 scope grant
-