@ProviderType
public class WeDeployAuthAppUtil
extends java.lang.Object
com.liferay.portal.security.wedeploy.auth.service.persistence.impl.WeDeployAuthAppPersistenceImpl
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
WeDeployAuthAppPersistence
,
com.liferay.portal.security.wedeploy.auth.service.persistence.impl.WeDeployAuthAppPersistenceImpl
Constructor and Description |
---|
WeDeployAuthAppUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<WeDeployAuthApp> weDeployAuthApps)
Caches the we deploy auth apps in the entity cache if it is enabled.
|
static void |
cacheResult(WeDeployAuthApp weDeployAuthApp)
Caches the we deploy auth app in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(WeDeployAuthApp weDeployAuthApp) |
static int |
countAll()
Returns the number of we deploy auth apps.
|
static int |
countByCI_CS(java.lang.String clientId,
java.lang.String clientSecret)
Returns the number of we deploy auth apps where clientId = ? and clientSecret = ?.
|
static int |
countByRU_CI(java.lang.String redirectURI,
java.lang.String clientId)
Returns the number of we deploy auth apps where redirectURI = ? and clientId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static WeDeployAuthApp |
create(long weDeployAuthAppId)
Creates a new we deploy auth app with the primary key.
|
static WeDeployAuthApp |
fetchByCI_CS(java.lang.String clientId,
java.lang.String clientSecret)
Returns the we deploy auth app where clientId = ? and clientSecret = ? or returns
null if it could not be found. |
static WeDeployAuthApp |
fetchByCI_CS(java.lang.String clientId,
java.lang.String clientSecret,
boolean retrieveFromCache)
Returns the we deploy auth app where clientId = ? and clientSecret = ? or returns
null if it could not be found, optionally using the finder cache. |
static WeDeployAuthApp |
fetchByPrimaryKey(long weDeployAuthAppId)
Returns the we deploy auth app with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,WeDeployAuthApp> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static WeDeployAuthApp |
fetchByRU_CI(java.lang.String redirectURI,
java.lang.String clientId)
Returns the we deploy auth app where redirectURI = ? and clientId = ? or returns
null if it could not be found. |
static WeDeployAuthApp |
fetchByRU_CI(java.lang.String redirectURI,
java.lang.String clientId,
boolean retrieveFromCache)
Returns the we deploy auth app where redirectURI = ? and clientId = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<WeDeployAuthApp> |
findAll()
Returns all the we deploy auth apps.
|
static java.util.List<WeDeployAuthApp> |
findAll(int start,
int end)
Returns a range of all the we deploy auth apps.
|
static java.util.List<WeDeployAuthApp> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> orderByComparator)
Returns an ordered range of all the we deploy auth apps.
|
static java.util.List<WeDeployAuthApp> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the we deploy auth apps.
|
static WeDeployAuthApp |
findByCI_CS(java.lang.String clientId,
java.lang.String clientSecret)
Returns the we deploy auth app where clientId = ? and clientSecret = ? or throws a
NoSuchAppException if it could not be found. |
static WeDeployAuthApp |
findByPrimaryKey(long weDeployAuthAppId)
Returns the we deploy auth app with the primary key or throws a
NoSuchAppException if it could not be found. |
static WeDeployAuthApp |
findByRU_CI(java.lang.String redirectURI,
java.lang.String clientId)
Returns the we deploy auth app where redirectURI = ? and clientId = ? or throws a
NoSuchAppException if it could not be found. |
static java.util.List<WeDeployAuthApp> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<WeDeployAuthApp> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<WeDeployAuthApp> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> orderByComparator) |
static WeDeployAuthAppPersistence |
getPersistence() |
static WeDeployAuthApp |
remove(long weDeployAuthAppId)
Removes the we deploy auth app with the primary key from the database.
|
static void |
removeAll()
Removes all the we deploy auth apps from the database.
|
static WeDeployAuthApp |
removeByCI_CS(java.lang.String clientId,
java.lang.String clientSecret)
Removes the we deploy auth app where clientId = ? and clientSecret = ? from the database.
|
static WeDeployAuthApp |
removeByRU_CI(java.lang.String redirectURI,
java.lang.String clientId)
Removes the we deploy auth app where redirectURI = ? and clientId = ? from the database.
|
static WeDeployAuthApp |
update(WeDeployAuthApp weDeployAuthApp) |
static WeDeployAuthApp |
update(WeDeployAuthApp weDeployAuthApp,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static WeDeployAuthApp |
updateImpl(WeDeployAuthApp weDeployAuthApp) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(WeDeployAuthApp weDeployAuthApp)
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.List<WeDeployAuthApp> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<WeDeployAuthApp> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<WeDeployAuthApp> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static WeDeployAuthApp update(WeDeployAuthApp weDeployAuthApp)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static WeDeployAuthApp update(WeDeployAuthApp weDeployAuthApp, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static WeDeployAuthApp findByRU_CI(java.lang.String redirectURI, java.lang.String clientId) throws NoSuchAppException
NoSuchAppException
if it could not be found.redirectURI
- the redirect uriclientId
- the client IDNoSuchAppException
- if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp fetchByRU_CI(java.lang.String redirectURI, java.lang.String clientId)
null
if it could not be found. Uses the finder cache.redirectURI
- the redirect uriclientId
- the client IDnull
if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp fetchByRU_CI(java.lang.String redirectURI, java.lang.String clientId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.redirectURI
- the redirect uriclientId
- the client IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp removeByRU_CI(java.lang.String redirectURI, java.lang.String clientId) throws NoSuchAppException
redirectURI
- the redirect uriclientId
- the client IDNoSuchAppException
public static int countByRU_CI(java.lang.String redirectURI, java.lang.String clientId)
redirectURI
- the redirect uriclientId
- the client IDpublic static WeDeployAuthApp findByCI_CS(java.lang.String clientId, java.lang.String clientSecret) throws NoSuchAppException
NoSuchAppException
if it could not be found.clientId
- the client IDclientSecret
- the client secretNoSuchAppException
- if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp fetchByCI_CS(java.lang.String clientId, java.lang.String clientSecret)
null
if it could not be found. Uses the finder cache.clientId
- the client IDclientSecret
- the client secretnull
if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp fetchByCI_CS(java.lang.String clientId, java.lang.String clientSecret, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.clientId
- the client IDclientSecret
- the client secretretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching we deploy auth app could not be foundpublic static WeDeployAuthApp removeByCI_CS(java.lang.String clientId, java.lang.String clientSecret) throws NoSuchAppException
clientId
- the client IDclientSecret
- the client secretNoSuchAppException
public static int countByCI_CS(java.lang.String clientId, java.lang.String clientSecret)
clientId
- the client IDclientSecret
- the client secretpublic static void cacheResult(WeDeployAuthApp weDeployAuthApp)
weDeployAuthApp
- the we deploy auth apppublic static void cacheResult(java.util.List<WeDeployAuthApp> weDeployAuthApps)
weDeployAuthApps
- the we deploy auth appspublic static WeDeployAuthApp create(long weDeployAuthAppId)
weDeployAuthAppId
- the primary key for the new we deploy auth apppublic static WeDeployAuthApp remove(long weDeployAuthAppId) throws NoSuchAppException
weDeployAuthAppId
- the primary key of the we deploy auth appNoSuchAppException
- if a we deploy auth app with the primary key could not be foundpublic static WeDeployAuthApp updateImpl(WeDeployAuthApp weDeployAuthApp)
public static WeDeployAuthApp findByPrimaryKey(long weDeployAuthAppId) throws NoSuchAppException
NoSuchAppException
if it could not be found.weDeployAuthAppId
- the primary key of the we deploy auth appNoSuchAppException
- if a we deploy auth app with the primary key could not be foundpublic static WeDeployAuthApp fetchByPrimaryKey(long weDeployAuthAppId)
null
if it could not be found.weDeployAuthAppId
- the primary key of the we deploy auth appnull
if a we deploy auth app with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,WeDeployAuthApp> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<WeDeployAuthApp> findAll()
public static java.util.List<WeDeployAuthApp> 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 WeDeployAuthAppModelImpl
. 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 we deploy auth appsend
- the upper bound of the range of we deploy auth apps (not inclusive)public static java.util.List<WeDeployAuthApp> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> 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 WeDeployAuthAppModelImpl
. 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 we deploy auth appsend
- the upper bound of the range of we deploy auth apps (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<WeDeployAuthApp> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WeDeployAuthApp> 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 WeDeployAuthAppModelImpl
. 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 we deploy auth appsend
- the upper bound of the range of we deploy auth apps (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 WeDeployAuthAppPersistence getPersistence()