|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.UserIdMapperUtil
public class UserIdMapperUtil
The persistence utility for the user id mapper service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
UserIdMapperPersistence,
UserIdMapperPersistenceImpl| Constructor Summary | |
|---|---|
UserIdMapperUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<UserIdMapper> userIdMappers)
Caches the user id mappers in the entity cache if it is enabled. |
static void |
cacheResult(UserIdMapper userIdMapper)
Caches the user id mapper in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(UserIdMapper userIdMapper)
|
static int |
countAll()
Counts all the user id mappers. |
static int |
countByT_E(String type,
String externalUserId)
Counts all the user id mappers where type = ? and externalUserId = ?. |
static int |
countByU_T(long userId,
String type)
Counts all the user id mappers where userId = ? and type = ?. |
static int |
countByUserId(long userId)
Counts all the user id mappers where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static UserIdMapper |
create(long userIdMapperId)
Creates a new user id mapper with the primary key. |
static UserIdMapper |
fetchByPrimaryKey(long userIdMapperId)
Finds the user id mapper with the primary key or returns null if it could not be found. |
static UserIdMapper |
fetchByT_E(String type,
String externalUserId)
Finds the user id mapper where type = ? and externalUserId = ? or returns null if it could not be found. |
static UserIdMapper |
fetchByT_E(String type,
String externalUserId,
boolean retrieveFromCache)
Finds the user id mapper where type = ? and externalUserId = ? or returns null if it could not be found, optionally using the finder cache. |
static UserIdMapper |
fetchByU_T(long userId,
String type)
Finds the user id mapper where userId = ? and type = ? or returns null if it could not be found. |
static UserIdMapper |
fetchByU_T(long userId,
String type,
boolean retrieveFromCache)
Finds the user id mapper where userId = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
static List<UserIdMapper> |
findAll()
Finds all the user id mappers. |
static List<UserIdMapper> |
findAll(int start,
int end)
Finds a range of all the user id mappers. |
static List<UserIdMapper> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the user id mappers. |
static UserIdMapper |
findByPrimaryKey(long userIdMapperId)
Finds the user id mapper with the primary key or throws a NoSuchUserIdMapperException if it could not be found. |
static UserIdMapper |
findByT_E(String type,
String externalUserId)
Finds the user id mapper where type = ? and externalUserId = ? or throws a NoSuchUserIdMapperException if it could not be found. |
static UserIdMapper |
findByU_T(long userId,
String type)
Finds the user id mapper where userId = ? and type = ? or throws a NoSuchUserIdMapperException if it could not be found. |
static UserIdMapper |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first user id mapper in the ordered set where userId = ?. |
static UserIdMapper |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last user id mapper in the ordered set where userId = ?. |
static UserIdMapper[] |
findByUserId_PrevAndNext(long userIdMapperId,
long userId,
OrderByComparator orderByComparator)
Finds the user id mappers before and after the current user id mapper in the ordered set where userId = ?. |
static List<UserIdMapper> |
findByUserId(long userId)
Finds all the user id mappers where userId = ?. |
static List<UserIdMapper> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the user id mappers where userId = ?. |
static List<UserIdMapper> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the user id mappers where userId = ?. |
static List<UserIdMapper> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<UserIdMapper> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<UserIdMapper> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static UserIdMapperPersistence |
getPersistence()
|
static UserIdMapper |
remove(long userIdMapperId)
Removes the user id mapper with the primary key from the database. |
static UserIdMapper |
remove(UserIdMapper userIdMapper)
|
static void |
removeAll()
Removes all the user id mappers from the database. |
static void |
removeByT_E(String type,
String externalUserId)
Removes the user id mapper where type = ? and externalUserId = ? from the database. |
static void |
removeByU_T(long userId,
String type)
Removes the user id mapper where userId = ? and type = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the user id mappers where userId = ? from the database. |
void |
setPersistence(UserIdMapperPersistence persistence)
|
static UserIdMapper |
update(UserIdMapper userIdMapper,
boolean merge)
|
static UserIdMapper |
update(UserIdMapper userIdMapper,
boolean merge,
ServiceContext serviceContext)
|
static UserIdMapper |
updateImpl(UserIdMapper userIdMapper,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserIdMapperUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(UserIdMapper userIdMapper)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<UserIdMapper> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<UserIdMapper> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<UserIdMapper> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static UserIdMapper remove(UserIdMapper userIdMapper)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static UserIdMapper update(UserIdMapper userIdMapper,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static UserIdMapper update(UserIdMapper userIdMapper,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(UserIdMapper userIdMapper)
userIdMapper - the user id mapper to cachepublic static void cacheResult(List<UserIdMapper> userIdMappers)
userIdMappers - the user id mappers to cachepublic static UserIdMapper create(long userIdMapperId)
userIdMapperId - the primary key for the new user id mapper
public static UserIdMapper remove(long userIdMapperId)
throws NoSuchUserIdMapperException,
SystemException
userIdMapperId - the primary key of the user id mapper to remove
NoSuchUserIdMapperException - if a user id mapper with the primary key could not be found
SystemException - if a system exception occurred
public static UserIdMapper updateImpl(UserIdMapper userIdMapper,
boolean merge)
throws SystemException
SystemException
public static UserIdMapper findByPrimaryKey(long userIdMapperId)
throws NoSuchUserIdMapperException,
SystemException
NoSuchUserIdMapperException if it could not be found.
userIdMapperId - the primary key of the user id mapper to find
NoSuchUserIdMapperException - if a user id mapper with the primary key could not be found
SystemException - if a system exception occurred
public static UserIdMapper fetchByPrimaryKey(long userIdMapperId)
throws SystemException
null if it could not be found.
userIdMapperId - the primary key of the user id mapper to find
null if a user id mapper with the primary key could not be found
SystemException - if a system exception occurred
public static List<UserIdMapper> findByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static List<UserIdMapper> findByUserId(long userId,
int start,
int end)
throws SystemException
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.
userId - the user id to search withstart - the lower bound of the range of user id mappers to returnend - the upper bound of the range of user id mappers to return (not inclusive)
SystemException - if a system exception occurred
public static List<UserIdMapper> findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
userId - the user id to search withstart - the lower bound of the range of user id mappers to returnend - the upper bound of the range of user id mappers to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static UserIdMapper findByUserId_First(long userId,
OrderByComparator orderByComparator)
throws NoSuchUserIdMapperException,
SystemException
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.
userId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchUserIdMapperException - if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper findByUserId_Last(long userId,
OrderByComparator orderByComparator)
throws NoSuchUserIdMapperException,
SystemException
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.
userId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchUserIdMapperException - if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper[] findByUserId_PrevAndNext(long userIdMapperId,
long userId,
OrderByComparator orderByComparator)
throws NoSuchUserIdMapperException,
SystemException
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.
userIdMapperId - the primary key of the current user id mapperuserId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchUserIdMapperException - if a user id mapper with the primary key could not be found
SystemException - if a system exception occurred
public static UserIdMapper findByU_T(long userId,
String type)
throws NoSuchUserIdMapperException,
SystemException
NoSuchUserIdMapperException if it could not be found.
userId - the user id to search withtype - the type to search with
NoSuchUserIdMapperException - if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper fetchByU_T(long userId,
String type)
throws SystemException
null if it could not be found. Uses the finder cache.
userId - the user id to search withtype - the type to search with
null if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper fetchByU_T(long userId,
String type,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
userId - the user id to search withtype - the type to search with
null if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper findByT_E(String type,
String externalUserId)
throws NoSuchUserIdMapperException,
SystemException
NoSuchUserIdMapperException if it could not be found.
type - the type to search withexternalUserId - the external user id to search with
NoSuchUserIdMapperException - if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper fetchByT_E(String type,
String externalUserId)
throws SystemException
null if it could not be found. Uses the finder cache.
type - the type to search withexternalUserId - the external user id to search with
null if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static UserIdMapper fetchByT_E(String type,
String externalUserId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
type - the type to search withexternalUserId - the external user id to search with
null if a matching user id mapper could not be found
SystemException - if a system exception occurred
public static List<UserIdMapper> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<UserIdMapper> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of user id mappers to returnend - the upper bound of the range of user id mappers to return (not inclusive)
SystemException - if a system exception occurred
public static List<UserIdMapper> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of user id mappers to returnend - the upper bound of the range of user id mappers to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static void removeByU_T(long userId,
String type)
throws NoSuchUserIdMapperException,
SystemException
userId - the user id to search withtype - the type to search with
SystemException - if a system exception occurred
NoSuchUserIdMapperException
public static void removeByT_E(String type,
String externalUserId)
throws NoSuchUserIdMapperException,
SystemException
type - the type to search withexternalUserId - the external user id to search with
SystemException - if a system exception occurred
NoSuchUserIdMapperException
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static int countByU_T(long userId,
String type)
throws SystemException
userId - the user id to search withtype - the type to search with
SystemException - if a system exception occurred
public static int countByT_E(String type,
String externalUserId)
throws SystemException
type - the type to search withexternalUserId - the external user id to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static UserIdMapperPersistence getPersistence()
public void setPersistence(UserIdMapperPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||