@ProviderType public interface OAuth2ApplicationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2Application>
Caching information and settings can be found in portal.properties
OAuth2ApplicationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<OAuth2Application> oAuth2Applications)
Caches the o auth2 applications in the entity cache if it is enabled.
|
void |
cacheResult(OAuth2Application oAuth2Application)
Caches the o auth2 application in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of o auth2 applications.
|
int |
countByC_C(long companyId,
java.lang.String clientId)
Returns the number of o auth2 applications where companyId = ? and clientId = ?.
|
int |
countByC(long companyId)
Returns the number of o auth2 applications where companyId = ?.
|
OAuth2Application |
create(long oAuth2ApplicationId)
Creates a new o auth2 application with the primary key.
|
OAuth2Application |
fetchByC_C(long companyId,
java.lang.String clientId)
Returns the o auth2 application where companyId = ? and clientId = ? or returns
null if it could not be found. |
OAuth2Application |
fetchByC_C(long companyId,
java.lang.String clientId,
boolean useFinderCache)
Returns the o auth2 application where companyId = ? and clientId = ? or returns
null if it could not be found, optionally using the finder cache. |
OAuth2Application |
fetchByC_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the first o auth2 application in the ordered set where companyId = ?.
|
OAuth2Application |
fetchByC_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the last o auth2 application in the ordered set where companyId = ?.
|
OAuth2Application |
fetchByPrimaryKey(long oAuth2ApplicationId)
Returns the o auth2 application with the primary key or returns
null if it could not be found. |
int |
filterCountByC(long companyId)
Returns the number of o auth2 applications that the user has permission to view where companyId = ?.
|
OAuth2Application[] |
filterFindByC_PrevAndNext(long oAuth2ApplicationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the o auth2 applications before and after the current o auth2 application in the ordered set of o auth2 applications that the user has permission to view where companyId = ?.
|
java.util.List<OAuth2Application> |
filterFindByC(long companyId)
Returns all the o auth2 applications that the user has permission to view where companyId = ?.
|
java.util.List<OAuth2Application> |
filterFindByC(long companyId,
int start,
int end)
Returns a range of all the o auth2 applications that the user has permission to view where companyId = ?.
|
java.util.List<OAuth2Application> |
filterFindByC(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns an ordered range of all the o auth2 applications that the user has permissions to view where companyId = ?.
|
java.util.List<OAuth2Application> |
findAll()
Returns all the o auth2 applications.
|
java.util.List<OAuth2Application> |
findAll(int start,
int end)
Returns a range of all the o auth2 applications.
|
java.util.List<OAuth2Application> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns an ordered range of all the o auth2 applications.
|
java.util.List<OAuth2Application> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 applications.
|
OAuth2Application |
findByC_C(long companyId,
java.lang.String clientId)
Returns the o auth2 application where companyId = ? and clientId = ? or throws a
NoSuchOAuth2ApplicationException if it could not be found. |
OAuth2Application |
findByC_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the first o auth2 application in the ordered set where companyId = ?.
|
OAuth2Application |
findByC_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the last o auth2 application in the ordered set where companyId = ?.
|
OAuth2Application[] |
findByC_PrevAndNext(long oAuth2ApplicationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns the o auth2 applications before and after the current o auth2 application in the ordered set where companyId = ?.
|
java.util.List<OAuth2Application> |
findByC(long companyId)
Returns all the o auth2 applications where companyId = ?.
|
java.util.List<OAuth2Application> |
findByC(long companyId,
int start,
int end)
Returns a range of all the o auth2 applications where companyId = ?.
|
java.util.List<OAuth2Application> |
findByC(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
Returns an ordered range of all the o auth2 applications where companyId = ?.
|
java.util.List<OAuth2Application> |
findByC(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth2 applications where companyId = ?.
|
OAuth2Application |
findByPrimaryKey(long oAuth2ApplicationId)
Returns the o auth2 application with the primary key or throws a
NoSuchOAuth2ApplicationException if it could not be found. |
OAuth2Application |
remove(long oAuth2ApplicationId)
Removes the o auth2 application with the primary key from the database.
|
void |
removeAll()
Removes all the o auth2 applications from the database.
|
OAuth2Application |
removeByC_C(long companyId,
java.lang.String clientId)
Removes the o auth2 application where companyId = ? and clientId = ? from the database.
|
void |
removeByC(long companyId)
Removes all the o auth2 applications where companyId = ? from the database.
|
OAuth2Application |
updateImpl(OAuth2Application oAuth2Application) |
clearCache, 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<OAuth2Application> findByC(long companyId)
companyId
- the company IDjava.util.List<OAuth2Application> findByC(long companyId, 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 OAuth2ApplicationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)java.util.List<OAuth2Application> findByC(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuth2Application> findByC(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheOAuth2Application findByC_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator) throws NoSuchOAuth2ApplicationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ApplicationException
- if a matching o auth2 application could not be foundOAuth2Application fetchByC_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 application could not be foundOAuth2Application findByC_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator) throws NoSuchOAuth2ApplicationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ApplicationException
- if a matching o auth2 application could not be foundOAuth2Application fetchByC_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth2 application could not be foundOAuth2Application[] findByC_PrevAndNext(long oAuth2ApplicationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator) throws NoSuchOAuth2ApplicationException
oAuth2ApplicationId
- the primary key of the current o auth2 applicationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ApplicationException
- if a o auth2 application with the primary key could not be foundjava.util.List<OAuth2Application> filterFindByC(long companyId)
companyId
- the company IDjava.util.List<OAuth2Application> filterFindByC(long companyId, 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 OAuth2ApplicationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)java.util.List<OAuth2Application> filterFindByC(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)OAuth2Application[] filterFindByC_PrevAndNext(long oAuth2ApplicationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> orderByComparator) throws NoSuchOAuth2ApplicationException
oAuth2ApplicationId
- the primary key of the current o auth2 applicationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuth2ApplicationException
- if a o auth2 application with the primary key could not be foundvoid removeByC(long companyId)
companyId
- the company IDint countByC(long companyId)
companyId
- the company IDint filterCountByC(long companyId)
companyId
- the company IDOAuth2Application findByC_C(long companyId, java.lang.String clientId) throws NoSuchOAuth2ApplicationException
NoSuchOAuth2ApplicationException
if it could not be found.companyId
- the company IDclientId
- the client IDNoSuchOAuth2ApplicationException
- if a matching o auth2 application could not be foundOAuth2Application fetchByC_C(long companyId, java.lang.String clientId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDclientId
- the client IDnull
if a matching o auth2 application could not be foundOAuth2Application fetchByC_C(long companyId, java.lang.String clientId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDclientId
- the client IDuseFinderCache
- whether to use the finder cachenull
if a matching o auth2 application could not be foundOAuth2Application removeByC_C(long companyId, java.lang.String clientId) throws NoSuchOAuth2ApplicationException
companyId
- the company IDclientId
- the client IDNoSuchOAuth2ApplicationException
int countByC_C(long companyId, java.lang.String clientId)
companyId
- the company IDclientId
- the client IDvoid cacheResult(OAuth2Application oAuth2Application)
oAuth2Application
- the o auth2 applicationvoid cacheResult(java.util.List<OAuth2Application> oAuth2Applications)
oAuth2Applications
- the o auth2 applicationsOAuth2Application create(long oAuth2ApplicationId)
oAuth2ApplicationId
- the primary key for the new o auth2 applicationOAuth2Application remove(long oAuth2ApplicationId) throws NoSuchOAuth2ApplicationException
oAuth2ApplicationId
- the primary key of the o auth2 applicationNoSuchOAuth2ApplicationException
- if a o auth2 application with the primary key could not be foundOAuth2Application updateImpl(OAuth2Application oAuth2Application)
OAuth2Application findByPrimaryKey(long oAuth2ApplicationId) throws NoSuchOAuth2ApplicationException
NoSuchOAuth2ApplicationException
if it could not be found.oAuth2ApplicationId
- the primary key of the o auth2 applicationNoSuchOAuth2ApplicationException
- if a o auth2 application with the primary key could not be foundOAuth2Application fetchByPrimaryKey(long oAuth2ApplicationId)
null
if it could not be found.oAuth2ApplicationId
- the primary key of the o auth2 applicationnull
if a o auth2 application with the primary key could not be foundjava.util.List<OAuth2Application> findAll()
java.util.List<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
start
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)java.util.List<OAuth2Application> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
start
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuth2Application> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application> 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 OAuth2ApplicationModelImpl
.
start
- the lower bound of the range of o auth2 applicationsend
- the upper bound of the range of o auth2 applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()