@ProviderType public interface OAuthApplicationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OAuthApplication>
Caching information and settings can be found in portal.properties
OAuthApplicationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<OAuthApplication> oAuthApplications)
Caches the o auth applications in the entity cache if it is enabled.
|
void |
cacheResult(OAuthApplication oAuthApplication)
Caches the o auth application in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of o auth applications.
|
int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of o auth applications where companyId = ? and name LIKE ?.
|
int |
countByCompanyId(long companyId)
Returns the number of o auth applications where companyId = ?.
|
int |
countByConsumerKey(java.lang.String consumerKey)
Returns the number of o auth applications where consumerKey = ?.
|
int |
countByU_N(long userId,
java.lang.String name)
Returns the number of o auth applications where userId = ? and name LIKE ?.
|
int |
countByUserId(long userId)
Returns the number of o auth applications where userId = ?.
|
OAuthApplication |
create(long oAuthApplicationId)
Creates a new o auth application with the primary key.
|
OAuthApplication |
fetchByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where companyId = ? and name LIKE ?.
|
OAuthApplication |
fetchByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where companyId = ? and name LIKE ?.
|
OAuthApplication |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where companyId = ?.
|
OAuthApplication |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where companyId = ?.
|
OAuthApplication |
fetchByConsumerKey(java.lang.String consumerKey)
Returns the o auth application where consumerKey = ? or returns
null if it could not be found. |
OAuthApplication |
fetchByConsumerKey(java.lang.String consumerKey,
boolean retrieveFromCache)
Returns the o auth application where consumerKey = ? or returns
null if it could not be found, optionally using the finder cache. |
OAuthApplication |
fetchByPrimaryKey(long oAuthApplicationId)
Returns the o auth application with the primary key or returns
null if it could not be found. |
OAuthApplication |
fetchByU_N_First(long userId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where userId = ? and name LIKE ?.
|
OAuthApplication |
fetchByU_N_Last(long userId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where userId = ? and name LIKE ?.
|
OAuthApplication |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where userId = ?.
|
OAuthApplication |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where userId = ?.
|
java.util.List<OAuthApplication> |
findAll()
Returns all the o auth applications.
|
java.util.List<OAuthApplication> |
findAll(int start,
int end)
Returns a range of all the o auth applications.
|
java.util.List<OAuthApplication> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns an ordered range of all the o auth applications.
|
java.util.List<OAuthApplication> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth applications.
|
OAuthApplication |
findByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where companyId = ? and name LIKE ?.
|
OAuthApplication |
findByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where companyId = ? and name LIKE ?.
|
OAuthApplication[] |
findByC_N_PrevAndNext(long oAuthApplicationId,
long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the o auth applications before and after the current o auth application in the ordered set where companyId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByC_N(long companyId,
java.lang.String name)
Returns all the o auth applications where companyId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end)
Returns a range of all the o auth applications where companyId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns an ordered range of all the o auth applications where companyId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth applications where companyId = ? and name LIKE ?.
|
OAuthApplication |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where companyId = ?.
|
OAuthApplication |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where companyId = ?.
|
OAuthApplication[] |
findByCompanyId_PrevAndNext(long oAuthApplicationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the o auth applications before and after the current o auth application in the ordered set where companyId = ?.
|
java.util.List<OAuthApplication> |
findByCompanyId(long companyId)
Returns all the o auth applications where companyId = ?.
|
java.util.List<OAuthApplication> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the o auth applications where companyId = ?.
|
java.util.List<OAuthApplication> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns an ordered range of all the o auth applications where companyId = ?.
|
java.util.List<OAuthApplication> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth applications where companyId = ?.
|
OAuthApplication |
findByConsumerKey(java.lang.String consumerKey)
Returns the o auth application where consumerKey = ? or throws a
NoSuchApplicationException if it could not be found. |
OAuthApplication |
findByPrimaryKey(long oAuthApplicationId)
Returns the o auth application with the primary key or throws a
NoSuchApplicationException if it could not be found. |
OAuthApplication |
findByU_N_First(long userId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where userId = ? and name LIKE ?.
|
OAuthApplication |
findByU_N_Last(long userId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where userId = ? and name LIKE ?.
|
OAuthApplication[] |
findByU_N_PrevAndNext(long oAuthApplicationId,
long userId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the o auth applications before and after the current o auth application in the ordered set where userId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByU_N(long userId,
java.lang.String name)
Returns all the o auth applications where userId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByU_N(long userId,
java.lang.String name,
int start,
int end)
Returns a range of all the o auth applications where userId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByU_N(long userId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns an ordered range of all the o auth applications where userId = ? and name LIKE ?.
|
java.util.List<OAuthApplication> |
findByU_N(long userId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth applications where userId = ? and name LIKE ?.
|
OAuthApplication |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the first o auth application in the ordered set where userId = ?.
|
OAuthApplication |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the last o auth application in the ordered set where userId = ?.
|
OAuthApplication[] |
findByUserId_PrevAndNext(long oAuthApplicationId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns the o auth applications before and after the current o auth application in the ordered set where userId = ?.
|
java.util.List<OAuthApplication> |
findByUserId(long userId)
Returns all the o auth applications where userId = ?.
|
java.util.List<OAuthApplication> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth applications where userId = ?.
|
java.util.List<OAuthApplication> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
Returns an ordered range of all the o auth applications where userId = ?.
|
java.util.List<OAuthApplication> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the o auth applications where userId = ?.
|
OAuthApplication |
remove(long oAuthApplicationId)
Removes the o auth application with the primary key from the database.
|
void |
removeAll()
Removes all the o auth applications from the database.
|
void |
removeByC_N(long companyId,
java.lang.String name)
Removes all the o auth applications where companyId = ? and name LIKE ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the o auth applications where companyId = ? from the database.
|
OAuthApplication |
removeByConsumerKey(java.lang.String consumerKey)
Removes the o auth application where consumerKey = ? from the database.
|
void |
removeByU_N(long userId,
java.lang.String name)
Removes all the o auth applications where userId = ? and name LIKE ? from the database.
|
void |
removeByUserId(long userId)
Removes all the o auth applications where userId = ? from the database.
|
OAuthApplication |
updateImpl(OAuthApplication oAuthApplication) |
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<OAuthApplication> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<OAuthApplication> findByCompanyId(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from OAuthApplicationModelImpl
. 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.
companyId
- the company IDstart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)java.util.List<OAuthApplication> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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.
companyId
- the company IDstart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthApplication> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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.
companyId
- the company IDstart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthApplication findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication[] findByCompanyId_PrevAndNext(long oAuthApplicationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
oAuthApplicationId
- the primary key of the current o auth applicationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a o auth application with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<OAuthApplication> findByUserId(long userId)
userId
- the user IDjava.util.List<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)java.util.List<OAuthApplication> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthApplication> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthApplication findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication[] findByUserId_PrevAndNext(long oAuthApplicationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
oAuthApplicationId
- the primary key of the current o auth applicationuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a o auth application with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDOAuthApplication findByConsumerKey(java.lang.String consumerKey) throws NoSuchApplicationException
NoSuchApplicationException
if it could not be found.consumerKey
- the consumer keyNoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByConsumerKey(java.lang.String consumerKey)
null
if it could not be found. Uses the finder cache.consumerKey
- the consumer keynull
if a matching o auth application could not be foundOAuthApplication fetchByConsumerKey(java.lang.String consumerKey, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.consumerKey
- the consumer keyretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching o auth application could not be foundOAuthApplication removeByConsumerKey(java.lang.String consumerKey) throws NoSuchApplicationException
consumerKey
- the consumer keyNoSuchApplicationException
int countByConsumerKey(java.lang.String consumerKey)
consumerKey
- the consumer keyjava.util.List<OAuthApplication> findByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namejava.util.List<OAuthApplication> findByC_N(long companyId, java.lang.String name, 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 OAuthApplicationModelImpl
. 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.
companyId
- the company IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)java.util.List<OAuthApplication> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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.
companyId
- the company IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthApplication> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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.
companyId
- the company IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthApplication findByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication findByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication[] findByC_N_PrevAndNext(long oAuthApplicationId, long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
oAuthApplicationId
- the primary key of the current o auth applicationcompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a o auth application with the primary key could not be foundvoid removeByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the nameint countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namejava.util.List<OAuthApplication> findByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the namejava.util.List<OAuthApplication> findByU_N(long userId, java.lang.String name, 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 OAuthApplicationModelImpl
. 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 IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)java.util.List<OAuthApplication> findByU_N(long userId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthApplication> findByU_N(long userId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 IDname
- the namestart
- the lower bound of the range of o auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheOAuthApplication findByU_N_First(long userId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
userId
- the user IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByU_N_First(long userId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
userId
- the user IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication findByU_N_Last(long userId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
userId
- the user IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a matching o auth application could not be foundOAuthApplication fetchByU_N_Last(long userId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
userId
- the user IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth application could not be foundOAuthApplication[] findByU_N_PrevAndNext(long oAuthApplicationId, long userId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) throws NoSuchApplicationException
oAuthApplicationId
- the primary key of the current o auth applicationuserId
- the user IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchApplicationException
- if a o auth application with the primary key could not be foundvoid removeByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the nameint countByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the namevoid cacheResult(OAuthApplication oAuthApplication)
oAuthApplication
- the o auth applicationvoid cacheResult(java.util.List<OAuthApplication> oAuthApplications)
oAuthApplications
- the o auth applicationsOAuthApplication create(long oAuthApplicationId)
oAuthApplicationId
- the primary key for the new o auth applicationOAuthApplication remove(long oAuthApplicationId) throws NoSuchApplicationException
oAuthApplicationId
- the primary key of the o auth applicationNoSuchApplicationException
- if a o auth application with the primary key could not be foundOAuthApplication updateImpl(OAuthApplication oAuthApplication)
OAuthApplication findByPrimaryKey(long oAuthApplicationId) throws NoSuchApplicationException
NoSuchApplicationException
if it could not be found.oAuthApplicationId
- the primary key of the o auth applicationNoSuchApplicationException
- if a o auth application with the primary key could not be foundOAuthApplication fetchByPrimaryKey(long oAuthApplicationId)
null
if it could not be found.oAuthApplicationId
- the primary key of the o auth applicationnull
if a o auth application with the primary key could not be foundjava.util.List<OAuthApplication> findAll()
java.util.List<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)java.util.List<OAuthApplication> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<OAuthApplication> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> 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 OAuthApplicationModelImpl
. 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 auth applicationsend
- the upper bound of the range of o auth applications (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()