Class OAuth2AuthorizationUtil

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

public class OAuth2AuthorizationUtil extends Object
The persistence utility for the o auth2 authorization service. This utility wraps com.liferay.oauth2.provider.service.persistence.impl.OAuth2AuthorizationPersistenceImpl 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

    • OAuth2AuthorizationUtil

      public OAuth2AuthorizationUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(OAuth2Authorization oAuth2Authorization)
      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,OAuth2Authorization> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static OAuth2Authorization update(OAuth2Authorization oAuth2Authorization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUserId

      public static List<OAuth2Authorization> findByUserId(long userId)
      Returns all the o auth2 authorizations where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching o auth2 authorizations
    • findByUserId

      public static List<OAuth2Authorization> findByUserId(long userId, int start, int end)
      Returns a range of all the o auth2 authorizations where userId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      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 matching o auth2 authorizations
    • findByUserId

      public static List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations where userId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      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 matching o auth2 authorizations
    • findByUserId

      public static List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations where userId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching o auth2 authorizations
    • findByUserId_First

      public static OAuth2Authorization findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the first o auth2 authorization in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByUserId_First

      public static OAuth2Authorization fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the first o auth2 authorization in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByUserId_Last

      public static OAuth2Authorization findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the last o auth2 authorization in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByUserId_Last

      public static OAuth2Authorization fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the last o auth2 authorization in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByUserId_PrevAndNext

      public static OAuth2Authorization[] findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?.
      Parameters:
      oAuth2AuthorizationId - the primary key of the current o auth2 authorization
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the o auth2 authorizations where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static int countByUserId(long userId)
      Returns the number of o auth2 authorizations where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching o auth2 authorizations
    • findByOAuth2ApplicationId

      public static List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId)
      Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      Returns:
      the matching o auth2 authorizations
    • findByOAuth2ApplicationId

      public static List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end)
      Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      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 matching o auth2 authorizations
    • findByOAuth2ApplicationId

      public static List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      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 matching o auth2 authorizations
    • findByOAuth2ApplicationId

      public static List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching o auth2 authorizations
    • findByOAuth2ApplicationId_First

      public static OAuth2Authorization findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByOAuth2ApplicationId_First

      public static OAuth2Authorization fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByOAuth2ApplicationId_Last

      public static OAuth2Authorization findByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByOAuth2ApplicationId_Last

      public static OAuth2Authorization fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByOAuth2ApplicationId_PrevAndNext

      public static OAuth2Authorization[] findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2AuthorizationId - the primary key of the current o auth2 authorization
      oAuth2ApplicationId - the o auth2 application ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • removeByOAuth2ApplicationId

      public static void removeByOAuth2ApplicationId(long oAuth2ApplicationId)
      Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
    • countByOAuth2ApplicationId

      public static int countByOAuth2ApplicationId(long oAuth2ApplicationId)
      Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID
      Returns:
      the number of matching o auth2 authorizations
    • findByC_ATCH

      public static List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash)
      Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      Returns:
      the matching o auth2 authorizations
    • findByC_ATCH

      public static List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end)
      Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      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 matching o auth2 authorizations
    • findByC_ATCH

      public static List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      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 matching o auth2 authorizations
    • findByC_ATCH

      public static List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching o auth2 authorizations
    • findByC_ATCH_First

      public static OAuth2Authorization findByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByC_ATCH_First

      public static OAuth2Authorization fetchByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByC_ATCH_Last

      public static OAuth2Authorization findByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByC_ATCH_Last

      public static OAuth2Authorization fetchByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByC_ATCH_PrevAndNext

      public static OAuth2Authorization[] findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      oAuth2AuthorizationId - the primary key of the current o auth2 authorization
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • removeByC_ATCH

      public static void removeByC_ATCH(long companyId, long accessTokenContentHash)
      Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
    • countByC_ATCH

      public static int countByC_ATCH(long companyId, long accessTokenContentHash)
      Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      accessTokenContentHash - the access token content hash
      Returns:
      the number of matching o auth2 authorizations
    • findByC_RTCH

      public static List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash)
      Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      Returns:
      the matching o auth2 authorizations
    • findByC_RTCH

      public static List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end)
      Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      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 matching o auth2 authorizations
    • findByC_RTCH

      public static List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      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 matching o auth2 authorizations
    • findByC_RTCH

      public static List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching o auth2 authorizations
    • findByC_RTCH_First

      public static OAuth2Authorization findByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByC_RTCH_First

      public static OAuth2Authorization fetchByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByC_RTCH_Last

      public static OAuth2Authorization findByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByC_RTCH_Last

      public static OAuth2Authorization fetchByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByC_RTCH_PrevAndNext

      public static OAuth2Authorization[] findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      oAuth2AuthorizationId - the primary key of the current o auth2 authorization
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • removeByC_RTCH

      public static void removeByC_RTCH(long companyId, long refreshTokenContentHash)
      Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
    • countByC_RTCH

      public static int countByC_RTCH(long companyId, long refreshTokenContentHash)
      Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
      Parameters:
      companyId - the company ID
      refreshTokenContentHash - the refresh token content hash
      Returns:
      the number of matching o auth2 authorizations
    • findByU_O_R

      public static List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent)
      Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      Returns:
      the matching o auth2 authorizations
    • findByU_O_R

      public static List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end)
      Returns a range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      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 matching o auth2 authorizations
    • findByU_O_R

      public static List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      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 matching o auth2 authorizations
    • findByU_O_R

      public static List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching o auth2 authorizations
    • findByU_O_R_First

      public static OAuth2Authorization findByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByU_O_R_First

      public static OAuth2Authorization fetchByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByU_O_R_Last

      public static OAuth2Authorization findByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a matching o auth2 authorization could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByU_O_R_Last

      public static OAuth2Authorization fetchByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found
    • findByU_O_R_PrevAndNext

      public static OAuth2Authorization[] findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      oAuth2AuthorizationId - the primary key of the current o auth2 authorization
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • removeByU_O_R

      public static void removeByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent)
      Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
    • countByU_O_R

      public static int countByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent)
      Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
      Parameters:
      userId - the user ID
      oAuth2ApplicationId - the o auth2 application ID
      rememberDeviceContent - the remember device content
      Returns:
      the number of matching o auth2 authorizations
    • cacheResult

      public static void cacheResult(OAuth2Authorization oAuth2Authorization)
      Caches the o auth2 authorization in the entity cache if it is enabled.
      Parameters:
      oAuth2Authorization - the o auth2 authorization
    • cacheResult

      public static void cacheResult(List<OAuth2Authorization> oAuth2Authorizations)
      Caches the o auth2 authorizations in the entity cache if it is enabled.
      Parameters:
      oAuth2Authorizations - the o auth2 authorizations
    • create

      public static OAuth2Authorization create(long oAuth2AuthorizationId)
      Creates a new o auth2 authorization with the primary key. Does not add the o auth2 authorization to the database.
      Parameters:
      oAuth2AuthorizationId - the primary key for the new o auth2 authorization
      Returns:
      the new o auth2 authorization
    • remove

      public static OAuth2Authorization remove(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
      Removes the o auth2 authorization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      oAuth2AuthorizationId - the primary key of the o auth2 authorization
      Returns:
      the o auth2 authorization that was removed
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • updateImpl

      public static OAuth2Authorization updateImpl(OAuth2Authorization oAuth2Authorization)
    • findByPrimaryKey

      public static OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
      Returns the o auth2 authorization with the primary key or throws a NoSuchOAuth2AuthorizationException if it could not be found.
      Parameters:
      oAuth2AuthorizationId - the primary key of the o auth2 authorization
      Returns:
      the o auth2 authorization
      Throws:
      NoSuchOAuth2AuthorizationException - if a o auth2 authorization with the primary key could not be found
      NoSuchOAuth2AuthorizationException
    • fetchByPrimaryKey

      public static OAuth2Authorization fetchByPrimaryKey(long oAuth2AuthorizationId)
      Returns the o auth2 authorization with the primary key or returns null if it could not be found.
      Parameters:
      oAuth2AuthorizationId - the primary key of the o auth2 authorization
      Returns:
      the o auth2 authorization, or null if a o auth2 authorization with the primary key could not be found
    • findAll

      public static List<OAuth2Authorization> findAll()
      Returns all the o auth2 authorizations.
      Returns:
      the o auth2 authorizations
    • findAll

      public static List<OAuth2Authorization> findAll(int start, int end)
      Returns a range of all the o auth2 authorizations.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      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 authorizations
    • findAll

      public static List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns an ordered range of all the o auth2 authorizations.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      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 authorizations
    • findAll

      public static List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the o auth2 authorizations.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of o auth2 authorizations
    • removeAll

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

      public static int countAll()
      Returns the number of o auth2 authorizations.
      Returns:
      the number of o auth2 authorizations
    • getOAuth2ScopeGrantPrimaryKeys

      public static long[] getOAuth2ScopeGrantPrimaryKeys(long pk)
      Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.
      Parameters:
      pk - the primary key of the o auth2 authorization
      Returns:
      long[] of the primaryKeys of o auth2 scope grants associated with the o auth2 authorization
    • getOAuth2ScopeGrantOAuth2Authorizations

      public static List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk)
      Returns all the o auth2 authorization associated with the o auth2 scope grant.
      Parameters:
      pk - the primary key of the o auth2 scope grant
      Returns:
      the o auth2 authorizations associated with the o auth2 scope grant
    • getOAuth2ScopeGrantOAuth2Authorizations

      public static List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end)
      Returns all the o auth2 authorization associated with the o auth2 scope grant.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      pk - the primary key of the o auth2 scope grant
      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 authorizations associated with the o auth2 scope grant
    • getOAuth2ScopeGrantOAuth2Authorizations

      public static List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
      Returns all the o auth2 authorization associated with the o auth2 scope grant.

      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 OAuth2AuthorizationModelImpl.

      Parameters:
      pk - the primary key of the o auth2 scope grant
      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 authorizations associated with the o auth2 scope grant
    • getOAuth2ScopeGrantsSize

      public static int getOAuth2ScopeGrantsSize(long pk)
      Returns the number of o auth2 scope grants associated with the o auth2 authorization.
      Parameters:
      pk - the primary key of the o auth2 authorization
      Returns:
      the number of o auth2 scope grants associated with the o auth2 authorization
    • containsOAuth2ScopeGrant

      public static boolean containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
      Returns true if the o auth2 scope grant is associated with the o auth2 authorization.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrantPK - the primary key of the o auth2 scope grant
      Returns:
      true if the o auth2 scope grant is associated with the o auth2 authorization; false otherwise
    • containsOAuth2ScopeGrants

      public static boolean containsOAuth2ScopeGrants(long pk)
      Returns true if the o auth2 authorization has any o auth2 scope grants associated with it.
      Parameters:
      pk - the primary key of the o auth2 authorization to check for associations with o auth2 scope grants
      Returns:
      true if the o auth2 authorization has any o auth2 scope grants associated with it; false otherwise
    • addOAuth2ScopeGrant

      public static boolean addOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
      Adds an association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrantPK - the primary key of the o auth2 scope grant
      Returns:
      true if an association between the o auth2 authorization and the o auth2 scope grant was added; false if they were already associated
    • addOAuth2ScopeGrant

      public static boolean addOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
      Adds an association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrant - the o auth2 scope grant
      Returns:
      true if an association between the o auth2 authorization and the o auth2 scope grant was added; false if they were already associated
    • addOAuth2ScopeGrants

      public static boolean addOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
      Adds an association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrantPKs - the primary keys of the o auth2 scope grants
      Returns:
      true if at least one association between the o auth2 authorization and the o auth2 scope grants was added; false if they were all already associated
    • addOAuth2ScopeGrants

      public static boolean addOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants)
      Adds an association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrants - the o auth2 scope grants
      Returns:
      true if at least one association between the o auth2 authorization and the o auth2 scope grants was added; false if they were all already associated
    • clearOAuth2ScopeGrants

      public static void clearOAuth2ScopeGrants(long pk)
      Clears all associations between the o auth2 authorization and its o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization to clear the associated o auth2 scope grants from
    • removeOAuth2ScopeGrant

      public static void removeOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
      Removes the association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrantPK - the primary key of the o auth2 scope grant
    • removeOAuth2ScopeGrant

      public static void removeOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
      Removes the association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrant - the o auth2 scope grant
    • removeOAuth2ScopeGrants

      public static void removeOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
      Removes the association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrantPKs - the primary keys of the o auth2 scope grants
    • removeOAuth2ScopeGrants

      public static void removeOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants)
      Removes the association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the o auth2 authorization
      oAuth2ScopeGrants - the o auth2 scope grants
    • setOAuth2ScopeGrants

      public static void setOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
      Sets the o auth2 scope grants associated with the o auth2 authorization, 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 authorization
      oAuth2ScopeGrantPKs - the primary keys of the o auth2 scope grants to be associated with the o auth2 authorization
    • setOAuth2ScopeGrants

      public static void setOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants)
      Sets the o auth2 scope grants associated with the o auth2 authorization, 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 authorization
      oAuth2ScopeGrants - the o auth2 scope grants to be associated with the o auth2 authorization
    • getPersistence

      public static OAuth2AuthorizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(OAuth2AuthorizationPersistence persistence)