Class SharingEntryUtil
com.liferay.sharing.service.persistence.impl.SharingEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(SharingEntry sharingEntry) static voidcacheResult(List<SharingEntry> sharingEntries) static voidstatic voidclearCache(SharingEntry sharingEntry) static intcountByC_C(long classNameId, long classPK) Returns the number of sharing entries where classNameId = ? and classPK = ?.static intcountByC_CN(long companyId, long classNameId) Returns the number of sharing entries where companyId = ? and classNameId = ?.static intcountByERC_G(String externalReferenceCode, long groupId) Returns the number of sharing entries where externalReferenceCode = ? and groupId = ?.static intcountByGroupId(long groupId) Returns the number of sharing entries where groupId = ?.static intcountByLtExpirationDate(Date expirationDate) Returns the number of sharing entries where expirationDate < ?.static intcountByToTicketId(long toTicketId) Returns the number of sharing entries where toTicketId = ?.static intcountByToUserGroupId(long toUserGroupId) Returns the number of sharing entries where toUserGroupId = ?.static intcountByToUserId(long toUserId) Returns the number of sharing entries where toUserId = ?.static intcountByTT_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 = ?.static intcountByTU_C(long toUserId, long classNameId) Returns the number of sharing entries where toUserId = ? and classNameId = ?.static intcountByU_C(long userId, long classNameId) Returns the number of sharing entries where userId = ? and classNameId = ?.static intcountByUserId(long userId) Returns the number of sharing entries where userId = ?.static intcountByUuid(String uuid) Returns the number of sharing entries where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of sharing entries where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of sharing entries where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SharingEntrycreate(long sharingEntryId) Creates a new sharing entry with the primary key.static SharingEntryfetchByC_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 = ?.static SharingEntryfetchByC_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 = ?.static SharingEntryfetchByERC_G(String externalReferenceCode, long groupId) Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found.static SharingEntryfetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static SharingEntryfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where groupId = ?.static SharingEntryfetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where expirationDate < ?.static SharingEntryfetchByPrimaryKey(long sharingEntryId) Returns the sharing entry with the primary key or returnsnullif it could not be found.static Map<Serializable, SharingEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SharingEntryfetchByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toTicketId = ?.static SharingEntryfetchByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserGroupId = ?.static SharingEntryfetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserId = ?.static SharingEntryfetchByTT_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 returnsnullif it could not be found.static SharingEntryfetchByTT_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 returnsnullif it could not be found, optionally using the finder cache.static SharingEntryfetchByTU_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 = ?.static SharingEntryfetchByU_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 = ?.static SharingEntryfetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where userId = ?.static SharingEntryfetchByUuid_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 = ?.static SharingEntryfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where uuid = ?.static SharingEntryfetchByUUID_G(String uuid, long groupId) Returns the sharing entry where uuid = ? and groupId = ? or returnsnullif it could not be found.static SharingEntryfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the sharing entry where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static List<SharingEntry> findByC_C(long classNameId, long classPK) Returns all the sharing entries where classNameId = ? and classPK = ?.static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end) Returns a range of all the sharing entries where classNameId = ? and classPK = ?.static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.static SharingEntryfindByC_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 = ?.static List<SharingEntry> findByC_CN(long companyId, long classNameId) Returns all the sharing entries where companyId = ? and classNameId = ?.static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end) Returns a range of all the sharing entries where companyId = ? and classNameId = ?.static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where companyId = ? and classNameId = ?.static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where companyId = ? and classNameId = ?.static SharingEntryfindByC_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 = ?.static SharingEntryfindByERC_G(String externalReferenceCode, long groupId) Returns the sharing entry where externalReferenceCode = ? and groupId = ? or throws aNoSuchEntryExceptionif it could not be found.static List<SharingEntry> findByGroupId(long groupId) Returns all the sharing entries where groupId = ?.static List<SharingEntry> findByGroupId(long groupId, int start, int end) Returns a range of all the sharing entries where groupId = ?.static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where groupId = ?.static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where groupId = ?.static SharingEntryfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where groupId = ?.static List<SharingEntry> findByLtExpirationDate(Date expirationDate) Returns all the sharing entries where expirationDate < ?.static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end) Returns a range of all the sharing entries where expirationDate < ?.static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where expirationDate < ?.static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where expirationDate < ?.static SharingEntryfindByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where expirationDate < ?.static SharingEntryfindByPrimaryKey(long sharingEntryId) Returns the sharing entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.static List<SharingEntry> findByToTicketId(long toTicketId) Returns all the sharing entries where toTicketId = ?.static List<SharingEntry> findByToTicketId(long toTicketId, int start, int end) Returns a range of all the sharing entries where toTicketId = ?.static 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 = ?.static 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 = ?.static SharingEntryfindByToTicketId_First(long toTicketId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toTicketId = ?.static List<SharingEntry> findByToUserGroupId(long toUserGroupId) Returns all the sharing entries where toUserGroupId = ?.static List<SharingEntry> findByToUserGroupId(long toUserGroupId, int start, int end) Returns a range of all the sharing entries where toUserGroupId = ?.static 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 = ?.static 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 = ?.static SharingEntryfindByToUserGroupId_First(long toUserGroupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserGroupId = ?.static List<SharingEntry> findByToUserId(long toUserId) Returns all the sharing entries where toUserId = ?.static List<SharingEntry> findByToUserId(long toUserId, int start, int end) Returns a range of all the sharing entries where toUserId = ?.static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where toUserId = ?.static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where toUserId = ?.static SharingEntryfindByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserId = ?.static SharingEntryfindByTT_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 aNoSuchEntryExceptionif it could not be found.static List<SharingEntry> findByTU_C(long toUserId, long classNameId) Returns all the sharing entries where toUserId = ? and classNameId = ?.static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end) Returns a range of all the sharing entries where toUserId = ? and classNameId = ?.static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.static SharingEntryfindByTU_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 = ?.static List<SharingEntry> findByU_C(long userId, long classNameId) Returns all the sharing entries where userId = ? and classNameId = ?.static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end) Returns a range of all the sharing entries where userId = ? and classNameId = ?.static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.static SharingEntryfindByU_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 = ?.static List<SharingEntry> findByUserId(long userId) Returns all the sharing entries where userId = ?.static List<SharingEntry> findByUserId(long userId, int start, int end) Returns a range of all the sharing entries where userId = ?.static List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where userId = ?.static List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where userId = ?.static SharingEntryfindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where userId = ?.static List<SharingEntry> findByUuid(String uuid) Returns all the sharing entries where uuid = ?.static List<SharingEntry> findByUuid(String uuid, int start, int end) Returns a range of all the sharing entries where uuid = ?.static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where uuid = ?.static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where uuid = ?.static List<SharingEntry> findByUuid_C(String uuid, long companyId) Returns all the sharing entries where uuid = ? and companyId = ?.static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the sharing entries where uuid = ? and companyId = ?.static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.static SharingEntryfindByUuid_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 = ?.static SharingEntryfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where uuid = ?.static SharingEntryfindByUUID_G(String uuid, long groupId) Returns the sharing entry where uuid = ? and groupId = ? or throws aNoSuchEntryExceptionif it could not be found.static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) static SharingEntryPersistencestatic SharingEntryremove(long sharingEntryId) Removes the sharing entry with the primary key from the database.static voidremoveByC_C(long classNameId, long classPK) Removes all the sharing entries where classNameId = ? and classPK = ? from the database.static voidremoveByC_CN(long companyId, long classNameId) Removes all the sharing entries where companyId = ? and classNameId = ? from the database.static SharingEntryremoveByERC_G(String externalReferenceCode, long groupId) Removes the sharing entry where externalReferenceCode = ? and groupId = ? from the database.static voidremoveByGroupId(long groupId) Removes all the sharing entries where groupId = ? from the database.static voidremoveByLtExpirationDate(Date expirationDate) Removes all the sharing entries where expirationDate < ? from the database.static voidremoveByToTicketId(long toTicketId) Removes all the sharing entries where toTicketId = ? from the database.static voidremoveByToUserGroupId(long toUserGroupId) Removes all the sharing entries where toUserGroupId = ? from the database.static voidremoveByToUserId(long toUserId) Removes all the sharing entries where toUserId = ? from the database.static SharingEntryremoveByTT_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.static voidremoveByTU_C(long toUserId, long classNameId) Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.static voidremoveByU_C(long userId, long classNameId) Removes all the sharing entries where userId = ? and classNameId = ? from the database.static voidremoveByUserId(long userId) Removes all the sharing entries where userId = ? from the database.static voidremoveByUuid(String uuid) Removes all the sharing entries where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the sharing entries where uuid = ? and companyId = ? from the database.static SharingEntryremoveByUUID_G(String uuid, long groupId) Removes the sharing entry where uuid = ? and groupId = ? from the database.static voidsetPersistence(SharingEntryPersistence persistence) static SharingEntryupdate(SharingEntry sharingEntry) static SharingEntryupdate(SharingEntry sharingEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SharingEntryupdateImpl(SharingEntry sharingEntry)
-
Constructor Details
-
SharingEntryUtil
public SharingEntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static SharingEntry update(SharingEntry sharingEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByUuid_First
public static SharingEntry findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByUuid_First
public static SharingEntry fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByUuid
Removes all the sharing entries where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of sharing entries where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching sharing entries
-
findByUUID_G
Returns the sharing entry where uuid = ? and groupId = ? or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching sharing entry
-
fetchByUUID_G
Returns the sharing entry where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByUUID_G
Removes the sharing entry where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the sharing entry that was removed
- Throws:
NoSuchEntryException
-
countByUUID_G
Returns the number of sharing entries where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching sharing entries
-
findByUuid_C
public static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByUuid_C_First
public static SharingEntry findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByUuid_C_First
public static SharingEntry fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByUuid_C
Removes all the sharing entries where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of sharing entries where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching sharing entries
-
findByGroupId
public static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByGroupId_First
public static SharingEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByGroupId_First
public static SharingEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the sharing entries where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of sharing entries where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching sharing entries
-
findByUserId
public static List<SharingEntry> findByUserId(long userId, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByUserId_First
public static SharingEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByUserId_First
public static SharingEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByUserId
public static void removeByUserId(long userId) Removes all the sharing entries where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static int countByUserId(long userId) Returns the number of sharing entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching sharing entries
-
findByToTicketId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toTicketId- the to ticket IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByToTicketId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByToTicketId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByToTicketId
public static void removeByToTicketId(long toTicketId) Removes all the sharing entries where toTicketId = ? from the database.- Parameters:
toTicketId- the to ticket ID
-
countByToTicketId
public static 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserGroupId- the to user group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByToUserGroupId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByToUserGroupId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByToUserGroupId
public static void removeByToUserGroupId(long toUserGroupId) Removes all the sharing entries where toUserGroupId = ? from the database.- Parameters:
toUserGroupId- the to user group ID
-
countByToUserGroupId
public static 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
public static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where toUserId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByToUserId_First
public static SharingEntry findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where toUserId = ?.- Parameters:
toUserId- the to user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByToUserId_First
public static SharingEntry fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserId = ?.- Parameters:
toUserId- the to user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByToUserId
public static void removeByToUserId(long toUserId) Removes all the sharing entries where toUserId = ? from the database.- Parameters:
toUserId- the to user ID
-
countByToUserId
public static int countByToUserId(long toUserId) Returns the number of sharing entries where toUserId = ?.- Parameters:
toUserId- the to user ID- Returns:
- the number of matching sharing entries
-
findByLtExpirationDate
Returns all the sharing entries where expirationDate < ?.- Parameters:
expirationDate- the expiration date- Returns:
- the matching sharing entries
-
findByLtExpirationDate
Returns a range of all the sharing entries where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByLtExpirationDate
public static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByLtExpirationDate
public static List<SharingEntry> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByLtExpirationDate_First
public static SharingEntry findByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByLtExpirationDate_First
public static SharingEntry fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByLtExpirationDate
Removes all the sharing entries where expirationDate < ? from the database.- Parameters:
expirationDate- the expiration date
-
countByLtExpirationDate
Returns the number of sharing entries where expirationDate < ?.- Parameters:
expirationDate- the expiration date- Returns:
- the number of matching sharing entries
-
findByC_CN
public static List<SharingEntry> findByC_CN(long companyId, long classNameId, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByC_CN_First
public static SharingEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByC_CN_First
public static SharingEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByC_CN
public static void removeByC_CN(long companyId, long classNameId) Removes all the sharing entries where companyId = ? and classNameId = ? from the database.- Parameters:
companyId- the company IDclassNameId- the class name ID
-
countByC_CN
public static int countByC_CN(long companyId, long classNameId) Returns the number of sharing entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the number of matching sharing entries
-
findByU_C
public static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByU_C_First
public static SharingEntry findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.- Parameters:
userId- the user IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByU_C_First
public static SharingEntry fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where userId = ? and classNameId = ?.- Parameters:
userId- the user IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByU_C
public static void removeByU_C(long userId, long classNameId) Removes all the sharing entries where userId = ? and classNameId = ? from the database.- Parameters:
userId- the user IDclassNameId- the class name ID
-
countByU_C
public static int countByU_C(long userId, long classNameId) Returns the number of sharing entries where userId = ? and classNameId = ?.- Parameters:
userId- the user IDclassNameId- the class name ID- Returns:
- the number of matching sharing entries
-
findByTU_C
public static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByTU_C_First
public static SharingEntry findByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.- Parameters:
toUserId- the to user IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByTU_C_First
public static SharingEntry fetchByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where toUserId = ? and classNameId = ?.- Parameters:
toUserId- the to user IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByTU_C
public static void removeByTU_C(long toUserId, long classNameId) Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.- Parameters:
toUserId- the to user IDclassNameId- the class name ID
-
countByTU_C
public static int countByTU_C(long toUserId, long classNameId) Returns the number of sharing entries where toUserId = ? and classNameId = ?.- Parameters:
toUserId- the to user IDclassNameId- the class name ID- Returns:
- the number of matching sharing entries
-
findByC_C
public static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharing entries
-
findByC_C_First
public static SharingEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry
-
fetchByC_C_First
public static SharingEntry fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns the first sharing entry in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the sharing entries where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of sharing entries where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching sharing entries
-
findByTT_TUG_TU_C_C
public static 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 aNoSuchEntryExceptionif it could not be found.- Parameters:
toTicketId- the to ticket IDtoUserGroupId- the to user group IDtoUserId- the to user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the matching sharing entry
-
fetchByTT_TUG_TU_C_C
public static 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
toTicketId- the to ticket IDtoUserGroupId- the to user group IDtoUserId- the to user IDclassNameId- the class name IDclassPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByTT_TUG_TU_C_C
public static 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 IDtoUserGroupId- the to user group IDtoUserId- the to user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the sharing entry that was removed
- Throws:
NoSuchEntryException
-
countByTT_TUG_TU_C_C
public static 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 IDtoUserGroupId- the to user group IDtoUserId- the to user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching sharing entries
-
findByERC_G
public static SharingEntry findByERC_G(String externalReferenceCode, long groupId) throws NoSuchEntryException Returns the sharing entry where externalReferenceCode = ? and groupId = ? or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching sharing entry
-
fetchByERC_G
public static SharingEntry fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
removeByERC_G
public static SharingEntry removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchEntryException Removes the sharing entry where externalReferenceCode = ? and groupId = ? from the database.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the sharing entry that was removed
- Throws:
NoSuchEntryException
-
countByERC_G
Returns the number of sharing entries where externalReferenceCode = ? and groupId = ?.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the number of matching sharing entries
-
create
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
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
-
updateImpl
-
findByPrimaryKey
Returns the sharing entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
sharingEntryId- the primary key of the sharing entry- Returns:
- the sharing entry
-
fetchByPrimaryKey
Returns the sharing entry with the primary key or returnsnullif it could not be found.- Parameters:
sharingEntryId- the primary key of the sharing entry- Returns:
- the sharing entry, or
nullif a sharing entry with the primary key could not be found
-
fetchByUUID_G
Returns the sharing entry where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
fetchByTT_TUG_TU_C_C
public static 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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
toTicketId- the to ticket IDtoUserGroupId- the to user group IDtoUserId- the to user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
fetchByERC_G
Returns the sharing entry where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching sharing entry, or
nullif a matching sharing entry could not be found
-
findByUuid
Returns all the sharing entries where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching sharing entries
-
findByUuid
Returns a range of all the sharing entries where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByUuid
public static List<SharingEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByUuid_C
Returns all the sharing entries where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching sharing entries
-
findByUuid_C
Returns a range of all the sharing entries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByUuid_C
public static List<SharingEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByGroupId
Returns all the sharing entries where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching sharing entries
-
findByGroupId
Returns a range of all the sharing entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByGroupId
public static List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByUserId
Returns all the sharing entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching sharing entries
-
findByUserId
Returns a range of all the sharing entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByUserId
public static List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByToTicketId
Returns all the sharing entries where toTicketId = ?.- Parameters:
toTicketId- the to ticket ID- Returns:
- the matching sharing entries
-
findByToTicketId
Returns a range of all the sharing entries where toTicketId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toTicketId- the to ticket IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByToTicketId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toTicketId- the to ticket IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByToUserGroupId
Returns all the sharing entries where toUserGroupId = ?.- Parameters:
toUserGroupId- the to user group ID- Returns:
- the matching sharing entries
-
findByToUserGroupId
Returns a range of all the sharing entries where toUserGroupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserGroupId- the to user group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByToUserGroupId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserGroupId- the to user group IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByToUserId
Returns all the sharing entries where toUserId = ?.- Parameters:
toUserId- the to user ID- Returns:
- the matching sharing entries
-
findByToUserId
Returns a range of all the sharing entries where toUserId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByToUserId
public static List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where toUserId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByC_CN
Returns all the sharing entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the matching sharing entries
-
findByC_CN
Returns a range of all the sharing entries where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByC_CN
public static List<SharingEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByU_C
Returns all the sharing entries where userId = ? and classNameId = ?.- Parameters:
userId- the user IDclassNameId- the class name ID- Returns:
- the matching sharing entries
-
findByU_C
Returns a range of all the sharing entries where userId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByU_C
public static List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByTU_C
Returns all the sharing entries where toUserId = ? and classNameId = ?.- Parameters:
toUserId- the to user IDclassNameId- the class name ID- Returns:
- the matching sharing entries
-
findByTU_C
Returns a range of all the sharing entries where toUserId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByTU_C
public static List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
toUserId- the to user IDclassNameId- the class name IDstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
findByC_C
Returns all the sharing entries where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching sharing entries
-
findByC_C
Returns a range of all the sharing entries where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)- Returns:
- the range of matching sharing entries
-
findByC_C
public static List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.sharing.model.impl.SharingEntryModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of sharing entriesend- the upper bound of the range of sharing entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharing entries
-
getPersistence
-
setPersistence
-