public class EntryUtil
extends java.lang.Object
com.liferay.chat.service.persistence.impl.EntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
EntryPersistence
Constructor and Description |
---|
EntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(Entry entry)
Caches the entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<Entry> entries)
Caches the entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Entry entry) |
static int |
countAll()
Returns the number of entries.
|
static int |
countByC_F_T(long createDate,
long fromUserId,
long toUserId)
Returns the number of entries where createDate = ? and fromUserId = ? and toUserId = ?.
|
static int |
countByC_F(long createDate,
long fromUserId)
Returns the number of entries where createDate = ? and fromUserId = ?.
|
static int |
countByC_T(long createDate,
long toUserId)
Returns the number of entries where createDate = ? and toUserId = ?.
|
static int |
countByCreateDate(long createDate)
Returns the number of entries where createDate = ?.
|
static int |
countByF_T_C(long fromUserId,
long toUserId,
java.lang.String content)
Returns the number of entries where fromUserId = ? and toUserId = ? and content = ?.
|
static int |
countByF_T(long fromUserId,
long toUserId)
Returns the number of entries where fromUserId = ? and toUserId = ?.
|
static int |
countByFromUserId(long fromUserId)
Returns the number of entries where fromUserId = ?.
|
static int |
countByToUserId(long toUserId)
Returns the number of entries where toUserId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Entry |
create(long entryId)
Creates a new entry with the primary key.
|
static Entry |
fetchByC_F_First(long createDate,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and fromUserId = ?.
|
static Entry |
fetchByC_F_Last(long createDate,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and fromUserId = ?.
|
static Entry |
fetchByC_F_T_First(long createDate,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?.
|
static Entry |
fetchByC_F_T_Last(long createDate,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?.
|
static Entry |
fetchByC_T_First(long createDate,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and toUserId = ?.
|
static Entry |
fetchByC_T_Last(long createDate,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and toUserId = ?.
|
static Entry |
fetchByCreateDate_First(long createDate,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ?.
|
static Entry |
fetchByCreateDate_Last(long createDate,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ?.
|
static Entry |
fetchByF_T_C_First(long fromUserId,
long toUserId,
java.lang.String content,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?.
|
static Entry |
fetchByF_T_C_Last(long fromUserId,
long toUserId,
java.lang.String content,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?.
|
static Entry |
fetchByF_T_First(long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ? and toUserId = ?.
|
static Entry |
fetchByF_T_Last(long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ? and toUserId = ?.
|
static Entry |
fetchByFromUserId_First(long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ?.
|
static Entry |
fetchByFromUserId_Last(long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ?.
|
static Entry |
fetchByPrimaryKey(long entryId)
Returns the entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Entry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Entry |
fetchByToUserId_First(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where toUserId = ?.
|
static Entry |
fetchByToUserId_Last(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where toUserId = ?.
|
static java.util.List<Entry> |
findAll()
Returns all the entries.
|
static java.util.List<Entry> |
findAll(int start,
int end)
Returns a range of all the entries.
|
static java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries.
|
static java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries.
|
static Entry |
findByC_F_First(long createDate,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and fromUserId = ?.
|
static Entry |
findByC_F_Last(long createDate,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and fromUserId = ?.
|
static Entry[] |
findByC_F_PrevAndNext(long entryId,
long createDate,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where createDate = ? and fromUserId = ?.
|
static Entry |
findByC_F_T_First(long createDate,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?.
|
static Entry |
findByC_F_T_Last(long createDate,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?.
|
static Entry[] |
findByC_F_T_PrevAndNext(long entryId,
long createDate,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_F_T(long createDate,
long fromUserId,
long toUserId)
Returns all the entries where createDate = ? and fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_F_T(long createDate,
long fromUserId,
long toUserId,
int start,
int end)
Returns a range of all the entries where createDate = ? and fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_F_T(long createDate,
long fromUserId,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where createDate = ? and fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_F_T(long createDate,
long fromUserId,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where createDate = ? and fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_F(long createDate,
long fromUserId)
Returns all the entries where createDate = ? and fromUserId = ?.
|
static java.util.List<Entry> |
findByC_F(long createDate,
long fromUserId,
int start,
int end)
Returns a range of all the entries where createDate = ? and fromUserId = ?.
|
static java.util.List<Entry> |
findByC_F(long createDate,
long fromUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where createDate = ? and fromUserId = ?.
|
static java.util.List<Entry> |
findByC_F(long createDate,
long fromUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where createDate = ? and fromUserId = ?.
|
static Entry |
findByC_T_First(long createDate,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ? and toUserId = ?.
|
static Entry |
findByC_T_Last(long createDate,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ? and toUserId = ?.
|
static Entry[] |
findByC_T_PrevAndNext(long entryId,
long createDate,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where createDate = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_T(long createDate,
long toUserId)
Returns all the entries where createDate = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_T(long createDate,
long toUserId,
int start,
int end)
Returns a range of all the entries where createDate = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_T(long createDate,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where createDate = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByC_T(long createDate,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where createDate = ? and toUserId = ?.
|
static Entry |
findByCreateDate_First(long createDate,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where createDate = ?.
|
static Entry |
findByCreateDate_Last(long createDate,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where createDate = ?.
|
static Entry[] |
findByCreateDate_PrevAndNext(long entryId,
long createDate,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where createDate = ?.
|
static java.util.List<Entry> |
findByCreateDate(long createDate)
Returns all the entries where createDate = ?.
|
static java.util.List<Entry> |
findByCreateDate(long createDate,
int start,
int end)
Returns a range of all the entries where createDate = ?.
|
static java.util.List<Entry> |
findByCreateDate(long createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where createDate = ?.
|
static java.util.List<Entry> |
findByCreateDate(long createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where createDate = ?.
|
static Entry |
findByF_T_C_First(long fromUserId,
long toUserId,
java.lang.String content,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?.
|
static Entry |
findByF_T_C_Last(long fromUserId,
long toUserId,
java.lang.String content,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?.
|
static Entry[] |
findByF_T_C_PrevAndNext(long entryId,
long fromUserId,
long toUserId,
java.lang.String content,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?.
|
static java.util.List<Entry> |
findByF_T_C(long fromUserId,
long toUserId,
java.lang.String content)
Returns all the entries where fromUserId = ? and toUserId = ? and content = ?.
|
static java.util.List<Entry> |
findByF_T_C(long fromUserId,
long toUserId,
java.lang.String content,
int start,
int end)
Returns a range of all the entries where fromUserId = ? and toUserId = ? and content = ?.
|
static java.util.List<Entry> |
findByF_T_C(long fromUserId,
long toUserId,
java.lang.String content,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where fromUserId = ? and toUserId = ? and content = ?.
|
static java.util.List<Entry> |
findByF_T_C(long fromUserId,
long toUserId,
java.lang.String content,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where fromUserId = ? and toUserId = ? and content = ?.
|
static Entry |
findByF_T_First(long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ? and toUserId = ?.
|
static Entry |
findByF_T_Last(long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ? and toUserId = ?.
|
static Entry[] |
findByF_T_PrevAndNext(long entryId,
long fromUserId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByF_T(long fromUserId,
long toUserId)
Returns all the entries where fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByF_T(long fromUserId,
long toUserId,
int start,
int end)
Returns a range of all the entries where fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByF_T(long fromUserId,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where fromUserId = ? and toUserId = ?.
|
static java.util.List<Entry> |
findByF_T(long fromUserId,
long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where fromUserId = ? and toUserId = ?.
|
static Entry |
findByFromUserId_First(long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where fromUserId = ?.
|
static Entry |
findByFromUserId_Last(long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where fromUserId = ?.
|
static Entry[] |
findByFromUserId_PrevAndNext(long entryId,
long fromUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where fromUserId = ?.
|
static java.util.List<Entry> |
findByFromUserId(long fromUserId)
Returns all the entries where fromUserId = ?.
|
static java.util.List<Entry> |
findByFromUserId(long fromUserId,
int start,
int end)
Returns a range of all the entries where fromUserId = ?.
|
static java.util.List<Entry> |
findByFromUserId(long fromUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where fromUserId = ?.
|
static java.util.List<Entry> |
findByFromUserId(long fromUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where fromUserId = ?.
|
static Entry |
findByPrimaryKey(long entryId)
Returns the entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static Entry |
findByToUserId_First(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where toUserId = ?.
|
static Entry |
findByToUserId_Last(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where toUserId = ?.
|
static Entry[] |
findByToUserId_PrevAndNext(long entryId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where toUserId = ?.
|
static java.util.List<Entry> |
findByToUserId(long toUserId)
Returns all the entries where toUserId = ?.
|
static java.util.List<Entry> |
findByToUserId(long toUserId,
int start,
int end)
Returns a range of all the entries where toUserId = ?.
|
static java.util.List<Entry> |
findByToUserId(long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where toUserId = ?.
|
static java.util.List<Entry> |
findByToUserId(long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries where toUserId = ?.
|
static java.util.List<Entry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Entry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Entry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) |
static EntryPersistence |
getPersistence() |
static Entry |
remove(long entryId)
Removes the entry with the primary key from the database.
|
static void |
removeAll()
Removes all the entries from the database.
|
static void |
removeByC_F_T(long createDate,
long fromUserId,
long toUserId)
Removes all the entries where createDate = ? and fromUserId = ? and toUserId = ? from the database.
|
static void |
removeByC_F(long createDate,
long fromUserId)
Removes all the entries where createDate = ? and fromUserId = ? from the database.
|
static void |
removeByC_T(long createDate,
long toUserId)
Removes all the entries where createDate = ? and toUserId = ? from the database.
|
static void |
removeByCreateDate(long createDate)
Removes all the entries where createDate = ? from the database.
|
static void |
removeByF_T_C(long fromUserId,
long toUserId,
java.lang.String content)
Removes all the entries where fromUserId = ? and toUserId = ? and content = ? from the database.
|
static void |
removeByF_T(long fromUserId,
long toUserId)
Removes all the entries where fromUserId = ? and toUserId = ? from the database.
|
static void |
removeByFromUserId(long fromUserId)
Removes all the entries where fromUserId = ? from the database.
|
static void |
removeByToUserId(long toUserId)
Removes all the entries where toUserId = ? from the database.
|
static Entry |
update(Entry entry) |
static Entry |
update(Entry entry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Entry |
updateImpl(Entry entry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Entry entry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,Entry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Entry update(Entry entry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Entry update(Entry entry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Entry> findByCreateDate(long createDate)
createDate
- the create datepublic static java.util.List<Entry> findByCreateDate(long createDate, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datestart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByCreateDate(long createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datestart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByCreateDate(long createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datestart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByCreateDate_First(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByCreateDate_First(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByCreateDate_Last(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByCreateDate_Last(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByCreateDate_PrevAndNext(long entryId, long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entrycreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByCreateDate(long createDate)
createDate
- the create datepublic static int countByCreateDate(long createDate)
createDate
- the create datepublic static java.util.List<Entry> findByFromUserId(long fromUserId)
fromUserId
- the from user IDpublic static java.util.List<Entry> findByFromUserId(long fromUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByFromUserId(long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByFromUserId(long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByFromUserId_First(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByFromUserId_First(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByFromUserId_Last(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByFromUserId_Last(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByFromUserId_PrevAndNext(long entryId, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entryfromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByFromUserId(long fromUserId)
fromUserId
- the from user IDpublic static int countByFromUserId(long fromUserId)
fromUserId
- the from user IDpublic static java.util.List<Entry> findByToUserId(long toUserId)
toUserId
- the to user IDpublic static java.util.List<Entry> findByToUserId(long toUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
toUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
toUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
toUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByToUserId_PrevAndNext(long entryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entrytoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByToUserId(long toUserId)
toUserId
- the to user IDpublic static int countByToUserId(long toUserId)
toUserId
- the to user IDpublic static java.util.List<Entry> findByC_F(long createDate, long fromUserId)
createDate
- the create datefromUserId
- the from user IDpublic static java.util.List<Entry> findByC_F(long createDate, long fromUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByC_F(long createDate, long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByC_F(long createDate, long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByC_F_First(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datefromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_F_First(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datefromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByC_F_Last(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datefromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_F_Last(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datefromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByC_F_PrevAndNext(long entryId, long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entrycreateDate
- the create datefromUserId
- the from user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByC_F(long createDate, long fromUserId)
createDate
- the create datefromUserId
- the from user IDpublic static int countByC_F(long createDate, long fromUserId)
createDate
- the create datefromUserId
- the from user IDpublic static java.util.List<Entry> findByC_T(long createDate, long toUserId)
createDate
- the create datetoUserId
- the to user IDpublic static java.util.List<Entry> findByC_T(long createDate, long toUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datetoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByC_T(long createDate, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datetoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByC_T(long createDate, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datetoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByC_T_First(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datetoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_T_First(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datetoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByC_T_Last(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datetoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_T_Last(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datetoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByC_T_PrevAndNext(long entryId, long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entrycreateDate
- the create datetoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByC_T(long createDate, long toUserId)
createDate
- the create datetoUserId
- the to user IDpublic static int countByC_T(long createDate, long toUserId)
createDate
- the create datetoUserId
- the to user IDpublic static java.util.List<Entry> findByF_T(long fromUserId, long toUserId)
fromUserId
- the from user IDtoUserId
- the to user IDpublic static java.util.List<Entry> findByF_T(long fromUserId, long toUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByF_T(long fromUserId, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByF_T(long fromUserId, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByF_T_First(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByF_T_First(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByF_T_Last(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByF_T_Last(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByF_T_PrevAndNext(long entryId, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entryfromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByF_T(long fromUserId, long toUserId)
fromUserId
- the from user IDtoUserId
- the to user IDpublic static int countByF_T(long fromUserId, long toUserId)
fromUserId
- the from user IDtoUserId
- the to user IDpublic static java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId)
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDpublic static java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByC_F_T_First(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_F_T_First(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByC_F_T_Last(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByC_F_T_Last(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByC_F_T_PrevAndNext(long entryId, long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entrycreateDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByC_F_T(long createDate, long fromUserId, long toUserId)
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDpublic static int countByC_F_T(long createDate, long fromUserId, long toUserId)
createDate
- the create datefromUserId
- the from user IDtoUserId
- the to user IDpublic static java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content)
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentpublic static java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentstart
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Entry findByF_T_C_First(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByF_T_C_First(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry findByF_T_C_Last(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundpublic static Entry fetchByF_T_C_Last(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundpublic static Entry[] findByF_T_C_PrevAndNext(long entryId, long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entryfromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundpublic static void removeByF_T_C(long fromUserId, long toUserId, java.lang.String content)
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentpublic static int countByF_T_C(long fromUserId, long toUserId, java.lang.String content)
fromUserId
- the from user IDtoUserId
- the to user IDcontent
- the contentpublic static void cacheResult(Entry entry)
entry
- the entrypublic static void cacheResult(java.util.List<Entry> entries)
entries
- the entriespublic static Entry create(long entryId)
entryId
- the primary key for the new entrypublic static Entry remove(long entryId) throws NoSuchEntryException
entryId
- the primary key of the entryNoSuchEntryException
- if a entry with the primary key could not be foundpublic static Entry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.entryId
- the primary key of the entryNoSuchEntryException
- if a entry with the primary key could not be foundpublic static Entry fetchByPrimaryKey(long entryId)
null
if it could not be found.entryId
- the primary key of the entrynull
if a entry with the primary key could not be foundpublic static java.util.List<Entry> findAll()
public static java.util.List<Entry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
start
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)public static java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
start
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from EntryModelImpl
.
start
- the lower bound of the range of entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static EntryPersistence getPersistence()