Class SharingEntryUtil

java.lang.Object
com.liferay.sharing.service.persistence.SharingEntryUtil

public class SharingEntryUtil extends Object
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

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(SharingEntry sharingEntry)
    Caches the sharing entry in the entity cache if it is enabled.
    static void
    cacheResult(List<SharingEntry> sharingEntries)
    Caches the sharing entries in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(SharingEntry sharingEntry)
     
    static int
    Returns the number of sharing entries.
    static int
    countByC_C(long classNameId, long classPK)
    Returns the number of sharing entries where classNameId = ? and classPK = ?.
    static int
    countByC_CN(long companyId, long classNameId)
    Returns the number of sharing entries where companyId = ? and classNameId = ?.
    static int
    countByERC_G(String externalReferenceCode, long groupId)
    Returns the number of sharing entries where externalReferenceCode = ? and groupId = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of sharing entries where groupId = ?.
    static int
    countByLtExpirationDate(Date expirationDate)
    Returns the number of sharing entries where expirationDate < ?.
    static int
    countByToUserId(long toUserId)
    Returns the number of sharing entries where toUserId = ?.
    static int
    countByTU_C(long toUserId, long classNameId)
    Returns the number of sharing entries where toUserId = ? and classNameId = ?.
    static int
    countByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the number of sharing entries where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ?.
    static int
    countByU_C(long userId, long classNameId)
    Returns the number of sharing entries where userId = ? and classNameId = ?.
    static int
    countByUserId(long userId)
    Returns the number of sharing entries where userId = ?.
    static int
    Returns the number of sharing entries where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of sharing entries where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of sharing entries where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long sharingEntryId)
    Creates a new sharing entry with the primary key.
    fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.
    fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
    fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.
    fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where companyId = ? and classNameId = ?.
    fetchByERC_G(String externalReferenceCode, long groupId)
    Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returns null if it could not be found.
    fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
    Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where groupId = ?.
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where groupId = ?.
    fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where expirationDate < ?.
    fetchByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where expirationDate < ?.
    fetchByPrimaryKey(long sharingEntryId)
    Returns the sharing entry with the primary key or returns null if it could not be found.
     
    fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserId = ?.
    fetchByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where toUserId = ?.
    fetchByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.
    fetchByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
    fetchByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found.
    fetchByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK, boolean useFinderCache)
    Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.
    fetchByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
    fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where userId = ?.
    fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where userId = ?.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where uuid = ?.
    Returns all the sharing entries.
    findAll(int start, int end)
    Returns a range of all the sharing entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries.
    findByC_C(long classNameId, long classPK)
    Returns all the sharing entries where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end)
    Returns a range of all the sharing entries where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.
    findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.
    findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
    static SharingEntry[]
    findByC_C_PrevAndNext(long sharingEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where classNameId = ? and classPK = ?.
    findByC_CN(long companyId, long classNameId)
    Returns all the sharing entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end)
    Returns a range of all the sharing entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where companyId = ? and classNameId = ?.
    findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.
    findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where companyId = ? and classNameId = ?.
    static SharingEntry[]
    findByC_CN_PrevAndNext(long sharingEntryId, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where companyId = ? and classNameId = ?.
    findByERC_G(String externalReferenceCode, long groupId)
    Returns the sharing entry where externalReferenceCode = ? and groupId = ? or throws a NoSuchEntryException if it could not be found.
    findByGroupId(long groupId)
    Returns all the sharing entries where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the sharing entries where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where groupId = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where groupId = ?.
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where groupId = ?.
    static SharingEntry[]
    findByGroupId_PrevAndNext(long sharingEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where groupId = ?.
    findByLtExpirationDate(Date expirationDate)
    Returns all the sharing entries where expirationDate < ?.
    findByLtExpirationDate(Date expirationDate, int start, int end)
    Returns a range of all the sharing entries where expirationDate < ?.
    findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where expirationDate < ?.
    findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where expirationDate < ?.
    findByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where expirationDate < ?.
    findByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where expirationDate < ?.
    static SharingEntry[]
    findByLtExpirationDate_PrevAndNext(long sharingEntryId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where expirationDate < ?.
    findByPrimaryKey(long sharingEntryId)
    Returns the sharing entry with the primary key or throws a NoSuchEntryException if it could not be found.
    findByToUserId(long toUserId)
    Returns all the sharing entries where toUserId = ?.
    findByToUserId(long toUserId, int start, int end)
    Returns a range of all the sharing entries where toUserId = ?.
    findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where toUserId = ?.
    findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where toUserId = ?.
    findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserId = ?.
    findByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where toUserId = ?.
    static SharingEntry[]
    findByToUserId_PrevAndNext(long sharingEntryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ?.
    findByTU_C(long toUserId, long classNameId)
    Returns all the sharing entries where toUserId = ? and classNameId = ?.
    findByTU_C(long toUserId, long classNameId, int start, int end)
    Returns a range of all the sharing entries where toUserId = ? and classNameId = ?.
    findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.
    findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.
    findByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.
    findByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
    static SharingEntry[]
    findByTU_C_PrevAndNext(long sharingEntryId, long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ? and classNameId = ?.
    findByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
    findByU_C(long userId, long classNameId)
    Returns all the sharing entries where userId = ? and classNameId = ?.
    findByU_C(long userId, long classNameId, int start, int end)
    Returns a range of all the sharing entries where userId = ? and classNameId = ?.
    findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.
    findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.
    findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.
    findByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
    static SharingEntry[]
    findByU_C_PrevAndNext(long sharingEntryId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ? and classNameId = ?.
    findByUserId(long userId)
    Returns all the sharing entries where userId = ?.
    findByUserId(long userId, int start, int end)
    Returns a range of all the sharing entries where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where userId = ?.
    findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where userId = ?.
    findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where userId = ?.
    static SharingEntry[]
    findByUserId_PrevAndNext(long sharingEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ?.
    Returns all the sharing entries where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the sharing entries where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the sharing entries where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the sharing entries where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
    static SharingEntry[]
    findByUuid_C_PrevAndNext(long sharingEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the sharing entry where uuid = ? and groupId = ? or throws a NoSuchEntryException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the last sharing entry in the ordered set where uuid = ?.
    static SharingEntry[]
    findByUuid_PrevAndNext(long sharingEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
     
     
    remove(long sharingEntryId)
    Removes the sharing entry with the primary key from the database.
    static void
    Removes all the sharing entries from the database.
    static void
    removeByC_C(long classNameId, long classPK)
    Removes all the sharing entries where classNameId = ? and classPK = ? from the database.
    static void
    removeByC_CN(long companyId, long classNameId)
    Removes all the sharing entries where companyId = ? and classNameId = ? from the database.
    removeByERC_G(String externalReferenceCode, long groupId)
    Removes the sharing entry where externalReferenceCode = ? and groupId = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the sharing entries where groupId = ? from the database.
    static void
    Removes all the sharing entries where expirationDate < ? from the database.
    static void
    removeByToUserId(long toUserId)
    Removes all the sharing entries where toUserId = ? from the database.
    static void
    removeByTU_C(long toUserId, long classNameId)
    Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.
    removeByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
    Removes the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? from the database.
    static void
    removeByU_C(long userId, long classNameId)
    Removes all the sharing entries where userId = ? and classNameId = ? from the database.
    static void
    removeByUserId(long userId)
    Removes all the sharing entries where userId = ? from the database.
    static void
    Removes all the sharing entries where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the sharing entries where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the sharing entry where uuid = ? and groupId = ? from the database.
    static void
     
    update(SharingEntry sharingEntry)
     
    update(SharingEntry sharingEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(SharingEntry sharingEntry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SharingEntryUtil

      public SharingEntryUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(SharingEntry sharingEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,SharingEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static SharingEntry update(SharingEntry sharingEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static SharingEntry update(SharingEntry sharingEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<SharingEntry> findByUuid(String uuid)
      Returns all the sharing entries where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching sharing entries
    • findByUuid

      public static List<SharingEntry> findByUuid(String uuid, int start, int end)
      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByUuid

      public static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByUuid

      public static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByUuid_First

      public static SharingEntry findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUuid_First

      public static SharingEntry fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByUuid_Last

      public static SharingEntry findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUuid_Last

      public static SharingEntry fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByUuid_PrevAndNext

      public static SharingEntry[] findByUuid_PrevAndNext(long sharingEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the sharing entries where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of sharing entries where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching sharing entries
    • findByUUID_G

      public static SharingEntry findByUUID_G(String uuid, long groupId) throws NoSuchEntryException
      Returns the sharing entry where uuid = ? and groupId = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUUID_G

      public static SharingEntry fetchByUUID_G(String uuid, long groupId)
      Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • fetchByUUID_G

      public static SharingEntry fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the sharing entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • removeByUUID_G

      public static SharingEntry removeByUUID_G(String uuid, long groupId) throws NoSuchEntryException
      Removes the sharing entry where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the sharing entry that was removed
      Throws:
      NoSuchEntryException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of sharing entries where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching sharing entries
    • findByUuid_C

      public static List<SharingEntry> findByUuid_C(String uuid, long companyId)
      Returns all the sharing entries where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching sharing entries
    • findByUuid_C

      public static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end)
      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByUuid_C

      public static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByUuid_C

      public static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByUuid_C_First

      public static SharingEntry findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUuid_C_First

      public static SharingEntry fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByUuid_C_Last

      public static SharingEntry findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUuid_C_Last

      public static SharingEntry fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByUuid_C_PrevAndNext

      public static SharingEntry[] findByUuid_C_PrevAndNext(long sharingEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the sharing entries where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of sharing entries where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching sharing entries
    • findByGroupId

      public static List<SharingEntry> findByGroupId(long groupId)
      Returns all the sharing entries where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching sharing entries
    • findByGroupId

      public static List<SharingEntry> findByGroupId(long groupId, int start, int end)
      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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByGroupId

      public static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByGroupId

      public static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByGroupId_First

      public static SharingEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByGroupId_First

      public static SharingEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByGroupId_Last

      public static SharingEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByGroupId_Last

      public static SharingEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByGroupId_PrevAndNext

      public static SharingEntry[] findByGroupId_PrevAndNext(long sharingEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where groupId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the sharing entries where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of sharing entries where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching sharing entries
    • findByUserId

      public static List<SharingEntry> findByUserId(long userId)
      Returns all the sharing entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching sharing entries
    • findByUserId

      public static List<SharingEntry> findByUserId(long userId, int start, int end)
      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.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByUserId

      public static List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByUserId

      public static List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByUserId_First

      public static SharingEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUserId_First

      public static SharingEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByUserId_Last

      public static SharingEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByUserId_Last

      public static SharingEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByUserId_PrevAndNext

      public static SharingEntry[] findByUserId_PrevAndNext(long sharingEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the sharing entries where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static int countByUserId(long userId)
      Returns the number of sharing entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching sharing entries
    • findByToUserId

      public static List<SharingEntry> findByToUserId(long toUserId)
      Returns all the sharing entries where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      Returns:
      the matching sharing entries
    • findByToUserId

      public static List<SharingEntry> findByToUserId(long toUserId, int start, int end)
      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.

      Parameters:
      toUserId - the to user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByToUserId

      public static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      toUserId - the to user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByToUserId

      public static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      toUserId - the to user ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByToUserId_First

      public static SharingEntry findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByToUserId_First

      public static SharingEntry fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByToUserId_Last

      public static SharingEntry findByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByToUserId_Last

      public static SharingEntry fetchByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByToUserId_PrevAndNext

      public static SharingEntry[] findByToUserId_PrevAndNext(long sharingEntryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      toUserId - the to user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByToUserId

      public static void removeByToUserId(long toUserId)
      Removes all the sharing entries where toUserId = ? from the database.
      Parameters:
      toUserId - the to user ID
    • countByToUserId

      public static int countByToUserId(long toUserId)
      Returns the number of sharing entries where toUserId = ?.
      Parameters:
      toUserId - the to user ID
      Returns:
      the number of matching sharing entries
    • findByLtExpirationDate

      public static List<SharingEntry> findByLtExpirationDate(Date expirationDate)
      Returns all the sharing entries where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the matching sharing entries
    • findByLtExpirationDate

      public static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end)
      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.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByLtExpirationDate

      public static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByLtExpirationDate

      public static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByLtExpirationDate_First

      public static SharingEntry findByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByLtExpirationDate_First

      public static SharingEntry fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByLtExpirationDate_Last

      public static SharingEntry findByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByLtExpirationDate_Last

      public static SharingEntry fetchByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByLtExpirationDate_PrevAndNext

      public static SharingEntry[] findByLtExpirationDate_PrevAndNext(long sharingEntryId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where expirationDate < ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByLtExpirationDate

      public static void removeByLtExpirationDate(Date expirationDate)
      Removes all the sharing entries where expirationDate < ? from the database.
      Parameters:
      expirationDate - the expiration date
    • countByLtExpirationDate

      public static int countByLtExpirationDate(Date expirationDate)
      Returns the number of sharing entries where expirationDate < ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the number of matching sharing entries
    • findByC_CN

      public static List<SharingEntry> findByC_CN(long companyId, long classNameId)
      Returns all the sharing entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the matching sharing entries
    • findByC_CN

      public static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end)
      Returns a range of all the sharing entries where companyId = ? 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.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByC_CN

      public static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns an ordered range of all the sharing entries where companyId = ? 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.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByC_CN

      public static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the sharing entries where companyId = ? 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.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByC_CN_First

      public static SharingEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByC_CN_First

      public static SharingEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByC_CN_Last

      public static SharingEntry findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByC_CN_Last

      public static SharingEntry fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByC_CN_PrevAndNext

      public static SharingEntry[] findByC_CN_PrevAndNext(long sharingEntryId, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByC_CN

      public static void removeByC_CN(long companyId, long classNameId)
      Removes all the sharing entries where companyId = ? and classNameId = ? from the database.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
    • countByC_CN

      public static int countByC_CN(long companyId, long classNameId)
      Returns the number of sharing entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the number of matching sharing entries
    • findByU_C

      public static List<SharingEntry> findByU_C(long userId, long classNameId)
      Returns all the sharing entries where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      Returns:
      the matching sharing entries
    • findByU_C

      public static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end)
      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.

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByU_C

      public static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByU_C

      public static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByU_C_First

      public static SharingEntry findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByU_C_First

      public static SharingEntry fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByU_C_Last

      public static SharingEntry findByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByU_C_Last

      public static SharingEntry fetchByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByU_C_PrevAndNext

      public static SharingEntry[] findByU_C_PrevAndNext(long sharingEntryId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ? and classNameId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      userId - the user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByU_C

      public static void removeByU_C(long userId, long classNameId)
      Removes all the sharing entries where userId = ? and classNameId = ? from the database.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
    • countByU_C

      public static int countByU_C(long userId, long classNameId)
      Returns the number of sharing entries where userId = ? and classNameId = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      Returns:
      the number of matching sharing entries
    • findByTU_C

      public static List<SharingEntry> findByTU_C(long toUserId, long classNameId)
      Returns all the sharing entries where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      Returns:
      the matching sharing entries
    • findByTU_C

      public static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end)
      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.

      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByTU_C

      public static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByTU_C

      public static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByTU_C_First

      public static SharingEntry findByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByTU_C_First

      public static SharingEntry fetchByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByTU_C_Last

      public static SharingEntry findByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByTU_C_Last

      public static SharingEntry fetchByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByTU_C_PrevAndNext

      public static SharingEntry[] findByTU_C_PrevAndNext(long sharingEntryId, long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ? and classNameId = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      toUserId - the to user ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByTU_C

      public static void removeByTU_C(long toUserId, long classNameId)
      Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
    • countByTU_C

      public static int countByTU_C(long toUserId, long classNameId)
      Returns the number of sharing entries where toUserId = ? and classNameId = ?.
      Parameters:
      toUserId - the to user ID
      classNameId - the class name ID
      Returns:
      the number of matching sharing entries
    • findByC_C

      public static List<SharingEntry> findByC_C(long classNameId, long classPK)
      Returns all the sharing entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching sharing entries
    • findByC_C

      public static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end)
      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.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of matching sharing entries
    • findByC_C

      public static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sharing entries
    • findByC_C

      public static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching sharing entries
    • findByC_C_First

      public static SharingEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByC_C_First

      public static SharingEntry fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharing entry, or null if a matching sharing entry could not be found
    • findByC_C_Last

      public static SharingEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByC_C_Last

      public static SharingEntry fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharing entry, or null if a matching sharing entry could not be found
    • findByC_C_PrevAndNext

      public static SharingEntry[] findByC_C_PrevAndNext(long sharingEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the sharing entries before and after the current sharing entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      sharingEntryId - the primary key of the current sharing entry
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • removeByC_C

      public static void removeByC_C(long classNameId, long classPK)
      Removes all the sharing entries where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of sharing entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching sharing entries
    • findByTUG_TU_C_C

      public static SharingEntry findByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK) throws NoSuchEntryException
      Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      toUserGroupId - the to user group ID
      toUserId - the to user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByTUG_TU_C_C

      public static SharingEntry fetchByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
      Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      toUserGroupId - the to user group ID
      toUserId - the to user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • fetchByTUG_TU_C_C

      public static SharingEntry fetchByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK, boolean useFinderCache)
      Returns the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      toUserGroupId - the to user group ID
      toUserId - the to user ID
      classNameId - the class name ID
      classPK - the class pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • removeByTUG_TU_C_C

      public static SharingEntry removeByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK) throws NoSuchEntryException
      Removes the sharing entry where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      toUserGroupId - the to user group ID
      toUserId - the to user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the sharing entry that was removed
      Throws:
      NoSuchEntryException
    • countByTUG_TU_C_C

      public static int countByTUG_TU_C_C(long toUserGroupId, long toUserId, long classNameId, long classPK)
      Returns the number of sharing entries where toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ?.
      Parameters:
      toUserGroupId - the to user group ID
      toUserId - the to user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching sharing entries
    • findByERC_G

      public static SharingEntry findByERC_G(String externalReferenceCode, long groupId) throws NoSuchEntryException
      Returns the sharing entry where externalReferenceCode = ? and groupId = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching sharing entry
      Throws:
      NoSuchEntryException - if a matching sharing entry could not be found
      NoSuchEntryException
    • fetchByERC_G

      public static SharingEntry fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • fetchByERC_G

      public static SharingEntry fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching sharing entry, or null if a matching sharing entry could not be found
    • removeByERC_G

      public static SharingEntry removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchEntryException
      Removes the sharing entry where externalReferenceCode = ? and groupId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the sharing entry that was removed
      Throws:
      NoSuchEntryException
    • countByERC_G

      public static int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of sharing entries where externalReferenceCode = ? and groupId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching sharing entries
    • cacheResult

      public static void cacheResult(SharingEntry sharingEntry)
      Caches the sharing entry in the entity cache if it is enabled.
      Parameters:
      sharingEntry - the sharing entry
    • cacheResult

      public static void cacheResult(List<SharingEntry> sharingEntries)
      Caches the sharing entries in the entity cache if it is enabled.
      Parameters:
      sharingEntries - the sharing entries
    • create

      public static SharingEntry create(long sharingEntryId)
      Creates a new sharing entry with the primary key. Does not add the sharing entry to the database.
      Parameters:
      sharingEntryId - the primary key for the new sharing entry
      Returns:
      the new sharing entry
    • remove

      public static SharingEntry remove(long sharingEntryId) throws NoSuchEntryException
      Removes the sharing entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      sharingEntryId - the primary key of the sharing entry
      Returns:
      the sharing entry that was removed
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • updateImpl

      public static SharingEntry updateImpl(SharingEntry sharingEntry)
    • findByPrimaryKey

      public static SharingEntry findByPrimaryKey(long sharingEntryId) throws NoSuchEntryException
      Returns the sharing entry with the primary key or throws a NoSuchEntryException if it could not be found.
      Parameters:
      sharingEntryId - the primary key of the sharing entry
      Returns:
      the sharing entry
      Throws:
      NoSuchEntryException - if a sharing entry with the primary key could not be found
      NoSuchEntryException
    • fetchByPrimaryKey

      public static SharingEntry fetchByPrimaryKey(long sharingEntryId)
      Returns the sharing entry with the primary key or returns null if it could not be found.
      Parameters:
      sharingEntryId - the primary key of the sharing entry
      Returns:
      the sharing entry, or null if a sharing entry with the primary key could not be found
    • findAll

      public static List<SharingEntry> findAll()
      Returns all the sharing entries.
      Returns:
      the sharing entries
    • findAll

      public static List<SharingEntry> findAll(int start, int end)
      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.

      Parameters:
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      Returns:
      the range of sharing entries
    • findAll

      public static List<SharingEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> 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.

      Parameters:
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of sharing entries
    • findAll

      public static List<SharingEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      start - the lower bound of the range of sharing entries
      end - the upper bound of the range of sharing entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of sharing entries
    • removeAll

      public static void removeAll()
      Removes all the sharing entries from the database.
    • countAll

      public static int countAll()
      Returns the number of sharing entries.
      Returns:
      the number of sharing entries
    • getPersistence

      public static SharingEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SharingEntryPersistence persistence)