@ProviderType
public class SharingEntryUtil
extends java.lang.Object
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
SharingEntryPersistence
Constructor and Description |
---|
SharingEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SharingEntry> sharingEntries)
Caches the sharing entries in the entity cache if it is enabled.
|
static void |
cacheResult(SharingEntry sharingEntry)
Caches the sharing entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SharingEntry sharingEntry) |
static int |
countAll()
Returns the number of sharing entries.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of sharing entries where classNameId = ? and classPK = ?.
|
static int |
countByExpirationDate(java.util.Date expirationDate)
Returns the number of sharing entries where expirationDate < ?.
|
static int |
countByGroupId(long groupId)
Returns the number of sharing entries where groupId = ?.
|
static int |
countByToUserId(long toUserId)
Returns the number of sharing entries where toUserId = ?.
|
static int |
countByTU_C_C(long toUserId,
long classNameId,
long classPK)
Returns the number of sharing entries where toUserId = ? and classNameId = ? and classPK = ?.
|
static int |
countByTU_C(long toUserId,
long classNameId)
Returns the number of sharing entries where toUserId = ? and classNameId = ?.
|
static int |
countByU_C(long userId,
long classNameId)
Returns the number of sharing entries where userId = ? and classNameId = ?.
|
static int |
countByUserId(long userId)
Returns the number of sharing entries where userId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of sharing entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of sharing entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of sharing entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SharingEntry |
create(long sharingEntryId)
Creates a new sharing entry with the primary key.
|
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 = ?.
|
static SharingEntry |
fetchByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
|
static SharingEntry |
fetchByExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where expirationDate < ?.
|
static SharingEntry |
fetchByExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where expirationDate < ?.
|
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 = ?.
|
static SharingEntry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where groupId = ?.
|
static SharingEntry |
fetchByPrimaryKey(long sharingEntryId)
Returns the sharing entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SharingEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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 = ?.
|
static SharingEntry |
fetchByToUserId_Last(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where toUserId = ?.
|
static SharingEntry |
fetchByTU_C_C(long toUserId,
long classNameId,
long classPK)
Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
static SharingEntry |
fetchByTU_C_C(long toUserId,
long classNameId,
long classPK,
boolean retrieveFromCache)
Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
static SharingEntry |
fetchByTU_C_Last(long toUserId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
|
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 = ?.
|
static SharingEntry |
fetchByU_C_Last(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
|
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 = ?.
|
static SharingEntry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where userId = ?.
|
static SharingEntry |
fetchByUuid_C_First(java.lang.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 SharingEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
|
static SharingEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where uuid = ?.
|
static SharingEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the sharing entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static SharingEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the sharing entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static SharingEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where uuid = ?.
|
static java.util.List<SharingEntry> |
findAll()
Returns all the sharing entries.
|
static java.util.List<SharingEntry> |
findAll(int start,
int end)
Returns a range of all the sharing entries.
|
static java.util.List<SharingEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns an ordered range of all the sharing entries.
|
static java.util.List<SharingEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries.
|
static SharingEntry |
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 = ?.
|
static SharingEntry |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where classNameId = ? and classPK = ?.
|
static SharingEntry[] |
findByC_C_PrevAndNext(long sharingEntryId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<SharingEntry> |
findByC_C(long classNameId,
long classPK)
Returns all the sharing entries where classNameId = ? and classPK = ?.
|
static java.util.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 java.util.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 java.util.List<SharingEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where classNameId = ? and classPK = ?.
|
static SharingEntry |
findByExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where expirationDate < ?.
|
static SharingEntry |
findByExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where expirationDate < ?.
|
static SharingEntry[] |
findByExpirationDate_PrevAndNext(long sharingEntryId,
java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where expirationDate < ?.
|
static java.util.List<SharingEntry> |
findByExpirationDate(java.util.Date expirationDate)
Returns all the sharing entries where expirationDate < ?.
|
static java.util.List<SharingEntry> |
findByExpirationDate(java.util.Date expirationDate,
int start,
int end)
Returns a range of all the sharing entries where expirationDate < ?.
|
static java.util.List<SharingEntry> |
findByExpirationDate(java.util.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 java.util.List<SharingEntry> |
findByExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where expirationDate < ?.
|
static SharingEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where groupId = ?.
|
static SharingEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where groupId = ?.
|
static SharingEntry[] |
findByGroupId_PrevAndNext(long sharingEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where groupId = ?.
|
static java.util.List<SharingEntry> |
findByGroupId(long groupId)
Returns all the sharing entries where groupId = ?.
|
static java.util.List<SharingEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the sharing entries where groupId = ?.
|
static java.util.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 java.util.List<SharingEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where groupId = ?.
|
static SharingEntry |
findByPrimaryKey(long sharingEntryId)
Returns the sharing entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static SharingEntry |
findByToUserId_First(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where toUserId = ?.
|
static SharingEntry |
findByToUserId_Last(long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where toUserId = ?.
|
static SharingEntry[] |
findByToUserId_PrevAndNext(long sharingEntryId,
long toUserId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ?.
|
static java.util.List<SharingEntry> |
findByToUserId(long toUserId)
Returns all the sharing entries where toUserId = ?.
|
static java.util.List<SharingEntry> |
findByToUserId(long toUserId,
int start,
int end)
Returns a range of all the sharing entries where toUserId = ?.
|
static java.util.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 java.util.List<SharingEntry> |
findByToUserId(long toUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where toUserId = ?.
|
static SharingEntry |
findByTU_C_C(long toUserId,
long classNameId,
long classPK)
Returns the sharing entry where toUserId = ? and classNameId = ? and classPK = ? or throws a
NoSuchEntryException if it could not be found. |
static SharingEntry |
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 = ?.
|
static SharingEntry |
findByTU_C_Last(long toUserId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where toUserId = ? and classNameId = ?.
|
static SharingEntry[] |
findByTU_C_PrevAndNext(long sharingEntryId,
long toUserId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where toUserId = ? and classNameId = ?.
|
static java.util.List<SharingEntry> |
findByTU_C(long toUserId,
long classNameId)
Returns all the sharing entries where toUserId = ? and classNameId = ?.
|
static java.util.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 java.util.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 java.util.List<SharingEntry> |
findByTU_C(long toUserId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where toUserId = ? and classNameId = ?.
|
static SharingEntry |
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 = ?.
|
static SharingEntry |
findByU_C_Last(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where userId = ? and classNameId = ?.
|
static SharingEntry[] |
findByU_C_PrevAndNext(long sharingEntryId,
long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ? and classNameId = ?.
|
static java.util.List<SharingEntry> |
findByU_C(long userId,
long classNameId)
Returns all the sharing entries where userId = ? and classNameId = ?.
|
static java.util.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 java.util.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 java.util.List<SharingEntry> |
findByU_C(long userId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where userId = ? and classNameId = ?.
|
static SharingEntry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where userId = ?.
|
static SharingEntry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where userId = ?.
|
static SharingEntry[] |
findByUserId_PrevAndNext(long sharingEntryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where userId = ?.
|
static java.util.List<SharingEntry> |
findByUserId(long userId)
Returns all the sharing entries where userId = ?.
|
static java.util.List<SharingEntry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the sharing entries where userId = ?.
|
static java.util.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 java.util.List<SharingEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where userId = ?.
|
static SharingEntry |
findByUuid_C_First(java.lang.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 SharingEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where uuid = ? and companyId = ?.
|
static SharingEntry[] |
findByUuid_C_PrevAndNext(long sharingEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<SharingEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the sharing entries where uuid = ? and companyId = ?.
|
static java.util.List<SharingEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the sharing entries where uuid = ? and companyId = ?.
|
static java.util.List<SharingEntry> |
findByUuid_C(java.lang.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 java.util.List<SharingEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where uuid = ? and companyId = ?.
|
static SharingEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the first sharing entry in the ordered set where uuid = ?.
|
static SharingEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the sharing entry where uuid = ? and groupId = ? or throws a
NoSuchEntryException if it could not be found. |
static SharingEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the last sharing entry in the ordered set where uuid = ?.
|
static SharingEntry[] |
findByUuid_PrevAndNext(long sharingEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the sharing entries before and after the current sharing entry in the ordered set where uuid = ?.
|
static java.util.List<SharingEntry> |
findByUuid(java.lang.String uuid)
Returns all the sharing entries where uuid = ?.
|
static java.util.List<SharingEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the sharing entries where uuid = ?.
|
static java.util.List<SharingEntry> |
findByUuid(java.lang.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 java.util.List<SharingEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the sharing entries where uuid = ?.
|
static java.util.List<SharingEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SharingEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SharingEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) |
static SharingEntryPersistence |
getPersistence() |
static SharingEntry |
remove(long sharingEntryId)
Removes the sharing entry with the primary key from the database.
|
static void |
removeAll()
Removes all the sharing entries from the database.
|
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the sharing entries where classNameId = ? and classPK = ? from the database.
|
static void |
removeByExpirationDate(java.util.Date expirationDate)
Removes all the sharing entries where expirationDate < ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the sharing entries where groupId = ? from the database.
|
static void |
removeByToUserId(long toUserId)
Removes all the sharing entries where toUserId = ? from the database.
|
static SharingEntry |
removeByTU_C_C(long toUserId,
long classNameId,
long classPK)
Removes the sharing entry where toUserId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByTU_C(long toUserId,
long classNameId)
Removes all the sharing entries where toUserId = ? and classNameId = ? from the database.
|
static void |
removeByU_C(long userId,
long classNameId)
Removes all the sharing entries where userId = ? and classNameId = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the sharing entries where userId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the sharing entries where uuid = ? and companyId = ? from the database.
|
static SharingEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the sharing entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the sharing entries where uuid = ? from the database.
|
static SharingEntry |
update(SharingEntry sharingEntry) |
static SharingEntry |
update(SharingEntry sharingEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SharingEntry |
updateImpl(SharingEntry sharingEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SharingEntry sharingEntry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,SharingEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SharingEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SharingEntry update(SharingEntry sharingEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SharingEntry update(SharingEntry sharingEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SharingEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<SharingEntry> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public static java.util.List<SharingEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByUuid_PrevAndNext(long sharingEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static SharingEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching sharing entry could not be foundpublic static SharingEntry fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching sharing entry could not be foundpublic static SharingEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
uuid
- the uuidgroupId
- the group IDNoSuchEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<SharingEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<SharingEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<SharingEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByUuid_C_PrevAndNext(long sharingEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<SharingEntry> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<SharingEntry> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public static java.util.List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByGroupId_PrevAndNext(long sharingEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<SharingEntry> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<SharingEntry> findByUserId(long userId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public static java.util.List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByUserId_PrevAndNext(long sharingEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static java.util.List<SharingEntry> findByToUserId(long toUserId)
toUserId
- the to user IDpublic static java.util.List<SharingEntry> findByToUserId(long toUserId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByToUserId(long toUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByToUserId_First(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByToUserId_Last(long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
toUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByToUserId_PrevAndNext(long sharingEntryId, long toUserId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entrytoUserId
- the to user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByToUserId(long toUserId)
toUserId
- the to user IDpublic static int countByToUserId(long toUserId)
toUserId
- the to user IDpublic static java.util.List<SharingEntry> findByExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static java.util.List<SharingEntry> findByExpirationDate(java.util.Date expirationDate, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
expirationDate
- the expiration datestart
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public static java.util.List<SharingEntry> findByExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByExpirationDate_PrevAndNext(long sharingEntryId, java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static int countByExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static java.util.List<SharingEntry> findByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDpublic static java.util.List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByU_C_PrevAndNext(long sharingEntryId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryuserId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDpublic static int countByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDpublic static java.util.List<SharingEntry> findByTU_C(long toUserId, long classNameId)
toUserId
- the to user IDclassNameId
- the class name IDpublic static java.util.List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByTU_C(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByTU_C_First(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
toUserId
- the to user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
toUserId
- the to user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByTU_C_Last(long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
toUserId
- the to user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByTU_C_PrevAndNext(long sharingEntryId, long toUserId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entrytoUserId
- the to user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByTU_C(long toUserId, long classNameId)
toUserId
- the to user IDclassNameId
- the class name IDpublic static int countByTU_C(long toUserId, long classNameId)
toUserId
- the to user IDclassNameId
- the class name IDpublic static java.util.List<SharingEntry> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<SharingEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SharingEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharing entry could not be foundpublic static SharingEntry[] findByC_C_PrevAndNext(long sharingEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator) throws NoSuchEntryException
sharingEntryId
- the primary key of the current sharing entryclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static void removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static SharingEntry findByTU_C_C(long toUserId, long classNameId, long classPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.toUserId
- the to user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
- if a matching sharing entry could not be foundpublic static SharingEntry fetchByTU_C_C(long toUserId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.toUserId
- the to user IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching sharing entry could not be foundpublic static SharingEntry fetchByTU_C_C(long toUserId, long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.toUserId
- the to user IDclassNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching sharing entry could not be foundpublic static SharingEntry removeByTU_C_C(long toUserId, long classNameId, long classPK) throws NoSuchEntryException
toUserId
- the to user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
public static int countByTU_C_C(long toUserId, long classNameId, long classPK)
toUserId
- the to user IDclassNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(SharingEntry sharingEntry)
sharingEntry
- the sharing entrypublic static void cacheResult(java.util.List<SharingEntry> sharingEntries)
sharingEntries
- the sharing entriespublic static SharingEntry create(long sharingEntryId)
sharingEntryId
- the primary key for the new sharing entrypublic static SharingEntry remove(long sharingEntryId) throws NoSuchEntryException
sharingEntryId
- the primary key of the sharing entryNoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static SharingEntry updateImpl(SharingEntry sharingEntry)
public static SharingEntry findByPrimaryKey(long sharingEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.sharingEntryId
- the primary key of the sharing entryNoSuchEntryException
- if a sharing entry with the primary key could not be foundpublic static SharingEntry fetchByPrimaryKey(long sharingEntryId)
null
if it could not be found.sharingEntryId
- the primary key of the sharing entrynull
if a sharing entry with the primary key could not be foundpublic static java.util.List<SharingEntry> findAll()
public static java.util.List<SharingEntry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public static java.util.List<SharingEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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 (optionally null
)public static java.util.List<SharingEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SharingEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static SharingEntryPersistence getPersistence()