com.liferay.sharing.service.persistence.SharingEntryUtil Maven / Gradle / Ivy
/**
* 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.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.sharing.model.SharingEntry;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* The persistence utility for the sharing entry service. This utility wraps com.liferay.sharing.service.persistence.impl.SharingEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Brian Wing Shun Chan
* @see SharingEntryPersistence
* @generated
*/
public class SharingEntryUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(SharingEntry sharingEntry) {
getPersistence().clearCache(sharingEntry);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set)
*/
public static Map fetchByPrimaryKeys(
Set primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findWithDynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static SharingEntry update(SharingEntry sharingEntry) {
return getPersistence().update(sharingEntry);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static SharingEntry update(
SharingEntry sharingEntry, ServiceContext serviceContext) {
return getPersistence().update(sharingEntry, serviceContext);
}
/**
* Returns all the sharing entries where uuid = ?.
*
* @param uuid the uuid
* @return the matching sharing entries
*/
public static List findByUuid(String uuid) {
return getPersistence().findByUuid(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 static List findByUuid(
String uuid, int start, int end) {
return getPersistence().findByUuid(uuid, start, 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 static List findByUuid(
String uuid, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByUuid(uuid, start, end, 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 static List findByUuid(
String uuid, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByUuid(
uuid, start, end, orderByComparator, 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 static SharingEntry findByUuid_First(
String uuid, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_First(uuid, orderByComparator);
}
/**
* 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 static SharingEntry fetchByUuid_First(
String uuid, OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_First(uuid, 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 static SharingEntry findByUuid_Last(
String uuid, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_Last(uuid, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByUuid_Last(
String uuid, OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_Last(uuid, 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 static SharingEntry[] findByUuid_PrevAndNext(
long sharingEntryId, String uuid,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_PrevAndNext(
sharingEntryId, uuid, orderByComparator);
}
/**
* Removes all the sharing entries where uuid = ? from the database.
*
* @param uuid the uuid
*/
public static void removeByUuid(String uuid) {
getPersistence().removeByUuid(uuid);
}
/**
* Returns the number of sharing entries where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching sharing entries
*/
public static int countByUuid(String uuid) {
return getPersistence().countByUuid(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 static SharingEntry findByUUID_G(String uuid, long groupId)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUUID_G(uuid, groupId);
}
/**
* 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 static SharingEntry fetchByUUID_G(String uuid, long groupId) {
return getPersistence().fetchByUUID_G(uuid, 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 static SharingEntry fetchByUUID_G(
String uuid, long groupId, boolean useFinderCache) {
return getPersistence().fetchByUUID_G(uuid, groupId, 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 static SharingEntry removeByUUID_G(String uuid, long groupId)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().removeByUUID_G(uuid, groupId);
}
/**
* 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 static int countByUUID_G(String uuid, long groupId) {
return getPersistence().countByUUID_G(uuid, 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 static List findByUuid_C(String uuid, long companyId) {
return getPersistence().findByUuid_C(uuid, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end) {
return getPersistence().findByUuid_C(uuid, companyId, start, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByUuid_C(
uuid, companyId, start, end, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByUuid_C(
uuid, companyId, start, end, orderByComparator, 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 static SharingEntry findByUuid_C_First(
String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_C_First(
uuid, companyId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByUuid_C_First(
String uuid, long companyId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_C_First(
uuid, companyId, 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 static SharingEntry findByUuid_C_Last(
String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_C_Last(
uuid, companyId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByUuid_C_Last(
String uuid, long companyId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_C_Last(
uuid, companyId, 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 static SharingEntry[] findByUuid_C_PrevAndNext(
long sharingEntryId, String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUuid_C_PrevAndNext(
sharingEntryId, uuid, companyId, orderByComparator);
}
/**
* Removes all the sharing entries where uuid = ? and companyId = ? from the database.
*
* @param uuid the uuid
* @param companyId the company ID
*/
public static void removeByUuid_C(String uuid, long companyId) {
getPersistence().removeByUuid_C(uuid, 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 static int countByUuid_C(String uuid, long companyId) {
return getPersistence().countByUuid_C(uuid, companyId);
}
/**
* Returns all the sharing entries where groupId = ?.
*
* @param groupId the group ID
* @return the matching sharing entries
*/
public static List findByGroupId(long groupId) {
return getPersistence().findByGroupId(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 static List findByGroupId(
long groupId, int start, int end) {
return getPersistence().findByGroupId(groupId, start, 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 static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByGroupId(
groupId, start, end, 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 static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByGroupId(
groupId, start, end, orderByComparator, 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 static SharingEntry findByGroupId_First(
long groupId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByGroupId_First(groupId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByGroupId_First(
long groupId, OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_First(
groupId, 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 static SharingEntry findByGroupId_Last(
long groupId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByGroupId_Last(groupId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByGroupId_Last(
long groupId, OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_Last(groupId, 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 static SharingEntry[] findByGroupId_PrevAndNext(
long sharingEntryId, long groupId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByGroupId_PrevAndNext(
sharingEntryId, groupId, orderByComparator);
}
/**
* Removes all the sharing entries where groupId = ? from the database.
*
* @param groupId the group ID
*/
public static void removeByGroupId(long groupId) {
getPersistence().removeByGroupId(groupId);
}
/**
* Returns the number of sharing entries where groupId = ?.
*
* @param groupId the group ID
* @return the number of matching sharing entries
*/
public static int countByGroupId(long groupId) {
return getPersistence().countByGroupId(groupId);
}
/**
* Returns all the sharing entries where userId = ?.
*
* @param userId the user ID
* @return the matching sharing entries
*/
public static List findByUserId(long userId) {
return getPersistence().findByUserId(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 static List findByUserId(
long userId, int start, int end) {
return getPersistence().findByUserId(userId, start, 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 static List findByUserId(
long userId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByUserId(
userId, start, end, 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 static List findByUserId(
long userId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByUserId(
userId, start, end, orderByComparator, 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 static SharingEntry findByUserId_First(
long userId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUserId_First(userId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByUserId_First(
long userId, OrderByComparator orderByComparator) {
return getPersistence().fetchByUserId_First(userId, 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 static SharingEntry findByUserId_Last(
long userId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUserId_Last(userId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByUserId_Last(
long userId, OrderByComparator orderByComparator) {
return getPersistence().fetchByUserId_Last(userId, 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 static SharingEntry[] findByUserId_PrevAndNext(
long sharingEntryId, long userId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByUserId_PrevAndNext(
sharingEntryId, userId, orderByComparator);
}
/**
* Removes all the sharing entries where userId = ? from the database.
*
* @param userId the user ID
*/
public static void removeByUserId(long userId) {
getPersistence().removeByUserId(userId);
}
/**
* Returns the number of sharing entries where userId = ?.
*
* @param userId the user ID
* @return the number of matching sharing entries
*/
public static int countByUserId(long userId) {
return getPersistence().countByUserId(userId);
}
/**
* Returns all the sharing entries where toUserId = ?.
*
* @param toUserId the to user ID
* @return the matching sharing entries
*/
public static List findByToUserId(long toUserId) {
return getPersistence().findByToUserId(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 static List findByToUserId(
long toUserId, int start, int end) {
return getPersistence().findByToUserId(toUserId, start, 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 static List findByToUserId(
long toUserId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByToUserId(
toUserId, start, end, 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 static List findByToUserId(
long toUserId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByToUserId(
toUserId, start, end, orderByComparator, 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 static SharingEntry findByToUserId_First(
long toUserId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByToUserId_First(
toUserId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByToUserId_First(
long toUserId, OrderByComparator orderByComparator) {
return getPersistence().fetchByToUserId_First(
toUserId, 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 static SharingEntry findByToUserId_Last(
long toUserId, OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByToUserId_Last(
toUserId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByToUserId_Last(
long toUserId, OrderByComparator orderByComparator) {
return getPersistence().fetchByToUserId_Last(
toUserId, 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 static SharingEntry[] findByToUserId_PrevAndNext(
long sharingEntryId, long toUserId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByToUserId_PrevAndNext(
sharingEntryId, toUserId, orderByComparator);
}
/**
* Removes all the sharing entries where toUserId = ? from the database.
*
* @param toUserId the to user ID
*/
public static void removeByToUserId(long toUserId) {
getPersistence().removeByToUserId(toUserId);
}
/**
* Returns the number of sharing entries where toUserId = ?.
*
* @param toUserId the to user ID
* @return the number of matching sharing entries
*/
public static int countByToUserId(long toUserId) {
return getPersistence().countByToUserId(toUserId);
}
/**
* Returns all the sharing entries where expirationDate < ?.
*
* @param expirationDate the expiration date
* @return the matching sharing entries
*/
public static List findByLtExpirationDate(
Date expirationDate) {
return getPersistence().findByLtExpirationDate(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 static List findByLtExpirationDate(
Date expirationDate, int start, int end) {
return getPersistence().findByLtExpirationDate(
expirationDate, start, 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 static List findByLtExpirationDate(
Date expirationDate, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByLtExpirationDate(
expirationDate, start, end, 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 static List findByLtExpirationDate(
Date expirationDate, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByLtExpirationDate(
expirationDate, start, end, orderByComparator, 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 static SharingEntry findByLtExpirationDate_First(
Date expirationDate,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByLtExpirationDate_First(
expirationDate, orderByComparator);
}
/**
* 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 static SharingEntry fetchByLtExpirationDate_First(
Date expirationDate,
OrderByComparator orderByComparator) {
return getPersistence().fetchByLtExpirationDate_First(
expirationDate, 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 static SharingEntry findByLtExpirationDate_Last(
Date expirationDate,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByLtExpirationDate_Last(
expirationDate, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByLtExpirationDate_Last(
Date expirationDate,
OrderByComparator orderByComparator) {
return getPersistence().fetchByLtExpirationDate_Last(
expirationDate, 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 static SharingEntry[] findByLtExpirationDate_PrevAndNext(
long sharingEntryId, Date expirationDate,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByLtExpirationDate_PrevAndNext(
sharingEntryId, expirationDate, orderByComparator);
}
/**
* Removes all the sharing entries where expirationDate < ? from the database.
*
* @param expirationDate the expiration date
*/
public static void removeByLtExpirationDate(Date expirationDate) {
getPersistence().removeByLtExpirationDate(expirationDate);
}
/**
* Returns the number of sharing entries where expirationDate < ?.
*
* @param expirationDate the expiration date
* @return the number of matching sharing entries
*/
public static int countByLtExpirationDate(Date expirationDate) {
return getPersistence().countByLtExpirationDate(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 static List findByU_C(long userId, long classNameId) {
return getPersistence().findByU_C(userId, 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 static List findByU_C(
long userId, long classNameId, int start, int end) {
return getPersistence().findByU_C(userId, classNameId, start, 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 static List findByU_C(
long userId, long classNameId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByU_C(
userId, classNameId, start, end, 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 static List findByU_C(
long userId, long classNameId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByU_C(
userId, classNameId, start, end, orderByComparator, 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 static SharingEntry findByU_C_First(
long userId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByU_C_First(
userId, classNameId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByU_C_First(
long userId, long classNameId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByU_C_First(
userId, classNameId, 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 static SharingEntry findByU_C_Last(
long userId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByU_C_Last(
userId, classNameId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByU_C_Last(
long userId, long classNameId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByU_C_Last(
userId, classNameId, 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 static SharingEntry[] findByU_C_PrevAndNext(
long sharingEntryId, long userId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByU_C_PrevAndNext(
sharingEntryId, userId, classNameId, orderByComparator);
}
/**
* Removes all the sharing entries where userId = ? and classNameId = ? from the database.
*
* @param userId the user ID
* @param classNameId the class name ID
*/
public static void removeByU_C(long userId, long classNameId) {
getPersistence().removeByU_C(userId, 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 static int countByU_C(long userId, long classNameId) {
return getPersistence().countByU_C(userId, 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 static List findByTU_C(
long toUserId, long classNameId) {
return getPersistence().findByTU_C(toUserId, 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 static List findByTU_C(
long toUserId, long classNameId, int start, int end) {
return getPersistence().findByTU_C(toUserId, classNameId, start, 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 static List findByTU_C(
long toUserId, long classNameId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByTU_C(
toUserId, classNameId, start, end, 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 static List findByTU_C(
long toUserId, long classNameId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByTU_C(
toUserId, classNameId, start, end, orderByComparator,
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 static SharingEntry findByTU_C_First(
long toUserId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByTU_C_First(
toUserId, classNameId, orderByComparator);
}
/**
* 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 static SharingEntry fetchByTU_C_First(
long toUserId, long classNameId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByTU_C_First(
toUserId, classNameId, 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 static SharingEntry findByTU_C_Last(
long toUserId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByTU_C_Last(
toUserId, classNameId, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByTU_C_Last(
long toUserId, long classNameId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByTU_C_Last(
toUserId, classNameId, 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 static SharingEntry[] findByTU_C_PrevAndNext(
long sharingEntryId, long toUserId, long classNameId,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByTU_C_PrevAndNext(
sharingEntryId, toUserId, classNameId, orderByComparator);
}
/**
* 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 static void removeByTU_C(long toUserId, long classNameId) {
getPersistence().removeByTU_C(toUserId, 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 static int countByTU_C(long toUserId, long classNameId) {
return getPersistence().countByTU_C(toUserId, 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 static List findByC_C(long classNameId, long classPK) {
return getPersistence().findByC_C(classNameId, 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 static List findByC_C(
long classNameId, long classPK, int start, int end) {
return getPersistence().findByC_C(classNameId, classPK, start, 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 static List findByC_C(
long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByC_C(
classNameId, classPK, start, end, 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 static List findByC_C(
long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByC_C(
classNameId, classPK, start, end, orderByComparator,
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 static SharingEntry findByC_C_First(
long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByC_C_First(
classNameId, classPK, orderByComparator);
}
/**
* 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 static SharingEntry fetchByC_C_First(
long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByC_C_First(
classNameId, classPK, 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 static SharingEntry findByC_C_Last(
long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByC_C_Last(
classNameId, classPK, 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, or null
if a matching sharing entry could not be found
*/
public static SharingEntry fetchByC_C_Last(
long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByC_C_Last(
classNameId, classPK, 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 static SharingEntry[] findByC_C_PrevAndNext(
long sharingEntryId, long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByC_C_PrevAndNext(
sharingEntryId, classNameId, classPK, orderByComparator);
}
/**
* Removes all the sharing entries where classNameId = ? and classPK = ? from the database.
*
* @param classNameId the class name ID
* @param classPK the class pk
*/
public static void removeByC_C(long classNameId, long classPK) {
getPersistence().removeByC_C(classNameId, 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 static int countByC_C(long classNameId, long classPK) {
return getPersistence().countByC_C(classNameId, 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 static SharingEntry findByTU_C_C(
long toUserId, long classNameId, long classPK)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByTU_C_C(toUserId, classNameId, classPK);
}
/**
* 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 static SharingEntry fetchByTU_C_C(
long toUserId, long classNameId, long classPK) {
return getPersistence().fetchByTU_C_C(toUserId, classNameId, 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 static SharingEntry fetchByTU_C_C(
long toUserId, long classNameId, long classPK, boolean useFinderCache) {
return getPersistence().fetchByTU_C_C(
toUserId, classNameId, classPK, 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 static SharingEntry removeByTU_C_C(
long toUserId, long classNameId, long classPK)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().removeByTU_C_C(toUserId, classNameId, classPK);
}
/**
* 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 static int countByTU_C_C(
long toUserId, long classNameId, long classPK) {
return getPersistence().countByTU_C_C(toUserId, classNameId, classPK);
}
/**
* Caches the sharing entry in the entity cache if it is enabled.
*
* @param sharingEntry the sharing entry
*/
public static void cacheResult(SharingEntry sharingEntry) {
getPersistence().cacheResult(sharingEntry);
}
/**
* Caches the sharing entries in the entity cache if it is enabled.
*
* @param sharingEntries the sharing entries
*/
public static void cacheResult(List sharingEntries) {
getPersistence().cacheResult(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 static SharingEntry create(long sharingEntryId) {
return getPersistence().create(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 static SharingEntry remove(long sharingEntryId)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().remove(sharingEntryId);
}
public static SharingEntry updateImpl(SharingEntry sharingEntry) {
return getPersistence().updateImpl(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 static SharingEntry findByPrimaryKey(long sharingEntryId)
throws com.liferay.sharing.exception.NoSuchEntryException {
return getPersistence().findByPrimaryKey(sharingEntryId);
}
/**
* 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 static SharingEntry fetchByPrimaryKey(long sharingEntryId) {
return getPersistence().fetchByPrimaryKey(sharingEntryId);
}
/**
* Returns all the sharing entries.
*
* @return the sharing entries
*/
public static List findAll() {
return getPersistence().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 static List findAll(int start, int end) {
return getPersistence().findAll(start, 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 static List findAll(
int start, int end, OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, 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 static List findAll(
int start, int end, OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the sharing entries from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of sharing entries.
*
* @return the number of sharing entries
*/
public static int countAll() {
return getPersistence().countAll();
}
public static SharingEntryPersistence getPersistence() {
return _persistence;
}
public static void setPersistence(SharingEntryPersistence persistence) {
_persistence = persistence;
}
private static volatile SharingEntryPersistence _persistence;
}