All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.sharing.service.persistence.SharingEntryPersistence Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.sharing.service.persistence;

import com.liferay.portal.kernel.service.persistence.BasePersistence;
import com.liferay.sharing.exception.NoSuchEntryException;
import com.liferay.sharing.model.SharingEntry;

import java.util.Date;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the sharing entry service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see SharingEntryUtil * @generated */ @ProviderType public interface SharingEntryPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link SharingEntryUtil} to access the sharing entry persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the sharing entries where uuid = ?. * * @param uuid the uuid * @return the matching sharing entries */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the sharing entries where uuid = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the sharing entries where uuid = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where uuid = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByUuid_PrevAndNext( long sharingEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of sharing entries where uuid = ?. * * @param uuid the uuid * @return the number of matching sharing entries */ public int countByUuid(String uuid); /** * Returns the sharing entry where uuid = ? and groupId = ? or throws a NoSuchEntryException if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUUID_G(String uuid, long groupId) throws NoSuchEntryException; /** * Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUUID_G(String uuid, long groupId); /** * Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param useFinderCache whether to use the finder cache * @return the matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUUID_G( String uuid, long groupId, boolean useFinderCache); /** * Removes the sharing entry where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the sharing entry that was removed */ public SharingEntry removeByUUID_G(String uuid, long groupId) throws NoSuchEntryException; /** * Returns the number of sharing entries where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching sharing entries */ public int countByUUID_G(String uuid, long groupId); /** * Returns all the sharing entries where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching sharing entries */ public java.util.List findByUuid_C( String uuid, long companyId); /** * Returns a range of all the sharing entries where uuid = ? and companyId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ? and companyId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByUuid_C_PrevAndNext( long sharingEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of sharing entries where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching sharing entries */ public int countByUuid_C(String uuid, long companyId); /** * Returns all the sharing entries where groupId = ?. * * @param groupId the group ID * @return the matching sharing entries */ public java.util.List findByGroupId(long groupId); /** * Returns a range of all the sharing entries where groupId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByGroupId( long groupId, int start, int end); /** * Returns an ordered range of all the sharing entries where groupId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where groupId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where groupId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByGroupId_PrevAndNext( long sharingEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of sharing entries where groupId = ?. * * @param groupId the group ID * @return the number of matching sharing entries */ public int countByGroupId(long groupId); /** * Returns all the sharing entries where userId = ?. * * @param userId the user ID * @return the matching sharing entries */ public java.util.List findByUserId(long userId); /** * Returns a range of all the sharing entries where userId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByUserId( long userId, int start, int end); /** * Returns an ordered range of all the sharing entries where userId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where userId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByUserId_PrevAndNext( long sharingEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where userId = ? from the database. * * @param userId the user ID */ public void removeByUserId(long userId); /** * Returns the number of sharing entries where userId = ?. * * @param userId the user ID * @return the number of matching sharing entries */ public int countByUserId(long userId); /** * Returns all the sharing entries where toUserId = ?. * * @param toUserId the to user ID * @return the matching sharing entries */ public java.util.List findByToUserId(long toUserId); /** * Returns a range of all the sharing entries where toUserId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByToUserId( long toUserId, int start, int end); /** * Returns an ordered range of all the sharing entries where toUserId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByToUserId( long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where toUserId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByToUserId( long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByToUserId_First( long toUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByToUserId_First( long toUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByToUserId_Last( long toUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where toUserId = ?. * * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByToUserId_Last( long toUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param toUserId the to user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByToUserId_PrevAndNext( long sharingEntryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where toUserId = ? from the database. * * @param toUserId the to user ID */ public void removeByToUserId(long toUserId); /** * Returns the number of sharing entries where toUserId = ?. * * @param toUserId the to user ID * @return the number of matching sharing entries */ public int countByToUserId(long toUserId); /** * Returns all the sharing entries where expirationDate < ?. * * @param expirationDate the expiration date * @return the matching sharing entries */ public java.util.List findByLtExpirationDate( Date expirationDate); /** * Returns a range of all the sharing entries where expirationDate < ?. * *

* 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 SharingEntryModelImpl. *

* * @param expirationDate the expiration date * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByLtExpirationDate( Date expirationDate, int start, int end); /** * Returns an ordered range of all the sharing entries where expirationDate < ?. * *

* 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 SharingEntryModelImpl. *

* * @param expirationDate the expiration date * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByLtExpirationDate( Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where expirationDate < ?. * *

* 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 SharingEntryModelImpl. *

* * @param expirationDate the expiration date * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByLtExpirationDate( Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where expirationDate < ?. * * @param expirationDate the expiration date * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByLtExpirationDate_First( Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where expirationDate < ?. * * @param expirationDate the expiration date * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByLtExpirationDate_First( Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where expirationDate < ?. * * @param expirationDate the expiration date * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByLtExpirationDate_Last( Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where expirationDate < ?. * * @param expirationDate the expiration date * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByLtExpirationDate_Last( Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where expirationDate < ?. * * @param sharingEntryId the primary key of the current sharing entry * @param expirationDate the expiration date * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByLtExpirationDate_PrevAndNext( long sharingEntryId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where expirationDate < ? from the database. * * @param expirationDate the expiration date */ public void removeByLtExpirationDate(Date expirationDate); /** * Returns the number of sharing entries where expirationDate < ?. * * @param expirationDate the expiration date * @return the number of matching sharing entries */ public int countByLtExpirationDate(Date expirationDate); /** * Returns all the sharing entries where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @return the matching sharing entries */ public java.util.List findByU_C( long userId, long classNameId); /** * Returns a range of all the sharing entries where userId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByU_C( long userId, long classNameId, int start, int end); /** * Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByU_C( long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByU_C( long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByU_C_First( long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByU_C_First( long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByU_C_Last( long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByU_C_Last( long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ? and classNameId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByU_C_PrevAndNext( long sharingEntryId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where userId = ? and classNameId = ? from the database. * * @param userId the user ID * @param classNameId the class name ID */ public void removeByU_C(long userId, long classNameId); /** * Returns the number of sharing entries where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @return the number of matching sharing entries */ public int countByU_C(long userId, long classNameId); /** * Returns all the sharing entries where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @return the matching sharing entries */ public java.util.List findByTU_C( long toUserId, long classNameId); /** * Returns a range of all the sharing entries where toUserId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByTU_C( long toUserId, long classNameId, int start, int end); /** * Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByTU_C( long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?. * *

* 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 SharingEntryModelImpl. *

* * @param toUserId the to user ID * @param classNameId the class name ID * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByTU_C( long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByTU_C_First( long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByTU_C_First( long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByTU_C_Last( long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByTU_C_Last( long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ? and classNameId = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param toUserId the to user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByTU_C_PrevAndNext( long sharingEntryId, long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where toUserId = ? and classNameId = ? from the database. * * @param toUserId the to user ID * @param classNameId the class name ID */ public void removeByTU_C(long toUserId, long classNameId); /** * Returns the number of sharing entries where toUserId = ? and classNameId = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @return the number of matching sharing entries */ public int countByTU_C(long toUserId, long classNameId); /** * Returns all the sharing entries where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching sharing entries */ public java.util.List findByC_C( long classNameId, long classPK); /** * Returns a range of all the sharing entries where classNameId = ? and classPK = ?. * *

* 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 SharingEntryModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of matching sharing entries */ public java.util.List findByC_C( long classNameId, long classPK, int start, int end); /** * Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?. * *

* 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 SharingEntryModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching sharing entries */ public java.util.List findByC_C( long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?. * *

* 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 SharingEntryModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching sharing entries */ public java.util.List findByC_C( long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByC_C_First( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByC_C_First( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByC_C_Last( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByC_C_Last( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the sharing entries before and after the current sharing entry in the ordered set where classNameId = ? and classPK = ?. * * @param sharingEntryId the primary key of the current sharing entry * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry[] findByC_C_PrevAndNext( long sharingEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the sharing entries where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk */ public void removeByC_C(long classNameId, long classPK); /** * Returns the number of sharing entries where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching sharing entries */ public int countByC_C(long classNameId, long classPK); /** * Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found. * * @param toUserId the to user ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching sharing entry * @throws NoSuchEntryException if a matching sharing entry could not be found */ public SharingEntry findByTU_C_C( long toUserId, long classNameId, long classPK) throws NoSuchEntryException; /** * Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param toUserId the to user ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByTU_C_C( long toUserId, long classNameId, long classPK); /** * Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param toUserId the to user ID * @param classNameId the class name ID * @param classPK the class pk * @param useFinderCache whether to use the finder cache * @return the matching sharing entry, or null if a matching sharing entry could not be found */ public SharingEntry fetchByTU_C_C( long toUserId, long classNameId, long classPK, boolean useFinderCache); /** * Removes the sharing entry where toUserId = ? and classNameId = ? and classPK = ? from the database. * * @param toUserId the to user ID * @param classNameId the class name ID * @param classPK the class pk * @return the sharing entry that was removed */ public SharingEntry removeByTU_C_C( long toUserId, long classNameId, long classPK) throws NoSuchEntryException; /** * Returns the number of sharing entries where toUserId = ? and classNameId = ? and classPK = ?. * * @param toUserId the to user ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching sharing entries */ public int countByTU_C_C(long toUserId, long classNameId, long classPK); /** * Caches the sharing entry in the entity cache if it is enabled. * * @param sharingEntry the sharing entry */ public void cacheResult(SharingEntry sharingEntry); /** * Caches the sharing entries in the entity cache if it is enabled. * * @param sharingEntries the sharing entries */ public void cacheResult(java.util.List sharingEntries); /** * Creates a new sharing entry with the primary key. Does not add the sharing entry to the database. * * @param sharingEntryId the primary key for the new sharing entry * @return the new sharing entry */ public SharingEntry create(long sharingEntryId); /** * Removes the sharing entry with the primary key from the database. Also notifies the appropriate model listeners. * * @param sharingEntryId the primary key of the sharing entry * @return the sharing entry that was removed * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry remove(long sharingEntryId) throws NoSuchEntryException; public SharingEntry updateImpl(SharingEntry sharingEntry); /** * Returns the sharing entry with the primary key or throws a NoSuchEntryException if it could not be found. * * @param sharingEntryId the primary key of the sharing entry * @return the sharing entry * @throws NoSuchEntryException if a sharing entry with the primary key could not be found */ public SharingEntry findByPrimaryKey(long sharingEntryId) throws NoSuchEntryException; /** * Returns the sharing entry with the primary key or returns null if it could not be found. * * @param sharingEntryId the primary key of the sharing entry * @return the sharing entry, or null if a sharing entry with the primary key could not be found */ public SharingEntry fetchByPrimaryKey(long sharingEntryId); /** * Returns all the sharing entries. * * @return the sharing entries */ public java.util.List findAll(); /** * Returns a range of all the sharing entries. * *

* 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 SharingEntryModelImpl. *

* * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @return the range of sharing entries */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the sharing entries. * *

* 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 SharingEntryModelImpl. *

* * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of sharing entries */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the sharing entries. * *

* 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 SharingEntryModelImpl. *

* * @param start the lower bound of the range of sharing entries * @param end the upper bound of the range of sharing entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of sharing entries */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the sharing entries from the database. */ public void removeAll(); /** * Returns the number of sharing entries. * * @return the number of sharing entries */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy