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