public class WeDeployAuthTokenUtil
extends java.lang.Object
com.liferay.portal.security.wedeploy.auth.service.persistence.impl.WeDeployAuthTokenPersistenceImpl 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
WeDeployAuthTokenPersistence| Constructor and Description |
|---|
WeDeployAuthTokenUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<WeDeployAuthToken> weDeployAuthTokens)
Caches the we deploy auth tokens in the entity cache if it is enabled.
|
static void |
cacheResult(WeDeployAuthToken weDeployAuthToken)
Caches the we deploy auth token in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(WeDeployAuthToken weDeployAuthToken) |
static int |
countAll()
Returns the number of we deploy auth tokens.
|
static int |
countByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type)
Returns the number of we deploy auth tokens where clientId = ? and token = ? and type = ?.
|
static int |
countByT_T(java.lang.String token,
int type)
Returns the number of we deploy auth tokens where token = ? and type = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static WeDeployAuthToken |
create(long weDeployAuthTokenId)
Creates a new we deploy auth token with the primary key.
|
static WeDeployAuthToken |
fetchByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type)
Returns the we deploy auth token where clientId = ? and token = ? and type = ? or returns
null if it could not be found. |
static WeDeployAuthToken |
fetchByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type,
boolean useFinderCache)
Returns the we deploy auth token where clientId = ? and token = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
static WeDeployAuthToken |
fetchByPrimaryKey(long weDeployAuthTokenId)
Returns the we deploy auth token with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,WeDeployAuthToken> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static WeDeployAuthToken |
fetchByT_T(java.lang.String token,
int type)
Returns the we deploy auth token where token = ? and type = ? or returns
null if it could not be found. |
static WeDeployAuthToken |
fetchByT_T(java.lang.String token,
int type,
boolean useFinderCache)
Returns the we deploy auth token where token = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<WeDeployAuthToken> |
findAll()
Returns all the we deploy auth tokens.
|
static java.util.List<WeDeployAuthToken> |
findAll(int start,
int end)
Returns a range of all the we deploy auth tokens.
|
static java.util.List<WeDeployAuthToken> |
findAll(int start,
int end,
OrderByComparator<WeDeployAuthToken> orderByComparator)
Returns an ordered range of all the we deploy auth tokens.
|
static java.util.List<WeDeployAuthToken> |
findAll(int start,
int end,
OrderByComparator<WeDeployAuthToken> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the we deploy auth tokens.
|
static WeDeployAuthToken |
findByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type)
Returns the we deploy auth token where clientId = ? and token = ? and type = ? or throws a
NoSuchTokenException if it could not be found. |
static WeDeployAuthToken |
findByPrimaryKey(long weDeployAuthTokenId)
Returns the we deploy auth token with the primary key or throws a
NoSuchTokenException if it could not be found. |
static WeDeployAuthToken |
findByT_T(java.lang.String token,
int type)
Returns the we deploy auth token where token = ? and type = ? or throws a
NoSuchTokenException if it could not be found. |
static java.util.List<WeDeployAuthToken> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<WeDeployAuthToken> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<WeDeployAuthToken> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<WeDeployAuthToken> orderByComparator) |
static WeDeployAuthTokenPersistence |
getPersistence() |
static WeDeployAuthToken |
remove(long weDeployAuthTokenId)
Removes the we deploy auth token with the primary key from the database.
|
static void |
removeAll()
Removes all the we deploy auth tokens from the database.
|
static WeDeployAuthToken |
removeByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type)
Removes the we deploy auth token where clientId = ? and token = ? and type = ? from the database.
|
static WeDeployAuthToken |
removeByT_T(java.lang.String token,
int type)
Removes the we deploy auth token where token = ? and type = ? from the database.
|
static WeDeployAuthToken |
update(WeDeployAuthToken weDeployAuthToken) |
static WeDeployAuthToken |
update(WeDeployAuthToken weDeployAuthToken,
ServiceContext serviceContext) |
static WeDeployAuthToken |
updateImpl(WeDeployAuthToken weDeployAuthToken) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(WeDeployAuthToken weDeployAuthToken)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.Map<java.io.Serializable,WeDeployAuthToken> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<WeDeployAuthToken> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<WeDeployAuthToken> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<WeDeployAuthToken> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<WeDeployAuthToken> orderByComparator)
public static WeDeployAuthToken update(WeDeployAuthToken weDeployAuthToken)
public static WeDeployAuthToken update(WeDeployAuthToken weDeployAuthToken, ServiceContext serviceContext)
public static WeDeployAuthToken findByT_T(java.lang.String token, int type) throws NoSuchTokenException
NoSuchTokenException if it could not be found.token - the tokentype - the typeNoSuchTokenException - if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken fetchByT_T(java.lang.String token, int type)
null if it could not be found. Uses the finder cache.token - the tokentype - the typenull if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken fetchByT_T(java.lang.String token, int type, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.token - the tokentype - the typeuseFinderCache - whether to use the finder cachenull if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken removeByT_T(java.lang.String token, int type) throws NoSuchTokenException
token - the tokentype - the typeNoSuchTokenExceptionpublic static int countByT_T(java.lang.String token,
int type)
token - the tokentype - the typepublic static WeDeployAuthToken findByCI_T_T(java.lang.String clientId, java.lang.String token, int type) throws NoSuchTokenException
NoSuchTokenException if it could not be found.clientId - the client IDtoken - the tokentype - the typeNoSuchTokenException - if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken fetchByCI_T_T(java.lang.String clientId, java.lang.String token, int type)
null if it could not be found. Uses the finder cache.clientId - the client IDtoken - the tokentype - the typenull if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken fetchByCI_T_T(java.lang.String clientId, java.lang.String token, int type, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.clientId - the client IDtoken - the tokentype - the typeuseFinderCache - whether to use the finder cachenull if a matching we deploy auth token could not be foundpublic static WeDeployAuthToken removeByCI_T_T(java.lang.String clientId, java.lang.String token, int type) throws NoSuchTokenException
clientId - the client IDtoken - the tokentype - the typeNoSuchTokenExceptionpublic static int countByCI_T_T(java.lang.String clientId,
java.lang.String token,
int type)
clientId - the client IDtoken - the tokentype - the typepublic static void cacheResult(WeDeployAuthToken weDeployAuthToken)
weDeployAuthToken - the we deploy auth tokenpublic static void cacheResult(java.util.List<WeDeployAuthToken> weDeployAuthTokens)
weDeployAuthTokens - the we deploy auth tokenspublic static WeDeployAuthToken create(long weDeployAuthTokenId)
weDeployAuthTokenId - the primary key for the new we deploy auth tokenpublic static WeDeployAuthToken remove(long weDeployAuthTokenId) throws NoSuchTokenException
weDeployAuthTokenId - the primary key of the we deploy auth tokenNoSuchTokenException - if a we deploy auth token with the primary key could not be foundpublic static WeDeployAuthToken updateImpl(WeDeployAuthToken weDeployAuthToken)
public static WeDeployAuthToken findByPrimaryKey(long weDeployAuthTokenId) throws NoSuchTokenException
NoSuchTokenException if it could not be found.weDeployAuthTokenId - the primary key of the we deploy auth tokenNoSuchTokenException - if a we deploy auth token with the primary key could not be foundpublic static WeDeployAuthToken fetchByPrimaryKey(long weDeployAuthTokenId)
null if it could not be found.weDeployAuthTokenId - the primary key of the we deploy auth tokennull if a we deploy auth token with the primary key could not be foundpublic static java.util.List<WeDeployAuthToken> findAll()
public static java.util.List<WeDeployAuthToken> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from WeDeployAuthTokenModelImpl.
start - the lower bound of the range of we deploy auth tokensend - the upper bound of the range of we deploy auth tokens (not inclusive)public static java.util.List<WeDeployAuthToken> findAll(int start, int end, OrderByComparator<WeDeployAuthToken> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from WeDeployAuthTokenModelImpl.
start - the lower bound of the range of we deploy auth tokensend - the upper bound of the range of we deploy auth tokens (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<WeDeployAuthToken> findAll(int start, int end, OrderByComparator<WeDeployAuthToken> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from WeDeployAuthTokenModelImpl.
start - the lower bound of the range of we deploy auth tokensend - the upper bound of the range of we deploy auth tokens (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static WeDeployAuthTokenPersistence getPersistence()