@ProviderType public interface UserThreadPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<UserThread>
Caching information and settings can be found in portal.properties
com.liferay.social.privatemessaging.service.persistence.impl.UserThreadPersistenceImpl,
UserThreadUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<UserThread> userThreads)
Caches the user threads in the entity cache if it is enabled.
|
void |
cacheResult(UserThread userThread)
Caches the user thread in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of user threads.
|
int |
countByMBThreadId(long mbThreadId)
Returns the number of user threads where mbThreadId = ?.
|
int |
countByU_D(long userId,
boolean deleted)
Returns the number of user threads where userId = ? and deleted = ?.
|
int |
countByU_M(long userId,
long mbThreadId)
Returns the number of user threads where userId = ? and mbThreadId = ?.
|
int |
countByU_R_D(long userId,
boolean read,
boolean deleted)
Returns the number of user threads where userId = ? and read = ? and deleted = ?.
|
int |
countByUserId(long userId)
Returns the number of user threads where userId = ?.
|
UserThread |
create(long userThreadId)
Creates a new user thread with the primary key.
|
UserThread |
fetchByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
UserThread |
fetchByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
UserThread |
fetchByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,UserThread> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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 = ?.
|
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 = ?.
|
UserThread |
fetchByU_M(long userId,
long mbThreadId)
Returns the user thread where userId = ? and mbThreadId = ? or returns
null if it could not be found. |
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. |
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 = ?.
|
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 = ?.
|
UserThread |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
UserThread |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
java.util.List<UserThread> |
findAll()
Returns all the user threads.
|
java.util.List<UserThread> |
findAll(int start,
int end)
Returns a range of all the user threads.
|
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.
|
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.
|
UserThread |
findByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
UserThread |
findByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
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 = ?.
|
java.util.List<UserThread> |
findByMBThreadId(long mbThreadId)
Returns all the user threads where mbThreadId = ?.
|
java.util.List<UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end)
Returns a range of all the user threads where mbThreadId = ?.
|
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 = ?.
|
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 = ?.
|
UserThread |
findByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or throws a
NoSuchUserThreadException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserThread> |
findByU_D(long userId,
boolean deleted)
Returns all the user threads where userId = ? and deleted = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted)
Returns all the user threads where userId = ? and read = ? and deleted = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
UserThread |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
UserThread |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
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 = ?.
|
java.util.List<UserThread> |
findByUserId(long userId)
Returns all the user threads where userId = ?.
|
java.util.List<UserThread> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the user threads where userId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
UserThread |
remove(long userThreadId)
Removes the user thread with the primary key from the database.
|
void |
removeAll()
Removes all the user threads from the database.
|
void |
removeByMBThreadId(long mbThreadId)
Removes all the user threads where mbThreadId = ? from the database.
|
void |
removeByU_D(long userId,
boolean deleted)
Removes all the user threads where userId = ? and deleted = ? from the database.
|
UserThread |
removeByU_M(long userId,
long mbThreadId)
Removes the user thread where userId = ? and mbThreadId = ? from the database.
|
void |
removeByU_R_D(long userId,
boolean read,
boolean deleted)
Removes all the user threads where userId = ? and read = ? and deleted = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the user threads where userId = ? from the database.
|
UserThread |
updateImpl(UserThread userThread) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<UserThread> findByUserId(long userId)
userId - the user IDjava.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)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)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 cacheUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread[] 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 foundvoid removeByUserId(long userId)
userId - the user IDint countByUserId(long userId)
userId - the user IDjava.util.List<UserThread> findByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDjava.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)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)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 cacheUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread[] 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 foundvoid removeByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDint countByMBThreadId(long mbThreadId)
mbThreadId - the mb thread IDUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread removeByU_M(long userId, long mbThreadId) throws NoSuchUserThreadException
userId - the user IDmbThreadId - the mb thread IDNoSuchUserThreadExceptionint countByU_M(long userId,
long mbThreadId)
userId - the user IDmbThreadId - the mb thread IDjava.util.List<UserThread> findByU_D(long userId, boolean deleted)
userId - the user IDdeleted - the deletedjava.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)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)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 cacheUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread[] 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 foundvoid removeByU_D(long userId,
boolean deleted)
userId - the user IDdeleted - the deletedint countByU_D(long userId,
boolean deleted)
userId - the user IDdeleted - the deletedjava.util.List<UserThread> findByU_R_D(long userId, boolean read, boolean deleted)
userId - the user IDread - the readdeleted - the deletedjava.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)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)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 cacheUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread 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 foundUserThread[] 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 foundvoid removeByU_R_D(long userId,
boolean read,
boolean deleted)
userId - the user IDread - the readdeleted - the deletedint countByU_R_D(long userId,
boolean read,
boolean deleted)
userId - the user IDread - the readdeleted - the deletedvoid cacheResult(UserThread userThread)
userThread - the user threadvoid cacheResult(java.util.List<UserThread> userThreads)
userThreads - the user threadsUserThread create(long userThreadId)
userThreadId - the primary key for the new user threadUserThread remove(long userThreadId) throws NoSuchUserThreadException
userThreadId - the primary key of the user threadNoSuchUserThreadException - if a user thread with the primary key could not be foundUserThread updateImpl(UserThread userThread)
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 foundUserThread 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 foundjava.util.Map<java.io.Serializable,UserThread> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<UserThread>java.util.List<UserThread> findAll()
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)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)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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<UserThread>