Interface SharingEntryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<SharingEntry>

@ProviderType public interface SharingEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SharingEntry>
The persistence interface for the sharing entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByC_C(long classNameId, long classPK)
    Returns the number of sharing entries where classNameId = ? and classPK = ?.
    int
    countByC_CN(long companyId, long classNameId)
    Returns the number of sharing entries where companyId = ? and classNameId = ?.
    int
    countByERC_G(String externalReferenceCode, long groupId)
    Returns the number of sharing entries where externalReferenceCode = ? and groupId = ?.
    int
    countByGroupId(long groupId)
    Returns the number of sharing entries where groupId = ?.
    int
    countByLtExpirationDate(Date expirationDate)
    Returns the number of sharing entries where expirationDate < ?.
    int
    countByToTicketId(long toTicketId)
    Returns the number of sharing entries where toTicketId = ?.
    int
    countByToUserGroupId(long toUserGroupId)
    Returns the number of sharing entries where toUserGroupId = ?.
    int
    countByToUserId(long toUserId)
    Returns the number of sharing entries where toUserId = ?.
    int
    countByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the number of sharing entries where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ?.
    int
    countByTU_C(long toUserId, long classNameId)
    Returns the number of sharing entries where toUserId = ? and classNameId = ?.
    int
    countByU_C(long userId, long classNameId)
    Returns the number of sharing entries where userId = ? and classNameId = ?.
    int
    countByUserId(long userId)
    Returns the number of sharing entries where userId = ?.
    int
    Returns the number of sharing entries where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of sharing entries where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of sharing entries where uuid = ? and groupId = ?.
    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_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 = ?.
    default SharingEntry
    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 = ?.
    fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first 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.
    fetchByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toTicketId = ?.
    fetchByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserGroupId = ?.
    fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserId = ?.
    default SharingEntry
    fetchByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found.
    fetchByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK, boolean useFinderCache)
    Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    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 = ?.
    fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first 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_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where uuid = ?.
    default SharingEntry
    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.
    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_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 = ?.
    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 = ?.
    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 < ?.
    findByPrimaryKey(long sharingEntryId)
    Returns the sharing entry with the primary key or throws a NoSuchEntryException if it could not be found.
    findByToTicketId(long toTicketId)
    Returns all the sharing entries where toTicketId = ?.
    findByToTicketId(long toTicketId, int start, int end)
    Returns a range of all the sharing entries where toTicketId = ?.
    findByToTicketId(long toTicketId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where toTicketId = ?.
    findByToTicketId(long toTicketId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where toTicketId = ?.
    findByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toTicketId = ?.
    findByToUserGroupId(long toUserGroupId)
    Returns all the sharing entries where toUserGroupId = ?.
    findByToUserGroupId(long toUserGroupId, int start, int end)
    Returns a range of all the sharing entries where toUserGroupId = ?.
    findByToUserGroupId(long toUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns an ordered range of all the sharing entries where toUserGroupId = ?.
    findByToUserGroupId(long toUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sharing entries where toUserGroupId = ?.
    findByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
    Returns the first sharing entry in the ordered set where toUserGroupId = ?.
    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 = ?.
    findByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
    Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
    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 = ?.
    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 = ?.
    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 = ?.
    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_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.
    remove(long sharingEntryId)
    Removes the sharing entry with the primary key from the database.
    void
    removeByC_C(long classNameId, long classPK)
    Removes all the sharing entries where classNameId = ? and classPK = ? from the database.
    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.
    void
    removeByGroupId(long groupId)
    Removes all the sharing entries where groupId = ? from the database.
    void
    Removes all the sharing entries where expirationDate < ? from the database.
    void
    removeByToTicketId(long toTicketId)
    Removes all the sharing entries where toTicketId = ? from the database.
    void
    removeByToUserGroupId(long toUserGroupId)
    Removes all the sharing entries where toUserGroupId = ? from the database.
    void
    removeByToUserId(long toUserId)
    Removes all the sharing entries where toUserId = ? from the database.
    removeByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
    Removes the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? from the database.
    void
    removeByTU_C(long toUserId, long classNameId)
    Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.
    void
    removeByU_C(long userId, long classNameId)
    Removes all the sharing entries where userId = ? and classNameId = ? from the database.
    void
    removeByUserId(long userId)
    Removes all the sharing entries where userId = ? from the database.
    void
    Removes all the sharing entries where uuid = ? from the database.
    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.
    updateImpl(SharingEntry sharingEntry)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByUuid_First

      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
    • removeByUuid

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

      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

      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
    • fetchByUUID_G

      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

      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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByUuid_C_First

      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
    • removeByUuid_C

      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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByGroupId_First

      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
    • removeByGroupId

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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByUserId_First

      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
    • removeByUserId

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

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

      List<SharingEntry> findByToTicketId(long toTicketId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the sharing entries where toTicketId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toTicketId - the to ticket 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
    • findByToTicketId_First

      SharingEntry findByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where toTicketId = ?.
      Parameters:
      toTicketId - the to ticket 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
    • fetchByToTicketId_First

      SharingEntry fetchByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where toTicketId = ?.
      Parameters:
      toTicketId - the to ticket 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
    • removeByToTicketId

      void removeByToTicketId(long toTicketId)
      Removes all the sharing entries where toTicketId = ? from the database.
      Parameters:
      toTicketId - the to ticket ID
    • countByToTicketId

      int countByToTicketId(long toTicketId)
      Returns the number of sharing entries where toTicketId = ?.
      Parameters:
      toTicketId - the to ticket ID
      Returns:
      the number of matching sharing entries
    • findByToUserGroupId

      List<SharingEntry> findByToUserGroupId(long toUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the sharing entries where toUserGroupId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toUserGroupId - the to user 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
    • findByToUserGroupId_First

      SharingEntry findByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
      Returns the first sharing entry in the ordered set where toUserGroupId = ?.
      Parameters:
      toUserGroupId - the to user 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
    • fetchByToUserGroupId_First

      SharingEntry fetchByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns the first sharing entry in the ordered set where toUserGroupId = ?.
      Parameters:
      toUserGroupId - the to user 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
    • removeByToUserGroupId

      void removeByToUserGroupId(long toUserGroupId)
      Removes all the sharing entries where toUserGroupId = ? from the database.
      Parameters:
      toUserGroupId - the to user group ID
    • countByToUserGroupId

      int countByToUserGroupId(long toUserGroupId)
      Returns the number of sharing entries where toUserGroupId = ?.
      Parameters:
      toUserGroupId - the to user group ID
      Returns:
      the number of matching sharing entries
    • findByToUserId

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByToUserId_First

      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
    • removeByToUserId

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

      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

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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByLtExpirationDate_First

      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
    • removeByLtExpirationDate

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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByC_CN_First

      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
    • removeByC_CN

      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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByU_C_First

      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
    • removeByU_C

      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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByTU_C_First

      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
    • removeByTU_C

      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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      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
    • fetchByC_C_First

      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
    • removeByC_C

      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

      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
    • findByTT_TUG_TU_C_C

      SharingEntry findByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK) throws NoSuchEntryException
      Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      toTicketId - the to ticket ID
      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
    • fetchByTT_TUG_TU_C_C

      SharingEntry fetchByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK, boolean useFinderCache)
      Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      toTicketId - the to ticket ID
      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
    • removeByTT_TUG_TU_C_C

      SharingEntry removeByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK) throws NoSuchEntryException
      Removes the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      toTicketId - the to ticket ID
      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
    • countByTT_TUG_TU_C_C

      int countByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
      Returns the number of sharing entries where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ?.
      Parameters:
      toTicketId - the to ticket ID
      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

      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
    • fetchByERC_G

      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

      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

      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
    • create

      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

      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
    • updateImpl

      SharingEntry updateImpl(SharingEntry sharingEntry)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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
    • fetchByUUID_G

      default 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
    • fetchByTT_TUG_TU_C_C

      default SharingEntry fetchByTT_TUG_TU_C_C(long toTicketId, long toUserGroupId, long toUserId, long classNameId, long classPK)
      Returns the sharing entry where toTicketId = ? and toUserGroupId = ? and toUserId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      toTicketId - the to ticket ID
      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
    • fetchByERC_G

      default 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
    • findByUuid

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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByGroupId

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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByUserId

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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByToTicketId

      default List<SharingEntry> findByToTicketId(long toTicketId)
      Returns all the sharing entries where toTicketId = ?.
      Parameters:
      toTicketId - the to ticket ID
      Returns:
      the matching sharing entries
    • findByToTicketId

      default List<SharingEntry> findByToTicketId(long toTicketId, int start, int end)
      Returns a range of all the sharing entries where toTicketId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toTicketId - the to ticket 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
    • findByToTicketId

      default List<SharingEntry> findByToTicketId(long toTicketId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns an ordered range of all the sharing entries where toTicketId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toTicketId - the to ticket 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
    • findByToUserGroupId

      default List<SharingEntry> findByToUserGroupId(long toUserGroupId)
      Returns all the sharing entries where toUserGroupId = ?.
      Parameters:
      toUserGroupId - the to user group ID
      Returns:
      the matching sharing entries
    • findByToUserGroupId

      default List<SharingEntry> findByToUserGroupId(long toUserGroupId, int start, int end)
      Returns a range of all the sharing entries where toUserGroupId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toUserGroupId - the to user 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
    • findByToUserGroupId

      default List<SharingEntry> findByToUserGroupId(long toUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
      Returns an ordered range of all the sharing entries where toUserGroupId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.SharingEntryModelImpl.

      Parameters:
      toUserGroupId - the to user 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
    • findByToUserId

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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByC_CN

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByU_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByTU_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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
    • findByC_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.sharing.model.impl.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