Class CommerceSubscriptionEntryUtil

java.lang.Object
com.liferay.commerce.service.persistence.CommerceSubscriptionEntryUtil

public class CommerceSubscriptionEntryUtil extends Object
The persistence utility for the commerce subscription entry service. This utility wraps 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 Details

    • CommerceSubscriptionEntryUtil

      public CommerceSubscriptionEntryUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry)
      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

      public static CommerceSubscriptionEntry update(CommerceSubscriptionEntry commerceSubscriptionEntry)
      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

      public static List<CommerceSubscriptionEntry> findByUuid(String uuid)
      Returns all the commerce subscription entries where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce subscription entries
    • findByUuid

      public static List<CommerceSubscriptionEntry> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce subscription entries where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • removeByUuid

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

      public static int countByUuid(String uuid)
      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 a NoSuchSubscriptionEntryException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • fetchByUUID_G

      public static CommerceSubscriptionEntry fetchByUUID_G(String uuid, long groupId)
      Returns the commerce subscription entry where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching 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 uuid
      groupId - the group ID
      Returns:
      the commerce subscription entry that was removed
      Throws:
      NoSuchSubscriptionEntryException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of commerce subscription entries where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching commerce subscription entries
    • findByUuid_C

      public static List<CommerceSubscriptionEntry> findByUuid_C(String uuid, long companyId)
      Returns all the commerce subscription entries where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - 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 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce subscription entries where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce subscription entries where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce subscription entries
    • findByGroupId

      public static List<CommerceSubscriptionEntry> findByGroupId(long groupId)
      Returns all the commerce subscription entries where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce subscription entries
    • findByGroupId

      public static List<CommerceSubscriptionEntry> findByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce subscription entries where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • 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

      public static List<CommerceSubscriptionEntry> findByCompanyId(long companyId)
      Returns all the commerce subscription entries where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching commerce subscription entries
    • findByCompanyId

      public static List<CommerceSubscriptionEntry> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the commerce subscription entries where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • 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 a NoSuchSubscriptionEntryException 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 found
      NoSuchSubscriptionEntryException
    • fetchByCommerceOrderItemId

      public static CommerceSubscriptionEntry fetchByCommerceOrderItemId(long commerceOrderItemId)
      Returns the commerce subscription entry where commerceOrderItemId = ? or returns null 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      useFinderCache - 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

      public static List<CommerceSubscriptionEntry> findBySubscriptionStatus(int subscriptionStatus)
      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 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.

      Parameters:
      subscriptionStatus - the subscription status
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      subscriptionStatus - the subscription status
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      subscriptionStatus - the subscription status
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 status
      orderByComparator - the comparator to order the set by (optionally null)
      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 status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 status
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      subscriptionStatus - the subscription status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • 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

      public static List<CommerceSubscriptionEntry> findByC_U(long companyId, long userId)
      Returns all the commerce subscription entries where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - 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 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.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      userId - 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 ID
      userId - 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 ID
      companyId - the company ID
      userId - 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 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.

      Parameters:
      groupId - the group ID
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      groupId - the group ID
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      groupId - the group ID
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of commerce subscription entries
      end - 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 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 ID
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 entry
      groupId - the group ID
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a commerce subscription entry with the primary key could not be found
      NoSuchSubscriptionEntryException
    • 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 ID
      companyId - the company ID
      userId - 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 ID
      companyId - the company ID
      userId - 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 a NoSuchSubscriptionEntryException if it could not be found.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      commerceOrderItemId - the commerce order item ID
      Returns:
      the matching commerce subscription entry
      Throws:
      NoSuchSubscriptionEntryException - if a matching commerce subscription entry could not be found
      NoSuchSubscriptionEntryException
    • 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 returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      commerceOrderItemId - 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      commerceOrderItemId - the commerce order item ID
      useFinderCache - 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 uuid
      CProductId - the c product ID
      commerceOrderItemId - the commerce order item ID
      Returns:
      the commerce subscription entry that was removed
      Throws:
      NoSuchSubscriptionEntryException
    • countByC_C_C

      public static int countByC_C_C(String CPInstanceUuid, long CProductId, long commerceOrderItemId)
      Returns the number of commerce subscription entries where CPInstanceUuid = ? and CProductId = ? and commerceOrderItemId = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      commerceOrderItemId - the commerce order item ID
      Returns:
      the number of matching commerce subscription entries
    • cacheResult

      public static void cacheResult(CommerceSubscriptionEntry commerceSubscriptionEntry)
      Caches the commerce subscription entry in the entity cache if it is enabled.
      Parameters:
      commerceSubscriptionEntry - the commerce subscription entry
    • cacheResult

      public static void cacheResult(List<CommerceSubscriptionEntry> commerceSubscriptionEntries)
      Caches the commerce subscription entries in the entity cache if it is enabled.
      Parameters:
      commerceSubscriptionEntries - the commerce subscription entries
    • create

      public static CommerceSubscriptionEntry create(long commerceSubscriptionEntryId)
      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 found
      NoSuchSubscriptionEntryException
    • 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 a NoSuchSubscriptionEntryException 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 found
      NoSuchSubscriptionEntryException
    • fetchByPrimaryKey

      public static CommerceSubscriptionEntry fetchByPrimaryKey(long commerceSubscriptionEntryId)
      Returns the commerce subscription entry with the primary key or returns null 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

      public static List<CommerceSubscriptionEntry> findAll()
      Returns all the commerce subscription entries.
      Returns:
      the commerce subscription entries
    • findAll

      public static List<CommerceSubscriptionEntry> findAll(int start, int end)
      Returns a range of all the commerce subscription entries.

      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.

      Parameters:
      start - the lower bound of the range of commerce subscription entries
      end - 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 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.

      Parameters:
      start - the lower bound of the range of commerce subscription entries
      end - the upper bound of the range of commerce subscription entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      start - the lower bound of the range of commerce subscription entries
      end - 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 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

      public static CommerceSubscriptionEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceSubscriptionEntryPersistence persistence)