/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.chat.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.chat.exception.NoSuchEntryException; import com.liferay.chat.model.Entry; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the entry service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.chat.service.persistence.impl.EntryPersistenceImpl * @see EntryUtil * @generated */ @ProviderType public interface EntryPersistence extends BasePersistence<Entry> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link EntryUtil} to access the entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the entries where createDate = ?. * * @param createDate the create date * @return the matching entries */ public java.util.List<Entry> findByCreateDate(long createDate); /** * Returns a range of all the entries where createDate = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByCreateDate(long createDate, int start, int end); /** * Returns an ordered range of all the entries where createDate = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByCreateDate(long createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where createDate = ?. * * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByCreateDate_First(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where createDate = ?. * * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByCreateDate_First(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where createDate = ?. * * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByCreateDate_Last(long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where createDate = ?. * * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByCreateDate_Last(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 = ?. * * @param entryId the primary key of the current entry * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByCreateDate_PrevAndNext(long entryId, long createDate, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where createDate = ? from the database. * * @param createDate the create date */ public void removeByCreateDate(long createDate); /** * Returns the number of entries where createDate = ?. * * @param createDate the create date * @return the number of matching entries */ public int countByCreateDate(long createDate); /** * Returns all the entries where fromUserId = ?. * * @param fromUserId the from user ID * @return the matching entries */ public java.util.List<Entry> findByFromUserId(long fromUserId); /** * Returns a range of all the entries where fromUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByFromUserId(long fromUserId, int start, int end); /** * Returns an ordered range of all the entries where fromUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByFromUserId(long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where fromUserId = ?. * * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByFromUserId_First(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where fromUserId = ?. * * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByFromUserId_First(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where fromUserId = ?. * * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByFromUserId_Last(long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where fromUserId = ?. * * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByFromUserId_Last(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 = ?. * * @param entryId the primary key of the current entry * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByFromUserId_PrevAndNext(long entryId, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where fromUserId = ? from the database. * * @param fromUserId the from user ID */ public void removeByFromUserId(long fromUserId); /** * Returns the number of entries where fromUserId = ?. * * @param fromUserId the from user ID * @return the number of matching entries */ public int countByFromUserId(long fromUserId); /** * Returns all the entries where toUserId = ?. * * @param toUserId the to user ID * @return the matching entries */ public java.util.List<Entry> findByToUserId(long toUserId); /** * Returns a range of all the entries where toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByToUserId(long toUserId, int start, int end); /** * Returns an ordered range of all the entries where toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByToUserId_Last(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 = ?. * * @param entryId the primary key of the current entry * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByToUserId_PrevAndNext(long entryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where toUserId = ? from the database. * * @param toUserId the to user ID */ public void removeByToUserId(long toUserId); /** * Returns the number of entries where toUserId = ?. * * @param toUserId the to user ID * @return the number of matching entries */ public int countByToUserId(long toUserId); /** * Returns all the entries where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @return the matching entries */ public java.util.List<Entry> findByC_F(long createDate, long fromUserId); /** * Returns a range of all the entries where createDate = ? and fromUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByC_F(long createDate, long fromUserId, int start, int end); /** * Returns an ordered range of all the entries where createDate = ? and fromUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByC_F(long createDate, long fromUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_F_First(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_F_First(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_F_Last(long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_F_Last(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 = ?. * * @param entryId the primary key of the current entry * @param createDate the create date * @param fromUserId the from user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByC_F_PrevAndNext(long entryId, long createDate, long fromUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where createDate = ? and fromUserId = ? from the database. * * @param createDate the create date * @param fromUserId the from user ID */ public void removeByC_F(long createDate, long fromUserId); /** * Returns the number of entries where createDate = ? and fromUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @return the number of matching entries */ public int countByC_F(long createDate, long fromUserId); /** * Returns all the entries where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @return the matching entries */ public java.util.List<Entry> findByC_T(long createDate, long toUserId); /** * Returns a range of all the entries where createDate = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByC_T(long createDate, long toUserId, int start, int end); /** * Returns an ordered range of all the entries where createDate = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByC_T(long createDate, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_T_First(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_T_First(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_T_Last(long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_T_Last(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 = ?. * * @param entryId the primary key of the current entry * @param createDate the create date * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByC_T_PrevAndNext(long entryId, long createDate, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where createDate = ? and toUserId = ? from the database. * * @param createDate the create date * @param toUserId the to user ID */ public void removeByC_T(long createDate, long toUserId); /** * Returns the number of entries where createDate = ? and toUserId = ?. * * @param createDate the create date * @param toUserId the to user ID * @return the number of matching entries */ public int countByC_T(long createDate, long toUserId); /** * Returns all the entries where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @return the matching entries */ public java.util.List<Entry> findByF_T(long fromUserId, long toUserId); /** * Returns a range of all the entries where fromUserId = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByF_T(long fromUserId, long toUserId, int start, int end); /** * Returns an ordered range of all the entries where fromUserId = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public java.util.List<Entry> findByF_T(long fromUserId, long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Returns the first entry in the ordered set where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByF_T_First(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByF_T_First(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator); /** * Returns the last entry in the ordered set where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByF_T_Last(long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByF_T_Last(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 = ?. * * @param entryId the primary key of the current entry * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByF_T_PrevAndNext(long entryId, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where fromUserId = ? and toUserId = ? from the database. * * @param fromUserId the from user ID * @param toUserId the to user ID */ public void removeByF_T(long fromUserId, long toUserId); /** * Returns the number of entries where fromUserId = ? and toUserId = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @return the number of matching entries */ public int countByF_T(long fromUserId, long toUserId); /** * Returns all the entries where createDate = ? and fromUserId = ? and toUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @return the matching entries */ public java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId); /** * Returns a range of all the entries where createDate = ? and fromUserId = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByC_F_T(long createDate, long fromUserId, long toUserId, int start, int end); /** * Returns an ordered range of all the entries where createDate = ? and fromUserId = ? and toUserId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public 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 retrieveFromCache); /** * Returns the first entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_F_T_First(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_F_T_First(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 = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByC_F_T_Last(long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where createDate = ? and fromUserId = ? and toUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByC_F_T_Last(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 = ?. * * @param entryId the primary key of the current entry * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry[] findByC_F_T_PrevAndNext(long entryId, long createDate, long fromUserId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Removes all the entries where createDate = ? and fromUserId = ? and toUserId = ? from the database. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID */ public void removeByC_F_T(long createDate, long fromUserId, long toUserId); /** * Returns the number of entries where createDate = ? and fromUserId = ? and toUserId = ?. * * @param createDate the create date * @param fromUserId the from user ID * @param toUserId the to user ID * @return the number of matching entries */ public int countByC_F_T(long createDate, long fromUserId, long toUserId); /** * Returns all the entries where fromUserId = ? and toUserId = ? and content = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @return the matching entries */ public java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content); /** * Returns a range of all the entries where fromUserId = ? and toUserId = ? and content = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of matching entries */ public java.util.List<Entry> findByF_T_C(long fromUserId, long toUserId, java.lang.String content, int start, int end); /** * Returns an ordered range of all the entries where fromUserId = ? and toUserId = ? and content = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching entries */ public 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching entries */ public 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 retrieveFromCache); /** * Returns the first entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByF_T_C_First(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the first entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByF_T_C_First(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 = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry * @throws NoSuchEntryException if a matching entry could not be found */ public Entry findByF_T_C_Last(long fromUserId, long toUserId, java.lang.String content, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException; /** * Returns the last entry in the ordered set where fromUserId = ? and toUserId = ? and content = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching entry, or <code>null</code> if a matching entry could not be found */ public Entry fetchByF_T_C_Last(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 = ?. * * @param entryId the primary key of the current entry * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public 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; /** * Removes all the entries where fromUserId = ? and toUserId = ? and content = ? from the database. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content */ public void removeByF_T_C(long fromUserId, long toUserId, java.lang.String content); /** * Returns the number of entries where fromUserId = ? and toUserId = ? and content = ?. * * @param fromUserId the from user ID * @param toUserId the to user ID * @param content the content * @return the number of matching entries */ public int countByF_T_C(long fromUserId, long toUserId, java.lang.String content); /** * Caches the entry in the entity cache if it is enabled. * * @param entry the entry */ public void cacheResult(Entry entry); /** * Caches the entries in the entity cache if it is enabled. * * @param entries the entries */ public void cacheResult(java.util.List<Entry> entries); /** * Creates a new entry with the primary key. Does not add the entry to the database. * * @param entryId the primary key for the new entry * @return the new entry */ public Entry create(long entryId); /** * Removes the entry with the primary key from the database. Also notifies the appropriate model listeners. * * @param entryId the primary key of the entry * @return the entry that was removed * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry remove(long entryId) throws NoSuchEntryException; public Entry updateImpl(Entry entry); /** * Returns the entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found. * * @param entryId the primary key of the entry * @return the entry * @throws NoSuchEntryException if a entry with the primary key could not be found */ public Entry findByPrimaryKey(long entryId) throws NoSuchEntryException; /** * Returns the entry with the primary key or returns <code>null</code> if it could not be found. * * @param entryId the primary key of the entry * @return the entry, or <code>null</code> if a entry with the primary key could not be found */ public Entry fetchByPrimaryKey(long entryId); @Override public java.util.Map<java.io.Serializable, Entry> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the entries. * * @return the entries */ public java.util.List<Entry> findAll(); /** * Returns a range of all the entries. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @return the range of entries */ public java.util.List<Entry> findAll(int start, int end); /** * Returns an ordered range of all the entries. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of entries */ public 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. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EntryModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of entries * @param end the upper bound of the range of entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of entries */ public java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean retrieveFromCache); /** * Removes all the entries from the database. */ public void removeAll(); /** * Returns the number of entries. * * @return the number of entries */ public int countAll(); }