All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.oauth2.provider.service.persistence.OAuth2AuthorizationPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.oauth2.provider.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.oauth2.provider.exception.NoSuchOAuth2AuthorizationException;
import com.liferay.oauth2.provider.model.OAuth2Authorization;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * The persistence interface for the o auth2 authorization service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see OAuth2AuthorizationUtil * @generated */ @ProviderType public interface OAuth2AuthorizationPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link OAuth2AuthorizationUtil} to access the o auth2 authorization persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the o auth2 authorizations where userId = ?. * * @param userId the user ID * @return the matching o auth2 authorizations */ public java.util.List findByUserId(long userId); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userId the user ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of matching o auth2 authorizations */ public java.util.List findByUserId( long userId, int start, int end); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userId the user ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userId the user ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first o auth2 authorization in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the first o auth2 authorization in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last o auth2 authorization in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the last o auth2 authorization in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?. * * @param oAuth2AuthorizationId the primary key of the current o auth2 authorization * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization[] findByUserId_PrevAndNext( long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Removes all the o auth2 authorizations where userId = ? from the database. * * @param userId the user ID */ public void removeByUserId(long userId); /** * Returns the number of o auth2 authorizations where userId = ?. * * @param userId the user ID * @return the number of matching o auth2 authorizations */ public int countByUserId(long userId); /** * Returns all the o auth2 authorizations where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @return the matching o auth2 authorizations */ public java.util.List findByOAuth2ApplicationId( long oAuth2ApplicationId); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param oAuth2ApplicationId the o auth2 application ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of matching o auth2 authorizations */ public java.util.List findByOAuth2ApplicationId( long oAuth2ApplicationId, int start, int end); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param oAuth2ApplicationId the o auth2 application ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByOAuth2ApplicationId( long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param oAuth2ApplicationId the o auth2 application ID * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByOAuth2ApplicationId( long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByOAuth2ApplicationId_First( long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByOAuth2ApplicationId_First( long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByOAuth2ApplicationId_Last( long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByOAuth2ApplicationId_Last( long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?. * * @param oAuth2AuthorizationId the primary key of the current o auth2 authorization * @param oAuth2ApplicationId the o auth2 application ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization[] findByOAuth2ApplicationId_PrevAndNext( long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database. * * @param oAuth2ApplicationId the o auth2 application ID */ public void removeByOAuth2ApplicationId(long oAuth2ApplicationId); /** * Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?. * * @param oAuth2ApplicationId the o auth2 application ID * @return the number of matching o auth2 authorizations */ public int countByOAuth2ApplicationId(long oAuth2ApplicationId); /** * Returns all the o auth2 authorizations where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @return the matching o auth2 authorizations */ public java.util.List findByAccessTokenContentHash( long accessTokenContentHash); /** * Returns a range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param accessTokenContentHash the access token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of matching o auth2 authorizations */ public java.util.List findByAccessTokenContentHash( long accessTokenContentHash, int start, int end); /** * Returns an ordered range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param accessTokenContentHash the access token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByAccessTokenContentHash( long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param accessTokenContentHash the access token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByAccessTokenContentHash( long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByAccessTokenContentHash_First( long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByAccessTokenContentHash_First( long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByAccessTokenContentHash_Last( long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByAccessTokenContentHash_Last( long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where accessTokenContentHash = ?. * * @param oAuth2AuthorizationId the primary key of the current o auth2 authorization * @param accessTokenContentHash the access token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization[] findByAccessTokenContentHash_PrevAndNext( long oAuth2AuthorizationId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Removes all the o auth2 authorizations where accessTokenContentHash = ? from the database. * * @param accessTokenContentHash the access token content hash */ public void removeByAccessTokenContentHash(long accessTokenContentHash); /** * Returns the number of o auth2 authorizations where accessTokenContentHash = ?. * * @param accessTokenContentHash the access token content hash * @return the number of matching o auth2 authorizations */ public int countByAccessTokenContentHash(long accessTokenContentHash); /** * Returns all the o auth2 authorizations where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @return the matching o auth2 authorizations */ public java.util.List findByRefreshTokenContentHash( long refreshTokenContentHash); /** * Returns a range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param refreshTokenContentHash the refresh token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of matching o auth2 authorizations */ public java.util.List findByRefreshTokenContentHash( long refreshTokenContentHash, int start, int end); /** * Returns an ordered range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param refreshTokenContentHash the refresh token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByRefreshTokenContentHash( long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the o auth2 authorizations where 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param refreshTokenContentHash the refresh token content hash * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching o auth2 authorizations */ public java.util.List findByRefreshTokenContentHash( long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByRefreshTokenContentHash_First( long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByRefreshTokenContentHash_First( long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a matching o auth2 authorization could not be found */ public OAuth2Authorization findByRefreshTokenContentHash_Last( long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching o auth2 authorization, or null if a matching o auth2 authorization could not be found */ public OAuth2Authorization fetchByRefreshTokenContentHash_Last( long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where refreshTokenContentHash = ?. * * @param oAuth2AuthorizationId the primary key of the current o auth2 authorization * @param refreshTokenContentHash the refresh token content hash * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization[] findByRefreshTokenContentHash_PrevAndNext( long oAuth2AuthorizationId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOAuth2AuthorizationException; /** * Removes all the o auth2 authorizations where refreshTokenContentHash = ? from the database. * * @param refreshTokenContentHash the refresh token content hash */ public void removeByRefreshTokenContentHash(long refreshTokenContentHash); /** * Returns the number of o auth2 authorizations where refreshTokenContentHash = ?. * * @param refreshTokenContentHash the refresh token content hash * @return the number of matching o auth2 authorizations */ public int countByRefreshTokenContentHash(long refreshTokenContentHash); /** * Caches the o auth2 authorization in the entity cache if it is enabled. * * @param oAuth2Authorization the o auth2 authorization */ public void cacheResult(OAuth2Authorization oAuth2Authorization); /** * Caches the o auth2 authorizations in the entity cache if it is enabled. * * @param oAuth2Authorizations the o auth2 authorizations */ public void cacheResult( java.util.List oAuth2Authorizations); /** * Creates a new o auth2 authorization with the primary key. Does not add the o auth2 authorization to the database. * * @param oAuth2AuthorizationId the primary key for the new o auth2 authorization * @return the new o auth2 authorization */ public OAuth2Authorization create(long oAuth2AuthorizationId); /** * Removes the o auth2 authorization with the primary key from the database. Also notifies the appropriate model listeners. * * @param oAuth2AuthorizationId the primary key of the o auth2 authorization * @return the o auth2 authorization that was removed * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization remove(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException; public OAuth2Authorization updateImpl( OAuth2Authorization oAuth2Authorization); /** * Returns the o auth2 authorization with the primary key or throws a NoSuchOAuth2AuthorizationException if it could not be found. * * @param oAuth2AuthorizationId the primary key of the o auth2 authorization * @return the o auth2 authorization * @throws NoSuchOAuth2AuthorizationException if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException; /** * Returns the o auth2 authorization with the primary key or returns null if it could not be found. * * @param oAuth2AuthorizationId the primary key of the o auth2 authorization * @return the o auth2 authorization, or null if a o auth2 authorization with the primary key could not be found */ public OAuth2Authorization fetchByPrimaryKey(long oAuth2AuthorizationId); /** * Returns all the o auth2 authorizations. * * @return the o auth2 authorizations */ public java.util.List findAll(); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of o auth2 authorizations */ public java.util.List findAll(int start, int end); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of o auth2 authorizations */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of o auth2 authorizations */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the o auth2 authorizations from the database. */ public void removeAll(); /** * Returns the number of o auth2 authorizations. * * @return the number of o auth2 authorizations */ public int countAll(); /** * Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization. * * @param pk the primary key of the o auth2 authorization * @return long[] of the primaryKeys of o auth2 scope grants associated with the o auth2 authorization */ public long[] getOAuth2ScopeGrantPrimaryKeys(long pk); /** * Returns all the o auth2 scope grants associated with the o auth2 authorization. * * @param pk the primary key of the o auth2 authorization * @return the o auth2 scope grants associated with the o auth2 authorization */ public java.util.List getOAuth2ScopeGrants(long pk); /** * Returns a range of all the o auth2 scope grants associated with the o auth2 authorization. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param pk the primary key of the o auth2 authorization * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @return the range of o auth2 scope grants associated with the o auth2 authorization */ public java.util.List getOAuth2ScopeGrants(long pk, int start, int end); /** * Returns an ordered range of all the o auth2 scope grants associated with the o auth2 authorization. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param pk the primary key of the o auth2 authorization * @param start the lower bound of the range of o auth2 authorizations * @param end the upper bound of the range of o auth2 authorizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of o auth2 scope grants associated with the o auth2 authorization */ public java.util.List getOAuth2ScopeGrants( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of o auth2 scope grants associated with the o auth2 authorization. * * @param pk the primary key of the o auth2 authorization * @return the number of o auth2 scope grants associated with the o auth2 authorization */ public int getOAuth2ScopeGrantsSize(long pk); /** * Returns true if the o auth2 scope grant is associated with the o auth2 authorization. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPK the primary key of the o auth2 scope grant * @return true if the o auth2 scope grant is associated with the o auth2 authorization; false otherwise */ public boolean containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK); /** * Returns true if the o auth2 authorization has any o auth2 scope grants associated with it. * * @param pk the primary key of the o auth2 authorization to check for associations with o auth2 scope grants * @return true if the o auth2 authorization has any o auth2 scope grants associated with it; false otherwise */ public boolean containsOAuth2ScopeGrants(long pk); /** * 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPK the primary key of the o auth2 scope grant */ public void 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrant the o auth2 scope grant */ public void addOAuth2ScopeGrant( long pk, com.liferay.oauth2.provider.model.OAuth2ScopeGrant oAuth2ScopeGrant); /** * 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPKs the primary keys of the o auth2 scope grants */ public void 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrants the o auth2 scope grants */ public void addOAuth2ScopeGrants( long pk, java.util.List oAuth2ScopeGrants); /** * 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. * * @param pk the primary key of the o auth2 authorization to clear the associated o auth2 scope grants from */ public void clearOAuth2ScopeGrants(long pk); /** * 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPK the primary key of the o auth2 scope grant */ public 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrant the o auth2 scope grant */ public void removeOAuth2ScopeGrant( long pk, com.liferay.oauth2.provider.model.OAuth2ScopeGrant oAuth2ScopeGrant); /** * 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPKs the primary keys of the o auth2 scope grants */ public 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrants the o auth2 scope grants */ public void removeOAuth2ScopeGrants( long pk, java.util.List 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrantPKs the primary keys of the o auth2 scope grants to be associated with the o auth2 authorization */ public 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. * * @param pk the primary key of the o auth2 authorization * @param oAuth2ScopeGrants the o auth2 scope grants to be associated with the o auth2 authorization */ public void setOAuth2ScopeGrants( long pk, java.util.List oAuth2ScopeGrants); @Override public Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy