public class CommerceSubscriptionEntryUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceSubscriptionEntryPersistenceImpl
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
CommerceSubscriptionEntryPersistence
Constructor and Description |
---|
CommerceSubscriptionEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceSubscriptionEntry commerceSubscriptionEntry)
Caches the commerce subscription entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceSubscriptionEntry> commerceSubscriptionEntries)
Caches the commerce subscription entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry) |
static int |
countAll()
Returns the number of commerce subscription entries.
|
static int |
countByC_C_C(java.lang.String CPInstanceUuid,
long CProductId,
long commerceOrderItemId)
Returns the number of commerce subscription entries where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ?.
|
static int |
countByC_U(long companyId,
long userId)
Returns the number of commerce subscription entries where companyId = ? and userId = ?.
|
static int |
countByCommerceOrderItemId(long commerceOrderItemId)
Returns the number of commerce subscription entries where commerceOrderItemId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce subscription entries where companyId = ?.
|
static int |
countByG_C_U(long groupId,
long companyId,
long userId)
Returns the number of commerce subscription entries where groupId = ? and companyId = ? and userId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce subscription entries where groupId = ?.
|
static int |
countBySubscriptionStatus(int subscriptionStatus)
Returns the number of commerce subscription entries where subscriptionStatus = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce subscription entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce subscription entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce subscription entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceSubscriptionEntry |
create(long commerceSubscriptionEntryId)
Creates a new commerce subscription entry with the primary key.
|
static CommerceSubscriptionEntry |
fetchByC_C_C(java.lang.String CPInstanceUuid,
long CProductId,
long commerceOrderItemId)
Returns the commerce subscription entry where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ? or returns
null if it could not be found. |
static CommerceSubscriptionEntry |
fetchByC_C_C(java.lang.String CPInstanceUuid,
long CProductId,
long commerceOrderItemId,
boolean useFinderCache)
Returns the commerce subscription entry where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceSubscriptionEntry |
fetchByC_U_First(long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
fetchByC_U_Last(long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
fetchByCommerceOrderItemId(long commerceOrderItemId)
Returns the commerce subscription entry where commerceOrderItemId = ? or returns
null if it could not be found. |
static CommerceSubscriptionEntry |
fetchByCommerceOrderItemId(long commerceOrderItemId,
boolean useFinderCache)
Returns the commerce subscription entry where commerceOrderItemId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceSubscriptionEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where companyId = ?.
|
static CommerceSubscriptionEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where companyId = ?.
|
static CommerceSubscriptionEntry |
fetchByG_C_U_First(long groupId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where groupId = ? and companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
fetchByG_C_U_Last(long groupId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where groupId = ? and companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where groupId = ?.
|
static CommerceSubscriptionEntry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where groupId = ?.
|
static CommerceSubscriptionEntry |
fetchByPrimaryKey(long commerceSubscriptionEntryId)
Returns the commerce subscription entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceSubscriptionEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceSubscriptionEntry |
fetchBySubscriptionStatus_First(int subscriptionStatus,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where subscriptionStatus = ?.
|
static CommerceSubscriptionEntry |
fetchBySubscriptionStatus_Last(int subscriptionStatus,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where subscriptionStatus = ?.
|
static CommerceSubscriptionEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where uuid = ? and companyId = ?.
|
static CommerceSubscriptionEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where uuid = ? and companyId = ?.
|
static CommerceSubscriptionEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where uuid = ?.
|
static CommerceSubscriptionEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce subscription entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceSubscriptionEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the commerce subscription entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceSubscriptionEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findAll()
Returns all the commerce subscription entries.
|
static java.util.List<CommerceSubscriptionEntry> |
findAll(int start,
int end)
Returns a range of all the commerce subscription entries.
|
static java.util.List<CommerceSubscriptionEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries.
|
static java.util.List<CommerceSubscriptionEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries.
|
static CommerceSubscriptionEntry |
findByC_C_C(java.lang.String CPInstanceUuid,
long CProductId,
long commerceOrderItemId)
Returns the commerce subscription entry where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ? or throws a
NoSuchSubscriptionEntryException if it could not be found. |
static CommerceSubscriptionEntry |
findByC_U_First(long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
findByC_U_Last(long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry[] |
findByC_U_PrevAndNext(long commerceSubscriptionEntryId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByC_U(long companyId,
long userId)
Returns all the commerce subscription entries where companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByC_U(long companyId,
long userId,
int start,
int end)
Returns a range of all the commerce subscription entries where companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByC_U(long companyId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByC_U(long companyId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
findByCommerceOrderItemId(long commerceOrderItemId)
Returns the commerce subscription entry where commerceOrderItemId = ? or throws a
NoSuchSubscriptionEntryException if it could not be found. |
static CommerceSubscriptionEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where companyId = ?.
|
static CommerceSubscriptionEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where companyId = ?.
|
static CommerceSubscriptionEntry[] |
findByCompanyId_PrevAndNext(long commerceSubscriptionEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByCompanyId(long companyId)
Returns all the commerce subscription entries where companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce subscription entries where companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where companyId = ?.
|
static CommerceSubscriptionEntry |
findByG_C_U_First(long groupId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where groupId = ? and companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
findByG_C_U_Last(long groupId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where groupId = ? and companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry[] |
findByG_C_U_PrevAndNext(long commerceSubscriptionEntryId,
long groupId,
long companyId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where groupId = ? and companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByG_C_U(long groupId,
long companyId,
long userId)
Returns all the commerce subscription entries where groupId = ? and companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByG_C_U(long groupId,
long companyId,
long userId,
int start,
int end)
Returns a range of all the commerce subscription entries where groupId = ? and companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByG_C_U(long groupId,
long companyId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where groupId = ? and companyId = ? and userId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByG_C_U(long groupId,
long companyId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where groupId = ? and companyId = ? and userId = ?.
|
static CommerceSubscriptionEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where groupId = ?.
|
static CommerceSubscriptionEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where groupId = ?.
|
static CommerceSubscriptionEntry[] |
findByGroupId_PrevAndNext(long commerceSubscriptionEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where groupId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByGroupId(long groupId)
Returns all the commerce subscription entries where groupId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce subscription entries where groupId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where groupId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where groupId = ?.
|
static CommerceSubscriptionEntry |
findByPrimaryKey(long commerceSubscriptionEntryId)
Returns the commerce subscription entry with the primary key or throws a
NoSuchSubscriptionEntryException if it could not be found. |
static CommerceSubscriptionEntry |
findBySubscriptionStatus_First(int subscriptionStatus,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where subscriptionStatus = ?.
|
static CommerceSubscriptionEntry |
findBySubscriptionStatus_Last(int subscriptionStatus,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where subscriptionStatus = ?.
|
static CommerceSubscriptionEntry[] |
findBySubscriptionStatus_PrevAndNext(long commerceSubscriptionEntryId,
int subscriptionStatus,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where subscriptionStatus = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findBySubscriptionStatus(int subscriptionStatus)
Returns all the commerce subscription entries where subscriptionStatus = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findBySubscriptionStatus(int subscriptionStatus,
int start,
int end)
Returns a range of all the commerce subscription entries where subscriptionStatus = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findBySubscriptionStatus(int subscriptionStatus,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where subscriptionStatus = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findBySubscriptionStatus(int subscriptionStatus,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where subscriptionStatus = ?.
|
static CommerceSubscriptionEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where uuid = ? and companyId = ?.
|
static CommerceSubscriptionEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where uuid = ? and companyId = ?.
|
static CommerceSubscriptionEntry[] |
findByUuid_C_PrevAndNext(long commerceSubscriptionEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce subscription entries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce subscription entries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where uuid = ? and companyId = ?.
|
static CommerceSubscriptionEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the first commerce subscription entry in the ordered set where uuid = ?.
|
static CommerceSubscriptionEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce subscription entry where uuid = ? and groupId = ? or throws a
NoSuchSubscriptionEntryException if it could not be found. |
static CommerceSubscriptionEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the last commerce subscription entry in the ordered set where uuid = ?.
|
static CommerceSubscriptionEntry[] |
findByUuid_PrevAndNext(long commerceSubscriptionEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid(java.lang.String uuid)
Returns all the commerce subscription entries where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce subscription entries where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
Returns an ordered range of all the commerce subscription entries where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce subscription entries where uuid = ?.
|
static java.util.List<CommerceSubscriptionEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceSubscriptionEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceSubscriptionEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) |
static CommerceSubscriptionEntryPersistence |
getPersistence() |
static CommerceSubscriptionEntry |
remove(long commerceSubscriptionEntryId)
Removes the commerce subscription entry with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce subscription entries from the database.
|
static CommerceSubscriptionEntry |
removeByC_C_C(java.lang.String CPInstanceUuid,
long CProductId,
long commerceOrderItemId)
Removes the commerce subscription entry where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ? from the database.
|
static void |
removeByC_U(long companyId,
long userId)
Removes all the commerce subscription entries where companyId = ? and userId = ? from the database.
|
static CommerceSubscriptionEntry |
removeByCommerceOrderItemId(long commerceOrderItemId)
Removes the commerce subscription entry where commerceOrderItemId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce subscription entries where companyId = ? from the database.
|
static void |
removeByG_C_U(long groupId,
long companyId,
long userId)
Removes all the commerce subscription entries where groupId = ? and companyId = ? and userId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce subscription entries where groupId = ? from the database.
|
static void |
removeBySubscriptionStatus(int subscriptionStatus)
Removes all the commerce subscription entries where subscriptionStatus = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce subscription entries where uuid = ? and companyId = ? from the database.
|
static CommerceSubscriptionEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce subscription entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce subscription entries where uuid = ? from the database.
|
static CommerceSubscriptionEntry |
update(CommerceSubscriptionEntry commerceSubscriptionEntry) |
static CommerceSubscriptionEntry |
update(CommerceSubscriptionEntry commerceSubscriptionEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceSubscriptionEntry |
updateImpl(CommerceSubscriptionEntry commerceSubscriptionEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry)
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,CommerceSubscriptionEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceSubscriptionEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceSubscriptionEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceSubscriptionEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceSubscriptionEntry update(CommerceSubscriptionEntry commerceSubscriptionEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceSubscriptionEntry update(CommerceSubscriptionEntry commerceSubscriptionEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceSubscriptionEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByUuid_PrevAndNext(long commerceSubscriptionEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription 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 CommerceSubscriptionEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchSubscriptionEntryException
NoSuchSubscriptionEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry 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 commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchSubscriptionEntryException
uuid
- the uuidgroupId
- the group IDNoSuchSubscriptionEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CommerceSubscriptionEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByUuid_C_PrevAndNext(long commerceSubscriptionEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription 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<CommerceSubscriptionEntry> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByGroupId_PrevAndNext(long commerceSubscriptionEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription 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<CommerceSubscriptionEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceSubscriptionEntry> findByCompanyId(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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByCompanyId_PrevAndNext(long commerceSubscriptionEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static CommerceSubscriptionEntry findByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchSubscriptionEntryException
NoSuchSubscriptionEntryException
if it could not be found.commerceOrderItemId
- the commerce order item IDNoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByCommerceOrderItemId(long commerceOrderItemId)
null
if it could not be found. Uses the finder cache.commerceOrderItemId
- the commerce order item IDnull
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceOrderItemId
- the commerce order item IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry removeByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchSubscriptionEntryException
commerceOrderItemId
- the commerce order item IDNoSuchSubscriptionEntryException
public static int countByCommerceOrderItemId(long commerceOrderItemId)
commerceOrderItemId
- the commerce order item IDpublic static java.util.List<CommerceSubscriptionEntry> findBySubscriptionStatus(int subscriptionStatus)
subscriptionStatus
- the subscription statuspublic static java.util.List<CommerceSubscriptionEntry> findBySubscriptionStatus(int subscriptionStatus, 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
subscriptionStatus
- the subscription statusstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findBySubscriptionStatus(int subscriptionStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
subscriptionStatus
- the subscription statusstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findBySubscriptionStatus(int subscriptionStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
subscriptionStatus
- the subscription statusstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findBySubscriptionStatus_First(int subscriptionStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
subscriptionStatus
- the subscription statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchBySubscriptionStatus_First(int subscriptionStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
subscriptionStatus
- the subscription statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findBySubscriptionStatus_Last(int subscriptionStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
subscriptionStatus
- the subscription statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchBySubscriptionStatus_Last(int subscriptionStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
subscriptionStatus
- the subscription statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findBySubscriptionStatus_PrevAndNext(long commerceSubscriptionEntryId, int subscriptionStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entrysubscriptionStatus
- the subscription statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static void removeBySubscriptionStatus(int subscriptionStatus)
subscriptionStatus
- the subscription statuspublic static int countBySubscriptionStatus(int subscriptionStatus)
subscriptionStatus
- the subscription statuspublic static java.util.List<CommerceSubscriptionEntry> findByC_U(long companyId, long userId)
companyId
- the company IDuserId
- the user IDpublic static java.util.List<CommerceSubscriptionEntry> findByC_U(long companyId, 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
companyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
companyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
companyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByC_U_Last(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
companyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByC_U_Last(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
companyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByC_U_PrevAndNext(long commerceSubscriptionEntryId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entrycompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static void removeByC_U(long companyId, long userId)
companyId
- the company IDuserId
- the user IDpublic static int countByC_U(long companyId, long userId)
companyId
- the company IDuserId
- the user IDpublic static java.util.List<CommerceSubscriptionEntry> findByG_C_U(long groupId, long companyId, long userId)
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDpublic static java.util.List<CommerceSubscriptionEntry> findByG_C_U(long groupId, long companyId, 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findByG_C_U(long groupId, long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findByG_C_U(long groupId, long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDstart
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceSubscriptionEntry findByG_C_U_First(long groupId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByG_C_U_First(long groupId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry findByG_C_U_Last(long groupId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByG_C_U_Last(long groupId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry[] findByG_C_U_PrevAndNext(long commerceSubscriptionEntryId, long groupId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the current commerce subscription entrygroupId
- the group IDcompanyId
- the company IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static void removeByG_C_U(long groupId, long companyId, long userId)
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDpublic static int countByG_C_U(long groupId, long companyId, long userId)
groupId
- the group IDcompanyId
- the company IDuserId
- the user IDpublic static CommerceSubscriptionEntry findByC_C_C(java.lang.String CPInstanceUuid, long CProductId, long commerceOrderItemId) throws NoSuchSubscriptionEntryException
NoSuchSubscriptionEntryException
if it could not be found.CPInstanceUuid
- the cp instance uuidCProductId
- the c product IDcommerceOrderItemId
- the commerce order item IDNoSuchSubscriptionEntryException
- if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByC_C_C(java.lang.String CPInstanceUuid, long CProductId, long commerceOrderItemId)
null
if it could not be found. Uses the finder cache.CPInstanceUuid
- the cp instance uuidCProductId
- the c product IDcommerceOrderItemId
- the commerce order item IDnull
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry fetchByC_C_C(java.lang.String CPInstanceUuid, long CProductId, long commerceOrderItemId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPInstanceUuid
- the cp instance uuidCProductId
- the c product IDcommerceOrderItemId
- the commerce order item IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce subscription entry could not be foundpublic static CommerceSubscriptionEntry removeByC_C_C(java.lang.String CPInstanceUuid, long CProductId, long commerceOrderItemId) throws NoSuchSubscriptionEntryException
CPInstanceUuid
- the cp instance uuidCProductId
- the c product IDcommerceOrderItemId
- the commerce order item IDNoSuchSubscriptionEntryException
public static int countByC_C_C(java.lang.String CPInstanceUuid, long CProductId, long commerceOrderItemId)
CPInstanceUuid
- the cp instance uuidCProductId
- the c product IDcommerceOrderItemId
- the commerce order item IDpublic static void cacheResult(CommerceSubscriptionEntry commerceSubscriptionEntry)
commerceSubscriptionEntry
- the commerce subscription entrypublic static void cacheResult(java.util.List<CommerceSubscriptionEntry> commerceSubscriptionEntries)
commerceSubscriptionEntries
- the commerce subscription entriespublic static CommerceSubscriptionEntry create(long commerceSubscriptionEntryId)
commerceSubscriptionEntryId
- the primary key for the new commerce subscription entrypublic static CommerceSubscriptionEntry remove(long commerceSubscriptionEntryId) throws NoSuchSubscriptionEntryException
commerceSubscriptionEntryId
- the primary key of the commerce subscription entryNoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static CommerceSubscriptionEntry updateImpl(CommerceSubscriptionEntry commerceSubscriptionEntry)
public static CommerceSubscriptionEntry findByPrimaryKey(long commerceSubscriptionEntryId) throws NoSuchSubscriptionEntryException
NoSuchSubscriptionEntryException
if it could not be found.commerceSubscriptionEntryId
- the primary key of the commerce subscription entryNoSuchSubscriptionEntryException
- if a commerce subscription entry with the primary key could not be foundpublic static CommerceSubscriptionEntry fetchByPrimaryKey(long commerceSubscriptionEntryId)
null
if it could not be found.commerceSubscriptionEntryId
- the primary key of the commerce subscription entrynull
if a commerce subscription entry with the primary key could not be foundpublic static java.util.List<CommerceSubscriptionEntry> findAll()
public static java.util.List<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
start
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)public static java.util.List<CommerceSubscriptionEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> 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, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
start
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceSubscriptionEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceSubscriptionEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceSubscriptionEntryModelImpl
.
start
- the lower bound of the range of commerce subscription entriesend
- the upper bound of the range of commerce subscription entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceSubscriptionEntryPersistence getPersistence()