@ProviderType
public class UserThreadPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>
implements com.liferay.social.privatemessaging.service.persistence.UserThreadPersistence
Caching information and settings can be found in portal.properties
UserThreadPersistence,
UserThreadUtil| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.service.persistence.CompanyProvider |
companyProvider |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
entityCache |
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_MBTHREADID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U_M |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U_R_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_U_M |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_MBTHREADID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_U_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_U_R_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MBTHREADID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_R_D |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
finderCache |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR| Constructor and Description |
|---|
UserThreadPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the user thread persistence.
|
void |
cacheResult(java.util.List<com.liferay.social.privatemessaging.model.UserThread> userThreads)
Caches the user threads in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.social.privatemessaging.model.UserThread userThread)
Caches the user thread in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(UserThreadModelImpl userThreadModelImpl,
boolean isNew) |
void |
clearCache()
Clears the cache for all user threads.
|
void |
clearCache(java.util.List<com.liferay.social.privatemessaging.model.UserThread> userThreads) |
void |
clearCache(com.liferay.social.privatemessaging.model.UserThread userThread)
Clears the cache for the user thread.
|
protected void |
clearUniqueFindersCache(UserThreadModelImpl userThreadModelImpl) |
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 = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
create(long userThreadId)
Creates a new user thread with the primary key.
|
void |
destroy() |
com.liferay.social.privatemessaging.model.UserThread |
fetchByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or returns
null if it could not be found. |
com.liferay.social.privatemessaging.model.UserThread |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the user thread with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,com.liferay.social.privatemessaging.model.UserThread> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
com.liferay.social.privatemessaging.model.UserThread |
fetchByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByU_M(long userId,
long mbThreadId)
Returns the user thread where userId = ? and mbThreadId = ? or returns
null if it could not be found. |
com.liferay.social.privatemessaging.model.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. |
com.liferay.social.privatemessaging.model.UserThread |
fetchByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findAll()
Returns all the user threads.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findAll(int start,
int end)
Returns a range of all the user threads.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns an ordered range of all the user threads.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads.
|
com.liferay.social.privatemessaging.model.UserThread |
findByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where mbThreadId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where mbThreadId = ?.
|
com.liferay.social.privatemessaging.model.UserThread[] |
findByMBThreadId_PrevAndNext(long userThreadId,
long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where mbThreadId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByMBThreadId(long mbThreadId)
Returns all the user threads where mbThreadId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end)
Returns a range of all the user threads where mbThreadId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns an ordered range of all the user threads where mbThreadId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where mbThreadId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByPrimaryKey(long userThreadId)
Returns the user thread with the primary key or throws a
NoSuchUserThreadException if it could not be found. |
com.liferay.social.privatemessaging.model.UserThread |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the user thread with the primary key or throws a
NoSuchModelException if it could not be found. |
com.liferay.social.privatemessaging.model.UserThread |
findByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread[] |
findByU_D_PrevAndNext(long userThreadId,
long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where userId = ? and deleted = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByU_D(long userId,
boolean deleted)
Returns all the user threads where userId = ? and deleted = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.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<com.liferay.social.privatemessaging.model.UserThread> |
findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ? and deleted = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.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. |
com.liferay.social.privatemessaging.model.UserThread |
findByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ? and read = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread[] |
findByU_R_D_PrevAndNext(long userThreadId,
long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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<com.liferay.social.privatemessaging.model.UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted)
Returns all the user threads where userId = ? and read = ? and deleted = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.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<com.liferay.social.privatemessaging.model.UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ? and read = ? and deleted = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ? and read = ? and deleted = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the first user thread in the ordered set where userId = ?.
|
com.liferay.social.privatemessaging.model.UserThread |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the last user thread in the ordered set where userId = ?.
|
com.liferay.social.privatemessaging.model.UserThread[] |
findByUserId_PrevAndNext(long userThreadId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns the user threads before and after the current user thread in the ordered set where userId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByUserId(long userId)
Returns all the user threads where userId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the user threads where userId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
Returns an ordered range of all the user threads where userId = ?.
|
java.util.List<com.liferay.social.privatemessaging.model.UserThread> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user threads where userId = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.social.privatemessaging.model.UserThread |
getByMBThreadId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous) |
protected com.liferay.social.privatemessaging.model.UserThread |
getByU_D_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous) |
protected com.liferay.social.privatemessaging.model.UserThread |
getByU_R_D_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous) |
protected com.liferay.social.privatemessaging.model.UserThread |
getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous) |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
com.liferay.social.privatemessaging.model.UserThread |
remove(long userThreadId)
Removes the user thread with the primary key from the database.
|
com.liferay.social.privatemessaging.model.UserThread |
remove(java.io.Serializable primaryKey)
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.
|
com.liferay.social.privatemessaging.model.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.
|
protected com.liferay.social.privatemessaging.model.UserThread |
removeImpl(com.liferay.social.privatemessaging.model.UserThread userThread) |
protected com.liferay.social.privatemessaging.model.UserThread |
toUnwrappedModel(com.liferay.social.privatemessaging.model.UserThread userThread) |
com.liferay.social.privatemessaging.model.UserThread |
updateImpl(com.liferay.social.privatemessaging.model.UserThread userThread) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_MBTHREADID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MBTHREADID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MBTHREADID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U_M
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_M
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_D
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_D
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_D
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_R_D
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_R_D
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_R_D
@ServiceReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class) protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.EntityCache.class) protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.FinderCache.class) protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
public java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByUserId(long userId)
findByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDpublic java.util.List<com.liferay.social.privatemessaging.model.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.
findByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDstart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)public java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 com.liferay.social.privatemessaging.model.UserThread findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByUserId_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByUserId_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByUserId_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByUserId_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread[] findByUserId_PrevAndNext(long userThreadId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByUserId_PrevAndNext in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the current user threaduserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundprotected com.liferay.social.privatemessaging.model.UserThread getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous)
public void removeByUserId(long userId)
removeByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDpublic int countByUserId(long userId)
countByUserId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDpublic java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByMBThreadId(long mbThreadId)
findByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDpublic java.util.List<com.liferay.social.privatemessaging.model.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.
findByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByMBThreadId(long mbThreadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - 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 com.liferay.social.privatemessaging.model.UserThread findByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByMBThreadId_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByMBThreadId_First(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByMBThreadId_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread findByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByMBThreadId_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByMBThreadId_Last(long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByMBThreadId_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread[] findByMBThreadId_PrevAndNext(long userThreadId,
long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByMBThreadId_PrevAndNext in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the current user threadmbThreadId - the mb thread IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundprotected com.liferay.social.privatemessaging.model.UserThread getByMBThreadId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long mbThreadId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous)
public void removeByMBThreadId(long mbThreadId)
removeByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDpublic int countByMBThreadId(long mbThreadId)
countByMBThreadId in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencembThreadId - the mb thread IDpublic com.liferay.social.privatemessaging.model.UserThread findByU_M(long userId,
long mbThreadId)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
NoSuchUserThreadException if it could not be found.findByU_M in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDmbThreadId - the mb thread IDcom.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_M(long userId,
long mbThreadId)
null if it could not be found. Uses the finder cache.fetchByU_M in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDmbThreadId - the mb thread IDnull if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_M(long userId,
long mbThreadId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByU_M in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDmbThreadId - the mb thread IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread removeByU_M(long userId,
long mbThreadId)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
removeByU_M in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDmbThreadId - the mb thread IDcom.liferay.social.privatemessaging.exception.NoSuchUserThreadExceptionpublic int countByU_M(long userId,
long mbThreadId)
countByU_M in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDmbThreadId - the mb thread IDpublic java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_D(long userId,
boolean deleted)
findByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedpublic java.util.List<com.liferay.social.privatemessaging.model.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.
findByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_D(long userId,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 com.liferay.social.privatemessaging.model.UserThread findByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_D_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_D_First(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByU_D_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread findByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_D_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_D_Last(long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByU_D_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)null if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread[] findByU_D_PrevAndNext(long userThreadId,
long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_D_PrevAndNext in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the current user threaduserId - the user IDdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundprotected com.liferay.social.privatemessaging.model.UserThread getByU_D_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous)
public void removeByU_D(long userId,
boolean deleted)
removeByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedpublic int countByU_D(long userId,
boolean deleted)
countByU_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDdeleted - the deletedpublic java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_R_D(long userId,
boolean read,
boolean deleted)
findByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDread - the readdeleted - the deletedpublic java.util.List<com.liferay.social.privatemessaging.model.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.
findByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findByU_R_D(long userId,
boolean read,
boolean deleted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 com.liferay.social.privatemessaging.model.UserThread findByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_R_D_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_R_D_First(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByU_R_D_First in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 com.liferay.social.privatemessaging.model.UserThread findByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_R_D_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a matching user thread could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByU_R_D_Last(long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
fetchByU_R_D_Last in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - 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 com.liferay.social.privatemessaging.model.UserThread[] findByU_R_D_PrevAndNext(long userThreadId,
long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
findByU_R_D_PrevAndNext in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the current user threaduserId - the user IDread - the readdeleted - the deletedorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundprotected com.liferay.social.privatemessaging.model.UserThread getByU_R_D_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.privatemessaging.model.UserThread userThread,
long userId,
boolean read,
boolean deleted,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.UserThread> orderByComparator,
boolean previous)
public void removeByU_R_D(long userId,
boolean read,
boolean deleted)
removeByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDread - the readdeleted - the deletedpublic int countByU_R_D(long userId,
boolean read,
boolean deleted)
countByU_R_D in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserId - the user IDread - the readdeleted - the deletedpublic void cacheResult(com.liferay.social.privatemessaging.model.UserThread userThread)
cacheResult in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThread - the user threadpublic void cacheResult(java.util.List<com.liferay.social.privatemessaging.model.UserThread> userThreads)
cacheResult in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreads - the user threadspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>public void clearCache(com.liferay.social.privatemessaging.model.UserThread userThread)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>public void clearCache(java.util.List<com.liferay.social.privatemessaging.model.UserThread> userThreads)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>protected void cacheUniqueFindersCache(UserThreadModelImpl userThreadModelImpl, boolean isNew)
protected void clearUniqueFindersCache(UserThreadModelImpl userThreadModelImpl)
public com.liferay.social.privatemessaging.model.UserThread create(long userThreadId)
create in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key for the new user threadpublic com.liferay.social.privatemessaging.model.UserThread remove(long userThreadId)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
remove in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the user threadcom.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic com.liferay.social.privatemessaging.model.UserThread remove(java.io.Serializable primaryKey)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>primaryKey - the primary key of the user threadcom.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundprotected com.liferay.social.privatemessaging.model.UserThread removeImpl(com.liferay.social.privatemessaging.model.UserThread userThread)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>public com.liferay.social.privatemessaging.model.UserThread updateImpl(com.liferay.social.privatemessaging.model.UserThread userThread)
updateImpl in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>protected com.liferay.social.privatemessaging.model.UserThread toUnwrappedModel(com.liferay.social.privatemessaging.model.UserThread userThread)
public com.liferay.social.privatemessaging.model.UserThread findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>primaryKey - the primary key of the user threadcom.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic com.liferay.social.privatemessaging.model.UserThread findByPrimaryKey(long userThreadId)
throws com.liferay.social.privatemessaging.exception.NoSuchUserThreadException
NoSuchUserThreadException if it could not be found.findByPrimaryKey in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the user threadcom.liferay.social.privatemessaging.exception.NoSuchUserThreadException - if a user thread with the primary key could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByPrimaryKey(java.io.Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>primaryKey - the primary key of the user threadnull if a user thread with the primary key could not be foundpublic com.liferay.social.privatemessaging.model.UserThread fetchByPrimaryKey(long userThreadId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistenceuserThreadId - the primary key of the user threadnull if a user thread with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.social.privatemessaging.model.UserThread> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>fetchByPrimaryKeys in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencefetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>public java.util.List<com.liferay.social.privatemessaging.model.UserThread> findAll()
findAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencepublic java.util.List<com.liferay.social.privatemessaging.model.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.
findAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencestart - the lower bound of the range of user threadsend - the upper bound of the range of user threads (not inclusive)public java.util.List<com.liferay.social.privatemessaging.model.UserThread> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencestart - 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 java.util.List<com.liferay.social.privatemessaging.model.UserThread> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.privatemessaging.model.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.
findAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencestart - 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 void removeAll()
removeAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencepublic int countAll()
countAll in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencepublic java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.privatemessaging.model.UserThread>getBadColumnNames in interface com.liferay.social.privatemessaging.service.persistence.UserThreadPersistencegetBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>protected java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.privatemessaging.model.UserThread>public void afterPropertiesSet()
public void destroy()