@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 |
countByC_ATCH(long companyId,
long accessTokenContentHash)
Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
int |
countByC_RTCH(long companyId,
long refreshTokenContentHash)
Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
int |
countByOAuth2ApplicationId(long oAuth2ApplicationId)
Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.
|
int |
countByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
int |
countByUserId(long userId)
Returns the number of o auth2 authorizations where userId = ?.
|
OAuth2Authorization |
create(long oAuth2AuthorizationId)
Creates a new o auth2 authorization with the primary key.
|
OAuth2Authorization |
fetchByC_ATCH_First(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
OAuth2Authorization |
fetchByC_ATCH_Last(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
OAuth2Authorization |
fetchByC_RTCH_First(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
OAuth2Authorization |
fetchByC_RTCH_Last(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
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 |
fetchByU_O_R_First(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
OAuth2Authorization |
fetchByU_O_R_Last(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
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 useFinderCache)
Returns an ordered range of all the o auth2 authorizations.
|
OAuth2Authorization |
findByC_ATCH_First(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
OAuth2Authorization |
findByC_ATCH_Last(long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
OAuth2Authorization[] |
findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId,
long companyId,
long accessTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash)
Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_ATCH(long companyId,
long accessTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.
|
OAuth2Authorization |
findByC_RTCH_First(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
OAuth2Authorization |
findByC_RTCH_Last(long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
OAuth2Authorization[] |
findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId,
long companyId,
long refreshTokenContentHash,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash)
Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end)
Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
java.util.List<OAuth2Authorization> |
findByC_RTCH(long companyId,
long refreshTokenContentHash,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.
|
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 useFinderCache)
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 |
findByU_O_R_First(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
OAuth2Authorization |
findByU_O_R_Last(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
OAuth2Authorization[] |
findByU_O_R_PrevAndNext(long oAuth2AuthorizationId,
long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end)
Returns a range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
java.util.List<OAuth2Authorization> |
findByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.
|
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 useFinderCache)
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 |
removeByC_ATCH(long companyId,
long accessTokenContentHash)
Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.
|
void |
removeByC_RTCH(long companyId,
long refreshTokenContentHash)
Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.
|
void |
removeByOAuth2ApplicationId(long oAuth2ApplicationId)
Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.
|
void |
removeByU_O_R(long userId,
long oAuth2ApplicationId,
java.lang.String rememberDeviceContent)
Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the o auth2 authorizations where userId = ? from the database.
|
void |
removeOAuth2ScopeGrant(long pk,
long oAuth2ScopeGrantPK)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
void |
removeOAuth2ScopeGrant(long pk,
OAuth2ScopeGrant oAuth2ScopeGrant)
Removes the association between the o auth2 authorization and the o auth2 scope grant.
|
void |
removeOAuth2ScopeGrants(long pk,
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, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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
)useFinderCache
- whether to use 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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
)useFinderCache
- whether to use 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> findByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashjava.util.List<OAuth2Authorization> findByC_ATCH(long companyId, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDaccessTokenContentHash
- the access token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheOAuth2Authorization findByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDaccessTokenContentHash
- 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 fetchByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDaccessTokenContentHash
- 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 findByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDaccessTokenContentHash
- 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 fetchByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDaccessTokenContentHash
- 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[] findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationcompanyId
- the company IDaccessTokenContentHash
- the access token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashint countByC_ATCH(long companyId, long accessTokenContentHash)
companyId
- the company IDaccessTokenContentHash
- the access token content hashjava.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashjava.util.List<OAuth2Authorization> findByC_RTCH(long companyId, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheOAuth2Authorization findByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDrefreshTokenContentHash
- 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 fetchByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDrefreshTokenContentHash
- 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 findByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
companyId
- the company IDrefreshTokenContentHash
- 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 fetchByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
companyId
- the company IDrefreshTokenContentHash
- 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[] findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationcompanyId
- the company IDrefreshTokenContentHash
- the refresh token content hashorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashint countByC_RTCH(long companyId, long refreshTokenContentHash)
companyId
- the company IDrefreshTokenContentHash
- the refresh token content hashjava.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentjava.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentstart
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheOAuth2Authorization findByU_O_R_First(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByU_O_R_First(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization findByU_O_R_Last(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a matching o auth2 authorization could not be foundOAuth2Authorization fetchByU_O_R_Last(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 authorization could not be foundOAuth2Authorization[] findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException
oAuth2AuthorizationId
- the primary key of the current o auth2 authorizationuserId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2AuthorizationException
- if a o auth2 authorization with the primary key could not be foundvoid removeByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentint countByU_O_R(long userId, long oAuth2ApplicationId, java.lang.String rememberDeviceContent)
userId
- the user IDoAuth2ApplicationId
- the o auth2 application IDrememberDeviceContent
- the remember device contentvoid 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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
)useFinderCache
- whether to use 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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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, then the query will include the default ORDER BY logic from OAuth2AuthorizationModelImpl
.
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