Interface OAuth2AuthorizationPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2Authorization>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Adds an association between the o auth2 authorization and the o auth2 scope grant.booleanaddOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Adds an association between the o auth2 authorization and the o auth2 scope grant.booleanaddOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Adds an association between the o auth2 authorization and the o auth2 scope grants.booleanaddOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Adds an association between the o auth2 authorization and the o auth2 scope grants.voidcacheResult(OAuth2Authorization oAuth2Authorization) Caches the o auth2 authorization in the entity cache if it is enabled.voidcacheResult(List<OAuth2Authorization> oAuth2Authorizations) Caches the o auth2 authorizations in the entity cache if it is enabled.voidclearOAuth2ScopeGrants(long pk) Clears all associations between the o auth2 authorization and its o auth2 scope grants.booleancontainsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Returnstrueif the o auth2 scope grant is associated with the o auth2 authorization.booleancontainsOAuth2ScopeGrants(long pk) Returnstrueif the o auth2 authorization has any o auth2 scope grants associated with it.intcountAll()Returns the number of o auth2 authorizations.intcountByC_ATCH(long companyId, long accessTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.intcountByC_RTCH(long companyId, long refreshTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.intcountByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.intcountByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.intcountByUserId(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 returnsnullif 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 = ?.findAll()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 aNoSuchOAuth2AuthorizationExceptionif 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[]getOAuth2ScopeGrantPrimaryKeys(long pk) Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.intgetOAuth2ScopeGrantsSize(long pk) 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.voidRemoves all the o auth2 authorizations from the database.voidremoveByC_ATCH(long companyId, long accessTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.voidremoveByC_RTCH(long companyId, long refreshTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.voidremoveByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.voidremoveByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.voidremoveByUserId(long userId) Removes all the o auth2 authorizations where userId = ? from the database.voidremoveOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Removes the association between the o auth2 authorization and the o auth2 scope grant.voidremoveOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Removes the association between the o auth2 authorization and the o auth2 scope grant.voidremoveOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Removes the association between the o auth2 authorization and the o auth2 scope grants.voidremoveOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Removes the association between the o auth2 authorization and the o auth2 scope grants.voidsetOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.voidsetOAuth2ScopeGrants(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
Returns all the o auth2 authorizations where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching o auth2 authorizations
-
findByUserId
Returns a range of all the o auth2 authorizations where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif 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 authorizationuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- 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
Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the matching o auth2 authorizations
-
findByOAuth2ApplicationId
Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif 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 authorizationoAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- 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
Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.- Parameters:
companyId- the company IDaccessTokenContentHash- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif 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 IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif 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 authorizationcompanyId- the company IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDaccessTokenContentHash- 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 IDaccessTokenContentHash- the access token content hash- Returns:
- the number of matching o auth2 authorizations
-
findByC_RTCH
Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.- Parameters:
companyId- the company IDrefreshTokenContentHash- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif 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 IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif 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 authorizationcompanyId- the company IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDrefreshTokenContentHash- 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 IDrefreshTokenContentHash- 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 IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- 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 IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif 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 IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- 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 IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif 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 authorizationuserId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- 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
Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device content
-
countByU_O_R
Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device content- Returns:
- the number of matching o auth2 authorizations
-
cacheResult
Caches the o auth2 authorization in the entity cache if it is enabled.- Parameters:
oAuth2Authorization- the o auth2 authorization
-
cacheResult
Caches the o auth2 authorizations in the entity cache if it is enabled.- Parameters:
oAuth2Authorizations- the o auth2 authorizations
-
create
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
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
-
findByPrimaryKey
OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorization with the primary key or throws aNoSuchOAuth2AuthorizationExceptionif 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
Returns the o auth2 authorization with the primary key or returnsnullif it could not be found.- Parameters:
oAuth2AuthorizationId- the primary key of the o auth2 authorization- Returns:
- the o auth2 authorization, or
nullif a o auth2 authorization with the primary key could not be found
-
findAll
List<OAuth2Authorization> findAll()Returns all the o auth2 authorizations.- Returns:
- the o auth2 authorizations
-
findAll
Returns a range of all the o auth2 authorizations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
start- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of o auth2 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
start- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of o auth2 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
start- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
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
Returns all the o auth2 authorization associated with the o auth2 scope grant.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
pk- the primary key of the o auth2 scope grantstart- the lower bound of the range of o auth2 scope grantsend- the upper bound of the range of o auth2 scope grants (not inclusive)- Returns:
- the range of o auth2 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOAuth2AuthorizationModelImpl.- Parameters:
pk- the primary key of the o auth2 scope grantstart- the lower bound of the range of o auth2 scope grantsend- the upper bound of the range of o auth2 scope grants (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of o auth2 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) Returnstrueif the o auth2 scope grant is associated with the o auth2 authorization.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant- Returns:
trueif the o auth2 scope grant is associated with the o auth2 authorization;falseotherwise
-
containsOAuth2ScopeGrants
boolean containsOAuth2ScopeGrants(long pk) Returnstrueif 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:
trueif the o auth2 authorization has any o auth2 scope grants associated with it;falseotherwise
-
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 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant- Returns:
trueif an association between the o auth2 authorization and the o auth2 scope grant was added;falseif they were already associated
-
addOAuth2ScopeGrant
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 authorizationoAuth2ScopeGrant- the o auth2 scope grant- Returns:
trueif an association between the o auth2 authorization and the o auth2 scope grant was added;falseif 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 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants- Returns:
trueif at least one association between the o auth2 authorization and the o auth2 scope grants was added;falseif they were all already associated
-
addOAuth2ScopeGrants
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 authorizationoAuth2ScopeGrants- the o auth2 scope grants- Returns:
trueif at least one association between the o auth2 authorization and the o auth2 scope grants was added;falseif 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 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant
-
removeOAuth2ScopeGrant
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 authorizationoAuth2ScopeGrant- 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 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants
-
removeOAuth2ScopeGrants
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 authorizationoAuth2ScopeGrants- 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 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants to be associated with the o auth2 authorization
-
setOAuth2ScopeGrants
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 authorizationoAuth2ScopeGrants- the o auth2 scope grants to be associated with the o auth2 authorization
-