@ProviderType public interface OAuth2AuthorizationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2Authorization>
Caching information and settings can be found in portal.properties
OAuth2AuthorizationUtil
Modifier and Type | Method and Description |
---|---|
void |
addOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Adds an association between the o auth2 authorization and the o auth2 scope grant.
|
void |
addOAuth2ScopeGrant(long pk,
OAuth2ScopeGrant oAuth2ScopeGrant)
Adds an association between the o auth2 authorization and the o auth2 scope grant.
|
void |
addOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Adds an association between the o auth2 authorization and the o auth2 scope grants.
|
void |
addOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Adds an association between the o auth2 authorization and the o auth2 scope grants.
|
void |
cacheResult(java.util.List<OAuth2Authorization> oAuth2Authorizations)
Caches the o auth2 authorizations in the entity cache if it is enabled.
|
void |
cacheResult(OAuth2Authorization oAuth2Authorization)
Caches the o auth2 authorization in the entity cache if it is enabled.
|
void |
clearOAuth2ScopeGrants(long pk)
Clears all associations between the o auth2 authorization and its o auth2 scope grants.
|
boolean |
containsOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Returns
true if the o auth2 scope grant is associated with the o auth2 authorization. |
boolean |
containsOAuth2ScopeGrants(long pk)
Returns
true if the o auth2 authorization has any o auth2 scope grants associated with it. |
int |
countAll()
Returns the number of o auth2 authorizations.
|
int |
countByAccessTokenContentHash(long accessTokenContentHash)
Returns the number of o auth2 authorizations where accessTokenContentHash = ?.
|
int |
countByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
|
int |
countByRefreshTokenContentHash(long refreshTokenContentHash)
Returns the number of o auth2 authorizations where refreshTokenContentHash = ?.
|
int |
countByUserId(long userId)
Returns the number of o auth2 authorizations where userId = ?.
|
OAuth2Authorization |
create(long oAuth2AuthorizationId)
Creates a new o auth2 authorization with the primary key.
|
OAuth2Authorization |
fetchByAccessTokenContentHash_First(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
OAuth2Authorization |
fetchByAccessTokenContentHash_Last(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
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 = ?.
|
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 = ?.
|
OAuth2Authorization |
fetchByPrimaryKey(long oAuth2AuthorizationId)
Returns the o auth2 authorization with the primary key or returns
null if it could not be found. |
OAuth2Authorization |
fetchByRefreshTokenContentHash_First(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
OAuth2Authorization |
fetchByRefreshTokenContentHash_Last(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<OAuth2Authorization> |
findAll()
Returns all the o auth2 authorizations.
|
java.util.List<OAuth2Authorization> |
findAll(int start,
int end)
Returns a range of all the o auth2 authorizations.
|
java.util.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.
|
java.util.List<OAuth2Authorization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations.
|
OAuth2Authorization |
findByAccessTokenContentHash_First(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
OAuth2Authorization |
findByAccessTokenContentHash_Last(long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where accessTokenContentHash = ?.
|
OAuth2Authorization[] |
findByAccessTokenContentHash_PrevAndNext(long oAuth2AuthorizationId,
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 accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash)
Returns all the o auth2 authorizations where accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(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 accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByAccessTokenContentHash(long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where accessTokenContentHash = ?.
|
OAuth2Authorization |
findByOAuth2ApplicationId_First(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
OAuth2Authorization |
findByOAuth2ApplicationId_Last(long oAuth2ApplicationId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.
|
OAuth2Authorization[] |
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 = ?.
|
java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId,
int start,
int end)
Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
java.util.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 = ?.
|
java.util.List<OAuth2Authorization> |
findByOAuth2ApplicationId(long oAuth2ApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.
|
OAuth2Authorization |
findByPrimaryKey(long oAuth2AuthorizationId)
Returns the o auth2 authorization with the primary key or throws a
NoSuchOAuth2AuthorizationException if it could not be found. |
OAuth2Authorization |
findByRefreshTokenContentHash_First(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
OAuth2Authorization |
findByRefreshTokenContentHash_Last(long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where refreshTokenContentHash = ?.
|
OAuth2Authorization[] |
findByRefreshTokenContentHash_PrevAndNext(long oAuth2AuthorizationId,
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 refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash)
Returns all the o auth2 authorizations where refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(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 refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByRefreshTokenContentHash(long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where refreshTokenContentHash = ?.
|
OAuth2Authorization |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ?.
|
OAuth2Authorization |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ?.
|
OAuth2Authorization[] |
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 = ?.
|
java.util.List<OAuth2Authorization> |
findByUserId(long userId)
Returns all the o auth2 authorizations where userId = ?.
|
java.util.List<OAuth2Authorization> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth2 authorizations where userId = ?.
|
java.util.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 = ?.
|
java.util.List<OAuth2Authorization> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth2 authorizations where userId = ?.
|
java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long pk)
Returns all the o auth2 authorization associated with the o auth2 scope grant.
|
java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long pk,
int start,
int end)
Returns all the o auth2 authorization associated with the o auth2 scope grant.
|
java.util.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.
|
long[] |
getOAuth2ScopeGrantPrimaryKeys(long pk)
Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.
|
int |
getOAuth2ScopeGrantsSize(long pk)
Returns the number of o auth2 scope grants associated with the o auth2 authorization.
|
OAuth2Authorization |
remove(long oAuth2AuthorizationId)
Removes the o auth2 authorization with the primary key from the database.
|
void |
removeAll()
Removes all the o auth2 authorizations from the database.
|
void |
removeByAccessTokenContentHash(long accessTokenContentHash)
Removes all the o auth2 authorizations where accessTokenContentHash = ? from the database.
|
void |
removeByOAuth2ApplicationId(long oAuth2ApplicationId)
Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
|
void |
removeByRefreshTokenContentHash(long refreshTokenContentHash)
Removes all the o auth2 authorizations where refreshTokenContentHash = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the o auth2 authorizations where userId = ? from the database.
|
void |
removeOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
void |
removeOAuth2ScopeGrant(long pk,
OAuth2ScopeGrant oAuth2ScopeGrant)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
void |
removeOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Removes the association between the o auth2 authorization and the o auth2 scope grants.
|
void |
removeOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Removes the association between the o auth2 authorization and the o auth2 scope grants.
|
void |
setOAuth2ScopeGrants(long pk,
java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.
|
void |
setOAuth2ScopeGrants(long pk,
long[] oAuth2ScopeGrantPKs)
Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.
|
OAuth2Authorization |
updateImpl(OAuth2Authorization oAuth2Authorization) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<OAuth2Authorization> findByUserId(long userId)
userId
- the user IDjava.util.List<OAuth2Authorization> findByUserId(long userId, int start, int end)
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.
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)java.util.List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
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 (optionally null
)java.util.List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuth2Authorization findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization[] findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDjava.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDjava.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end)
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.
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)java.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
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 (optionally null
)java.util.List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuth2Authorization findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization findByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
oAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization[] findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationoAuth2ApplicationId
- the o auth2 application IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDint countByOAuth2ApplicationId(long oAuth2ApplicationId)
oAuth2ApplicationId
- the o auth2 application IDjava.util.List<OAuth2Authorization> findByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashjava.util.List<OAuth2Authorization> findByAccessTokenContentHash(long accessTokenContentHash, int start, int end)
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.
accessTokenContentHash
- 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)java.util.List<OAuth2Authorization> findByAccessTokenContentHash(long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
accessTokenContentHash
- 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 (optionally null
)java.util.List<OAuth2Authorization> findByAccessTokenContentHash(long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean retrieveFromCache)
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.
accessTokenContentHash
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuth2Authorization findByAccessTokenContentHash_First(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
accessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByAccessTokenContentHash_First(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
accessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization findByAccessTokenContentHash_Last(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
accessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByAccessTokenContentHash_Last(long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
accessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization[] findByAccessTokenContentHash_PrevAndNext(long oAuth2AuthorizationId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashint countByAccessTokenContentHash(long accessTokenContentHash)
accessTokenContentHash
- the access token content hashjava.util.List<OAuth2Authorization> findByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashjava.util.List<OAuth2Authorization> findByRefreshTokenContentHash(long refreshTokenContentHash, int start, int end)
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.
refreshTokenContentHash
- 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)java.util.List<OAuth2Authorization> findByRefreshTokenContentHash(long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
refreshTokenContentHash
- 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 (optionally null
)java.util.List<OAuth2Authorization> findByRefreshTokenContentHash(long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean retrieveFromCache)
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.
refreshTokenContentHash
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuth2Authorization findByRefreshTokenContentHash_First(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
refreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByRefreshTokenContentHash_First(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
refreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization findByRefreshTokenContentHash_Last(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
refreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByRefreshTokenContentHash_Last(long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
refreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization[] findByRefreshTokenContentHash_PrevAndNext(long oAuth2AuthorizationId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashint countByRefreshTokenContentHash(long refreshTokenContentHash)
refreshTokenContentHash
- the refresh token content hashvoid cacheResult(OAuth2Authorization oAuth2Authorization)
oAuth2Authorization
- the o auth2 authorizationvoid cacheResult(java.util.List<OAuth2Authorization> oAuth2Authorizations)
oAuth2Authorizations
- the o auth2 authorizationsOAuth2Authorization create(long oAuth2AuthorizationId)
oAuth2AuthorizationId
- the primary key for the new o auth2 authorizationOAuth2Authorization remove(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationNoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundOAuth2Authorization updateImpl(OAuth2Authorization oAuth2Authorization)
OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException
NoSuchOAuth2AuthorizationException
if it could not be found.oAuth2AuthorizationId
- the primary key of the o auth2 authorizationNoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundOAuth2Authorization fetchByPrimaryKey(long oAuth2AuthorizationId)
null
if it could not be found.oAuth2AuthorizationId
- the primary key of the o auth2 authorizationnull
if a o auth2 authorization with the primary key could not be foundjava.util.List<OAuth2Authorization> findAll()
java.util.List<OAuth2Authorization> findAll(int start, int end)
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.
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)java.util.List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
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 (optionally null
)java.util.List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
long[] getOAuth2ScopeGrantPrimaryKeys(long pk)
pk
- the primary key of the o auth2 authorizationjava.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk)
pk
- the primary key of the o auth2 scope grantjava.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end)
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.
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)java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
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.
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 (optionally null
)int getOAuth2ScopeGrantsSize(long pk)
pk
- the primary key of the o auth2 authorizationboolean containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
true
if the o auth2 scope grant is associated with the o auth2 authorization.pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope granttrue
if the o auth2 scope grant is associated with the o auth2 authorization; false
otherwiseboolean containsOAuth2ScopeGrants(long pk)
true
if the o auth2 authorization has any o auth2 scope grants associated with it.pk
- the primary key of the o auth2 authorization to check for associations with o auth2 scope grantstrue
if the o auth2 authorization has any o auth2 scope grants associated with it; false
otherwisevoid addOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope grantvoid addOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrant
- the o auth2 scope grantvoid addOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs
- the primary keys of the o auth2 scope grantsvoid addOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grantsvoid clearOAuth2ScopeGrants(long pk)
pk
- the primary key of the o auth2 authorization to clear the associated o auth2 scope grants fromvoid removeOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK
- the primary key of the o auth2 scope grantvoid removeOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrant
- the o auth2 scope grantvoid removeOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs
- the primary keys of the o auth2 scope grantsvoid removeOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grantsvoid setOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs)
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 authorizationvoid setOAuth2ScopeGrants(long pk, java.util.List<OAuth2ScopeGrant> oAuth2ScopeGrants)
pk
- the primary key of the o auth2 authorizationoAuth2ScopeGrants
- the o auth2 scope grants to be associated with the o auth2 authorization