Interface OAuth2ScopeGrantPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>

@ProviderType public interface OAuth2ScopeGrantPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2ScopeGrant>
The persistence interface for the o auth2 scope grant service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addOAuth2Authorization(long pk, long oAuth2AuthorizationPK)
    Adds an association between the o auth2 scope grant and the o auth2 authorization.
    boolean
    addOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
    Adds an association between the o auth2 scope grant and the o auth2 authorization.
    boolean
    addOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
    Adds an association between the o auth2 scope grant and the o auth2 authorizations.
    boolean
    addOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations)
    Adds an association between the o auth2 scope grant and the o auth2 authorizations.
    void
    cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
    Caches the o auth2 scope grant in the entity cache if it is enabled.
    void
    cacheResult(List<OAuth2ScopeGrant> oAuth2ScopeGrants)
    Caches the o auth2 scope grants in the entity cache if it is enabled.
    void
    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
    Returns true if the o auth2 scope grant has any o auth2 authorizations associated with it.
    int
    Returns the number of o auth2 scope grants.
    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 = ?.
    int
    countByOAuth2ApplicationScopeAliasesId(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 returns null if 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 returns null if 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 returns null if it could not be found.
    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 a NoSuchOAuth2ScopeGrantException if 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 a NoSuchOAuth2ScopeGrantException if 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[]
    Returns the primaryKeys of o auth2 authorizations associated with the o auth2 scope grant.
    int
    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.
    void
    Removes 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.
    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, long[] oAuth2AuthorizationPKs)
    Removes the association between the o auth2 scope grant and the o auth2 authorizations.
    void
    removeOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations)
    Removes the association between the o auth2 scope grant and the o auth2 authorizations.
    void
    setOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
    Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary.
    void
    setOAuth2Authorizations(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

      List<OAuth2ScopeGrant> findByOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
      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 - 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.

      Parameters:
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      start - the lower bound of the range of o auth2 scope grants
      end - 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 - 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.

      Parameters:
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      start - the lower bound of the range of o auth2 scope grants
      end - the upper bound of the range of o auth2 scope grants (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      start - the lower bound of the range of o auth2 scope grants
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 scope grant, or null if 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 scope grant, or null if 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 grant
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 a NoSuchOAuth2ScopeGrantException if it could not be found.
      Parameters:
      companyId - the company ID
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      applicationName - the application name
      bundleSymbolicName - the bundle symbolic name
      scope - 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 returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      applicationName - the application name
      bundleSymbolicName - the bundle symbolic name
      scope - the scope
      Returns:
      the matching o auth2 scope grant, or null 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, 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.
      Parameters:
      companyId - the company ID
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      applicationName - the application name
      bundleSymbolicName - the bundle symbolic name
      scope - the scope
      useFinderCache - whether to use the finder cache
      Returns:
      the matching o auth2 scope grant, or null if 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 ID
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      applicationName - the application name
      bundleSymbolicName - the bundle symbolic name
      scope - 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 ID
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID
      applicationName - the application name
      bundleSymbolicName - the bundle symbolic name
      scope - the scope
      Returns:
      the number of matching o auth2 scope grants
    • cacheResult

      void cacheResult(OAuth2ScopeGrant oAuth2ScopeGrant)
      Caches the o auth2 scope grant in the entity cache if it is enabled.
      Parameters:
      oAuth2ScopeGrant - the o auth2 scope grant
    • cacheResult

      void cacheResult(List<OAuth2ScopeGrant> oAuth2ScopeGrants)
      Caches the o auth2 scope grants in the entity cache if it is enabled.
      Parameters:
      oAuth2ScopeGrants - the o auth2 scope grants
    • create

      OAuth2ScopeGrant create(long oAuth2ScopeGrantId)
      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

      OAuth2ScopeGrant remove(long oAuth2ScopeGrantId) throws NoSuchOAuth2ScopeGrantException
      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

      OAuth2ScopeGrant updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant)
    • findByPrimaryKey

      OAuth2ScopeGrant findByPrimaryKey(long oAuth2ScopeGrantId) throws NoSuchOAuth2ScopeGrantException
      Returns the o auth2 scope grant with the primary key or throws a NoSuchOAuth2ScopeGrantException if 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

      OAuth2ScopeGrant fetchByPrimaryKey(long oAuth2ScopeGrantId)
      Returns the o auth2 scope grant with the primary key or returns null if it could not be found.
      Parameters:
      oAuth2ScopeGrantId - the primary key of the o auth2 scope grant
      Returns:
      the o auth2 scope grant, or null if a o auth2 scope grant with the primary key could not be found
    • findAll

      Returns all the o auth2 scope grants.
      Returns:
      the o auth2 scope grants
    • findAll

      List<OAuth2ScopeGrant> findAll(int start, int end)
      Returns a range of all the o auth2 scope grants.

      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.

      Parameters:
      start - the lower bound of the range of o auth2 scope grants
      end - 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 - 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.

      Parameters:
      start - the lower bound of the range of o auth2 scope grants
      end - the upper bound of the range of o auth2 scope grants (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      start - the lower bound of the range of o auth2 scope grants
      end - 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 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

      List<OAuth2ScopeGrant> getOAuth2AuthorizationOAuth2ScopeGrants(long pk)
      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

      List<OAuth2ScopeGrant> getOAuth2AuthorizationOAuth2ScopeGrants(long pk, int start, int end)
      Returns all the o auth2 scope grant associated with the o auth2 authorization.

      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.

      Parameters:
      pk - the primary key of the o auth2 authorization
      start - the lower bound of the range of o auth2 authorizations
      end - 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 - 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.

      Parameters:
      pk - the primary key of the o auth2 authorization
      start - the lower bound of the range of o auth2 authorizations
      end - the upper bound of the range of o auth2 authorizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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)
      Returns true if the o auth2 authorization is associated with the o auth2 scope grant.
      Parameters:
      pk - the primary key of the o auth2 scope grant
      oAuth2AuthorizationPK - the primary key of the o auth2 authorization
      Returns:
      true if the o auth2 authorization is associated with the o auth2 scope grant; false otherwise
    • containsOAuth2Authorizations

      boolean containsOAuth2Authorizations(long pk)
      Returns true if 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:
      true if the o auth2 scope grant has any o auth2 authorizations associated with it; false otherwise
    • 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 grant
      oAuth2AuthorizationPK - the primary key of the o auth2 authorization
      Returns:
      true if an association between the o auth2 scope grant and the o auth2 authorization was added; false if they were already associated
    • addOAuth2Authorization

      boolean addOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
      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 grant
      oAuth2Authorization - the o auth2 authorization
      Returns:
      true if an association between the o auth2 scope grant and the o auth2 authorization was added; false if 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 grant
      oAuth2AuthorizationPKs - the primary keys of the o auth2 authorizations
      Returns:
      true if at least one association between the o auth2 scope grant and the o auth2 authorizations was added; false if they were all already associated
    • addOAuth2Authorizations

      boolean addOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations)
      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 grant
      oAuth2Authorizations - the o auth2 authorizations
      Returns:
      true if at least one association between the o auth2 scope grant and the o auth2 authorizations was added; false if 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 grant
      oAuth2AuthorizationPK - the primary key of the o auth2 authorization
    • removeOAuth2Authorization

      void removeOAuth2Authorization(long pk, OAuth2Authorization oAuth2Authorization)
      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 grant
      oAuth2Authorization - 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 grant
      oAuth2AuthorizationPKs - the primary keys of the o auth2 authorizations
    • removeOAuth2Authorizations

      void removeOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations)
      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 grant
      oAuth2Authorizations - 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 grant
      oAuth2AuthorizationPKs - the primary keys of the o auth2 authorizations to be associated with the o auth2 scope grant
    • setOAuth2Authorizations

      void setOAuth2Authorizations(long pk, List<OAuth2Authorization> oAuth2Authorizations)
      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 grant
      oAuth2Authorizations - the o auth2 authorizations to be associated with the o auth2 scope grant