@ProviderType
public class OAuthApplicationUtil
extends java.lang.Object
com.liferay.oauth.service.persistence.impl.OAuthApplicationPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
OAuthApplicationPersistence
Constructor and Description |
---|
OAuthApplicationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<OAuthApplication> oAuthApplications)
Caches the o auth applications in the entity cache if it is enabled.
|
static void |
cacheResult(OAuthApplication oAuthApplication)
Caches the o auth application in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OAuthApplication oAuthApplication) |
static int |
countAll()
Returns the number of o auth applications.
|
static int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of o auth applications where companyId = ? and name LIKE ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of o auth applications where companyId = ?.
|
static int |
countByConsumerKey(java.lang.String consumerKey)
Returns the number of o auth applications where consumerKey = ?.
|
static int |
countByU_N(long userId,
java.lang.String name)
Returns the number of o auth applications where userId = ? and name LIKE ?.
|
static int |
countByUserId(long userId)
Returns the number of o auth applications where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OAuthApplication |
create(long oAuthApplicationId)
Creates a new o auth application with the primary key.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static OAuthApplication |
fetchByConsumerKey(java.lang.String consumerKey)
Returns the o auth application where consumerKey = ? or returns
null if it could not be found. |
static 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. |
static OAuthApplication |
fetchByPrimaryKey(long oAuthApplicationId)
Returns the o auth application with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OAuthApplication> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthApplication> |
findAll()
Returns all the o auth applications.
|
static java.util.List<OAuthApplication> |
findAll(int start,
int end)
Returns a range of all the o auth applications.
|
static 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.
|
static 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.
|
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static java.util.List<OAuthApplication> |
findByC_N(long companyId,
java.lang.String name)
Returns all the o auth applications where companyId = ? and name LIKE ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthApplication> |
findByCompanyId(long companyId)
Returns all the o auth applications where companyId = ?.
|
static java.util.List<OAuthApplication> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the o auth applications where companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static OAuthApplication |
findByConsumerKey(java.lang.String consumerKey)
Returns the o auth application where consumerKey = ? or throws a
NoSuchApplicationException if it could not be found. |
static OAuthApplication |
findByPrimaryKey(long oAuthApplicationId)
Returns the o auth application with the primary key or throws a
NoSuchApplicationException if it could not be found. |
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static java.util.List<OAuthApplication> |
findByU_N(long userId,
java.lang.String name)
Returns all the o auth applications where userId = ? and name LIKE ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthApplication> |
findByUserId(long userId)
Returns all the o auth applications where userId = ?.
|
static java.util.List<OAuthApplication> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth applications where userId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<OAuthApplication> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OAuthApplication> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OAuthApplication> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) |
static OAuthApplicationPersistence |
getPersistence() |
static OAuthApplication |
remove(long oAuthApplicationId)
Removes the o auth application with the primary key from the database.
|
static void |
removeAll()
Removes all the o auth applications from the database.
|
static void |
removeByC_N(long companyId,
java.lang.String name)
Removes all the o auth applications where companyId = ? and name LIKE ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the o auth applications where companyId = ? from the database.
|
static OAuthApplication |
removeByConsumerKey(java.lang.String consumerKey)
Removes the o auth application where consumerKey = ? from the database.
|
static void |
removeByU_N(long userId,
java.lang.String name)
Removes all the o auth applications where userId = ? and name LIKE ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the o auth applications where userId = ? from the database.
|
static OAuthApplication |
update(OAuthApplication oAuthApplication) |
static OAuthApplication |
update(OAuthApplication oAuthApplication,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuthApplication |
updateImpl(OAuthApplication oAuthApplication) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OAuthApplication oAuthApplication)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,OAuthApplication> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OAuthApplication> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OAuthApplication> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OAuthApplication> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OAuthApplication update(OAuthApplication oAuthApplication)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OAuthApplication update(OAuthApplication oAuthApplication, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OAuthApplication> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication[] 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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<OAuthApplication> findByUserId(long userId)
userId
- the user IDpublic static java.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)public static 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
)public static 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 cachepublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication[] 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 foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication removeByConsumerKey(java.lang.String consumerKey) throws NoSuchApplicationException
consumerKey
- the consumer keyNoSuchApplicationException
public static int countByConsumerKey(java.lang.String consumerKey)
consumerKey
- the consumer keypublic static java.util.List<OAuthApplication> findByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static java.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)public static 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
)public static 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 cachepublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication[] 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 foundpublic static void removeByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static int countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static java.util.List<OAuthApplication> findByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the namepublic static java.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)public static 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
)public static 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 cachepublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication 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 foundpublic static OAuthApplication[] 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 foundpublic static void removeByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the namepublic static int countByU_N(long userId, java.lang.String name)
userId
- the user IDname
- the namepublic static void cacheResult(OAuthApplication oAuthApplication)
oAuthApplication
- the o auth applicationpublic static void cacheResult(java.util.List<OAuthApplication> oAuthApplications)
oAuthApplications
- the o auth applicationspublic static OAuthApplication create(long oAuthApplicationId)
oAuthApplicationId
- the primary key for the new o auth applicationpublic static OAuthApplication 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 foundpublic static OAuthApplication updateImpl(OAuthApplication oAuthApplication)
public static 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 foundpublic static OAuthApplication 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 foundpublic static java.util.List<OAuthApplication> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static OAuthApplicationPersistence getPersistence()