Interface OAuth2AuthorizationPersistence

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

@ProviderType public interface OAuth2AuthorizationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2Authorization>
The persistence interface for the o auth2 authorization service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
    Adds an association between the o auth2 authorization and the o auth2 scope grant.
    boolean
    addOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
    Adds an association between the o auth2 authorization and the o auth2 scope grant.
    boolean
    addOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
    Adds an association between the o auth2 authorization and the o auth2 scope grants.
    boolean
    addOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants)
    Adds an association between the o auth2 authorization and the o auth2 scope grants.
    void
    cacheResult(OAuth2Authorization oAuth2Authorization)
    Caches the o auth2 authorization in the entity cache if it is enabled.
    void
    cacheResult(List<OAuth2Authorization> oAuth2Authorizations)
    Caches the o auth2 authorizations in the entity cache if it is enabled.
    void
    Clears all associations between the o auth2 authorization and its o auth2 scope grants.
    boolean
    containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
    Returns true if the o auth2 scope grant is associated with the o auth2 authorization.
    boolean
    Returns true if the o auth2 authorization has any o auth2 scope grants associated with it.
    int
    Returns the number of o auth2 authorizations.
    int
    countByC_ATCH(long companyId, long accessTokenContentHash)
    Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
    int
    countByC_RTCH(long companyId, long refreshTokenContentHash)
    Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
    int
    countByOAuth2ApplicationId(long oAuth2ApplicationId)
    Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
    int
    countByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent)
    Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
    int
    countByUserId(long userId)
    Returns the number of o auth2 authorizations where userId = ?.
    create(long oAuth2AuthorizationId)
    Creates a new o auth2 authorization with the primary key.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
    fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
    fetchByPrimaryKey(long oAuth2AuthorizationId)
    Returns the o auth2 authorization with the primary key or returns null if it could not be found.
    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 = ?.
    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 = ?.
    fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the first o auth2 authorization in the ordered set where userId = ?.
    fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the last o auth2 authorization in the ordered set where userId = ?.
    Returns all the o auth2 authorizations.
    findAll(int start, int end)
    Returns a range of all the o auth2 authorizations.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns an ordered range of all the o auth2 authorizations.
    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.
    findByC_ATCH(long companyId, long accessTokenContentHash)
    Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
    findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end)
    Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
    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 = ?.
    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 = ?.
    findByC_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 = ?.
    findByC_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 = ?.
    findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
    findByC_RTCH(long companyId, long refreshTokenContentHash)
    Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
    findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end)
    Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
    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 = ?.
    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 = ?.
    findByC_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 = ?.
    findByC_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 = ?.
    findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
    findByOAuth2ApplicationId(long oAuth2ApplicationId)
    Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.
    findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end)
    Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
    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 = ?.
    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 = ?.
    findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
    findByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
    findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
    findByPrimaryKey(long oAuth2AuthorizationId)
    Returns the o auth2 authorization with the primary key or throws a NoSuchOAuth2AuthorizationException if it could not be found.
    findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent)
    Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByU_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 = ?.
    findByU_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 = ?.
    findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
    findByUserId(long userId)
    Returns all the o auth2 authorizations where userId = ?.
    findByUserId(long userId, int start, int end)
    Returns a range of all the o auth2 authorizations where userId = ?.
    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 = ?.
    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 = ?.
    findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the first o auth2 authorization in the ordered set where userId = ?.
    findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the last o auth2 authorization in the ordered set where userId = ?.
    findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
    Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?.
    Returns all the o auth2 authorization associated with the o auth2 scope grant.
    getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end)
    Returns all the o auth2 authorization associated with the o auth2 scope grant.
    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.
    long[]
    Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.
    int
    Returns the number of o auth2 scope grants associated with the o auth2 authorization.
    remove(long oAuth2AuthorizationId)
    Removes the o auth2 authorization with the primary key from the database.
    void
    Removes all the o auth2 authorizations from the database.
    void
    removeByC_ATCH(long companyId, long accessTokenContentHash)
    Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.
    void
    removeByC_RTCH(long companyId, long refreshTokenContentHash)
    Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.
    void
    removeByOAuth2ApplicationId(long oAuth2ApplicationId)
    Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
    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.
    void
    removeByUserId(long userId)
    Removes all the o auth2 authorizations where userId = ? from the database.
    void
    removeOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
    Removes the association between the o auth2 authorization and the o auth2 scope grant.
    void
    removeOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
    Removes the association between the o auth2 authorization and the o auth2 scope grant.
    void
    removeOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
    Removes the association between the o auth2 authorization and the o auth2 scope grants.
    void
    removeOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants)
    Removes the association between the o auth2 authorization and the o auth2 scope grants.
    void
    setOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
    Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.
    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.
    updateImpl(OAuth2Authorization oAuth2Authorization)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUserId

      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

      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

      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

      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

      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
    • fetchByUserId_First

      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

      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
    • fetchByUserId_Last

      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

      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
    • removeByUserId

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

      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

      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

      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

      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

      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

      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
    • fetchByOAuth2ApplicationId_First

      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

      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
    • fetchByOAuth2ApplicationId_Last

      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

      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
    • removeByOAuth2ApplicationId

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

      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

      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

      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

      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

      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

      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
    • fetchByC_ATCH_First

      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

      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
    • fetchByC_ATCH_Last

      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

      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
    • removeByC_ATCH

      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

      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

      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

      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

      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

      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

      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
    • fetchByC_RTCH_First

      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

      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
    • fetchByC_RTCH_Last

      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

      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
    • removeByC_RTCH

      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

      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

      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

      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

      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

      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

      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
    • fetchByU_O_R_First

      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

      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
    • fetchByU_O_R_Last

      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

      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
    • removeByU_O_R

      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

      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

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

      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

      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

      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
    • updateImpl

      OAuth2Authorization updateImpl(OAuth2Authorization oAuth2Authorization)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

      Returns all the o auth2 authorizations.
      Returns:
      the o auth2 authorizations
    • findAll

      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

      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

      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

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

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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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

      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