Class OAuth2ScopeGrantUtil

java.lang.Object
com.liferay.oauth2.provider.service.persistence.OAuth2ScopeGrantUtil

public class OAuth2ScopeGrantUtil extends Object
The persistence utility for the o auth2 scope grant service. This utility wraps com.liferay.oauth2.provider.service.persistence.impl.OAuth2ScopeGrantPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • OAuth2ScopeGrantUtil

      public OAuth2ScopeGrantUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(OAuth2ScopeGrant oAuth2ScopeGrant)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,OAuth2ScopeGrant> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<OAuth2ScopeGrant> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static OAuth2ScopeGrant update(OAuth2ScopeGrant oAuth2ScopeGrant)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static OAuth2ScopeGrant update(OAuth2ScopeGrant oAuth2ScopeGrant, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByOAuth2ApplicationScopeAliasesId

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOAuth2ScopeGrantException
    • fetchByOAuth2ApplicationScopeAliasesId_First

      public static OAuth2ScopeGrant fetchByOAuth2ApplicationScopeAliasesId_First(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
      Returns the first o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
      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

      public static 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
      NoSuchOAuth2ScopeGrantException
    • fetchByOAuth2ApplicationScopeAliasesId_Last

      public static OAuth2ScopeGrant fetchByOAuth2ApplicationScopeAliasesId_Last(long oAuth2ApplicationScopeAliasesId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ScopeGrant> orderByComparator)
      Returns the last o auth2 scope grant in the ordered set where oAuth2ApplicationScopeAliasesId = ?.
      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

      public static 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
      NoSuchOAuth2ScopeGrantException
    • removeByOAuth2ApplicationScopeAliasesId

      public static 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

      public static 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

      public static 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
      NoSuchOAuth2ScopeGrantException
    • fetchByC_O_A_B_S

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOAuth2ScopeGrantException
    • updateImpl

      public static OAuth2ScopeGrant updateImpl(OAuth2ScopeGrant oAuth2ScopeGrant)
    • findByPrimaryKey

      public static 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
      NoSuchOAuth2ScopeGrantException
    • fetchByPrimaryKey

      public static 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

      public static List<OAuth2ScopeGrant> findAll()
      Returns all the o auth2 scope grants.
      Returns:
      the o auth2 scope grants
    • findAll

      public static 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

      public static 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

      public static 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

      public static void removeAll()
      Removes all the o auth2 scope grants from the database.
    • countAll

      public static int countAll()
      Returns the number of o auth2 scope grants.
      Returns:
      the number of o auth2 scope grants
    • getOAuth2AuthorizationPrimaryKeys

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static void setOAuth2Authorizations(long pk, long[] oAuth2AuthorizationPKs)
      Sets the o auth2 authorizations associated with the o auth2 scope grant, removing and adding associations as necessary. 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

      public static 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
    • getPersistence

      public static OAuth2ScopeGrantPersistence getPersistence()
    • setPersistence

      public static void setPersistence(OAuth2ScopeGrantPersistence persistence)