@ProviderType
public class UserThreadUtil
extends java.lang.Object
com.liferay.social.privatemessaging.service.persistence.impl.UserThreadPersistenceImpl 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
UserThreadPersistence,
com.liferay.social.privatemessaging.service.persistence.impl.UserThreadPersistenceImpl| Constructor and Description |
|---|
UserThreadUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<UserThread> userThreads)
Caches the user threads in the entity cache if it is enabled.
|
static void |
cacheResult(UserThread userThread)
Caches the user thread in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(UserThread userThread) |
static int |
countAll()
Returns the number of user threads.
|
static int |
countByMBThreadId(long mbThreadId)
Returns the number of user threads where mbThreadId = ?.
|
static int |
countByU_D(long userId,
boolean deleted)
Returns the number of user threads where userId = ? and deleted = ?.
|
static int |
countByU_M(long userId,
long mbThreadId)
Returns the number of user threads where userId = ? and mbThreadId = ?.
|
static int |
countByU_R_D(long userId,
boolean read,
boolean deleted)
Returns the number of user threads where userId = ? and read = ? and deleted = ?.
|
static int |
countByUserId(long userId)
Returns the number of user threads where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static UserThread |
create(long userThreadId)
Creates a new user thread with the primary key.
|
static UserThread |
fetchByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
static UserThread |
fetchByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
static UserThread |
fetchByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,UserThread> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static UserThread |
fetchByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and deleted = ?.
|
static UserThread |
fetchByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and deleted = ?.
|
static UserThread |
fetchByU_M(long userId,
long mbThreadId)
Returns the user thread where userId = ? and mbThreadId = ? or returns
null if it could not be found. |
static UserThread |
fetchByU_M(long userId,
long mbThreadId,
boolean retrieveFromCache)
Returns the user thread where userId = ? and mbThreadId = ? or returns
null if it could not be found, optionally using the finder cache. |
static UserThread |
fetchByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
static UserThread |
fetchByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
static UserThread |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
static UserThread |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
static java.util.List<UserThread> |
findAll()
Returns all the user threads.
|
static java.util.List<UserThread> |
findAll(int start,
int end)
Returns a range of all the user threads.
|
static java.util.List<UserThread> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns an ordered range of all the user threads.
|
static java.util.List<UserThread> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads.
|
static UserThread |
findByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
static UserThread |
findByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
static UserThread[] |
findByMBThreadId_PrevAndNext(long userThreadId,
long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where mbThreadId = ?.
|
static java.util.List<UserThread> |
findByMBThreadId(long mbThreadId)
Returns all the user threads where mbThreadId = ?.
|
static java.util.List<UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end)
Returns a range of all the user threads where mbThreadId = ?.
|
static java.util.List<UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns an ordered range of all the user threads where mbThreadId = ?.
|
static java.util.List<UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where mbThreadId = ?.
|
static UserThread |
findByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or throws a
NoSuchUserThreadException if it could not be found. |
static UserThread |
findByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and deleted = ?.
|
static UserThread |
findByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and deleted = ?.
|
static UserThread[] |
findByU_D_PrevAndNext(long userThreadId,
long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where userId = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_D(long userId,
boolean deleted)
Returns all the user threads where userId = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_D(long userId,
boolean deleted,
int start,
int end)
Returns a range of all the user threads where userId = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ? and deleted = ?.
|
static UserThread |
findByU_M(long userId,
long mbThreadId)
Returns the user thread where userId = ? and mbThreadId = ? or throws a
NoSuchUserThreadException if it could not be found. |
static UserThread |
findByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
static UserThread |
findByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
static UserThread[] |
findByU_R_D_PrevAndNext(long userThreadId,
long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted)
Returns all the user threads where userId = ? and read = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end)
Returns a range of all the user threads where userId = ? and read = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ? and read = ? and deleted = ?.
|
static java.util.List<UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ? and read = ? and deleted = ?.
|
static UserThread |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
static UserThread |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
static UserThread[] |
findByUserId_PrevAndNext(long userThreadId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where userId = ?.
|
static java.util.List<UserThread> |
findByUserId(long userId)
Returns all the user threads where userId = ?.
|
static java.util.List<UserThread> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the user threads where userId = ?.
|
static java.util.List<UserThread> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ?.
|
static java.util.List<UserThread> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ?.
|
static java.util.List<UserThread> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<UserThread> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<UserThread> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static UserThreadPersistence |
getPersistence() |
static UserThread |
remove(long userThreadId)
Removes the user thread with the primary key from the database.
|
static void |
removeAll()
Removes all the user threads from the database.
|
static void |
removeByMBThreadId(long mbThreadId)
Removes all the user threads where mbThreadId = ? from the database.
|
static void |
removeByU_D(long userId,
boolean deleted)
Removes all the user threads where userId = ? and deleted = ? from the database.
|
static UserThread |
removeByU_M(long userId,
long mbThreadId)
Removes the user thread where userId = ? and mbThreadId = ? from the database.
|
static void |
removeByU_R_D(long userId,
boolean read,
boolean deleted)
Removes all the user threads where userId = ? and read = ? and deleted = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the user threads where userId = ? from the database.
|
static UserThread |
update(UserThread userThread) |
static UserThread |
update(UserThread userThread,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static UserThread |
updateImpl(UserThread userThread) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(UserThread userThread)
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<UserThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<UserThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<UserThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static UserThread update(UserThread userThread)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static UserThread update(UserThread userThread, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<UserThread> findByUserId(long userId)
userId - the user IDpublic static java.util.List<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (not inclusive)public static java.util.List<UserThread> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserThread> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserThread findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread[] findByUserId_PrevAndNext(long userThreadId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userThreadId - the primary key of the current user threaduserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a user thread 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 java.util.List<UserThread> findByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDpublic static java.util.List<UserThread> findByMBThreadId(long mbThreadId, 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 UserThreadModelImpl. 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.
mbThreadId - the mb thread IDstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)public static java.util.List<UserThread> findByMBThreadId(long mbThreadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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.
mbThreadId - the mb thread IDstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserThread> findByMBThreadId(long mbThreadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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.
mbThreadId - the mb thread IDstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserThread findByMBThreadId_First(long mbThreadId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
mbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByMBThreadId_First(long mbThreadId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
mbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread findByMBThreadId_Last(long mbThreadId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
mbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByMBThreadId_Last(long mbThreadId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
mbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread[] findByMBThreadId_PrevAndNext(long userThreadId, long mbThreadId, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userThreadId - the primary key of the current user threadmbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic static void removeByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDpublic static int countByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDpublic static UserThread findByU_M(long userId, long mbThreadId) throws NoSuchUserThreadException
NoSuchUserThreadException if it could not be found.userId - the user IDmbThreadId - the mb thread IDNoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByU_M(long userId, long mbThreadId)
null if it could not be found. Uses the finder cache.userId - the user IDmbThreadId - the mb thread IDnull if a matching user thread could not be foundpublic static UserThread fetchByU_M(long userId, long mbThreadId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.userId - the user IDmbThreadId - the mb thread IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching user thread could not be foundpublic static UserThread removeByU_M(long userId, long mbThreadId) throws NoSuchUserThreadException
userId - the user IDmbThreadId - the mb thread IDNoSuchUserThreadExceptionpublic static int countByU_M(long userId,
long mbThreadId)
userId - the user IDmbThreadId - the mb thread IDpublic static java.util.List<UserThread> findByU_D(long userId, boolean deleted)
userId - the user IDdeleted - the deletedpublic static java.util.List<UserThread> findByU_D(long userId, boolean deleted, 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 UserThreadModelImpl. 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 IDdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)public static java.util.List<UserThread> findByU_D(long userId, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 IDdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserThread> findByU_D(long userId, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 IDdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserThread findByU_D_First(long userId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByU_D_First(long userId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread findByU_D_Last(long userId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByU_D_Last(long userId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread[] findByU_D_PrevAndNext(long userThreadId, long userId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userThreadId - the primary key of the current user threaduserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic static void removeByU_D(long userId,
boolean deleted)
userId - the user IDdeleted - the deletedpublic static int countByU_D(long userId,
boolean deleted)
userId - the user IDdeleted - the deletedpublic static java.util.List<UserThread> findByU_R_D(long userId, boolean read, boolean deleted)
userId - the user IDread - the readdeleted - the deletedpublic static java.util.List<UserThread> findByU_R_D(long userId, boolean read, boolean deleted, 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 UserThreadModelImpl. 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 IDread - the readdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)public static java.util.List<UserThread> findByU_R_D(long userId, boolean read, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 IDread - the readdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserThread> findByU_R_D(long userId, boolean read, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 IDread - the readdeleted - the deletedstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserThread findByU_R_D_First(long userId, boolean read, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByU_R_D_First(long userId, boolean read, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread findByU_R_D_Last(long userId, boolean read, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a matching user thread could not be foundpublic static UserThread fetchByU_R_D_Last(long userId, boolean read, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
userId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic static UserThread[] findByU_R_D_PrevAndNext(long userThreadId, long userId, boolean read, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator) throws NoSuchUserThreadException
userThreadId - the primary key of the current user threaduserId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic static void removeByU_R_D(long userId,
boolean read,
boolean deleted)
userId - the user IDread - the readdeleted - the deletedpublic static int countByU_R_D(long userId,
boolean read,
boolean deleted)
userId - the user IDread - the readdeleted - the deletedpublic static void cacheResult(UserThread userThread)
userThread - the user threadpublic static void cacheResult(java.util.List<UserThread> userThreads)
userThreads - the user threadspublic static UserThread create(long userThreadId)
userThreadId - the primary key for the new user threadpublic static UserThread remove(long userThreadId) throws NoSuchUserThreadException
userThreadId - the primary key of the user threadNoSuchUserThreadException - if a user thread with the primary key could not be foundpublic static UserThread updateImpl(UserThread userThread)
public static UserThread findByPrimaryKey(long userThreadId) throws NoSuchUserThreadException
NoSuchUserThreadException if it could not be found.userThreadId - the primary key of the user threadNoSuchUserThreadException - if a user thread with the primary key could not be foundpublic static UserThread fetchByPrimaryKey(long userThreadId)
null if it could not be found.userThreadId - the primary key of the user threadnull if a user thread with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,UserThread> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<UserThread> findAll()
public static java.util.List<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (not inclusive)public static java.util.List<UserThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserThread> 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 UserThreadModelImpl. 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 user threadsend - the upper bound of the range of user threads (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 java.util.Set<java.lang.String> getBadColumnNames()
public static UserThreadPersistence getPersistence()