Class CommerceWishListItemUtil

java.lang.Object
com.liferay.commerce.wish.list.service.persistence.CommerceWishListItemUtil

public class CommerceWishListItemUtil extends Object
The persistence utility for the commerce wish list item service. This utility wraps com.liferay.commerce.wish.list.service.persistence.impl.CommerceWishListItemPersistenceImpl 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

    • CommerceWishListItemUtil

      public CommerceWishListItemUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceWishListItem commerceWishListItem)
      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,CommerceWishListItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommerceWishListItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommerceWishListItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommerceWishListItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommerceWishListItem update(CommerceWishListItem commerceWishListItem)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommerceWishListItem update(CommerceWishListItem commerceWishListItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceWishListId

      public static List<CommerceWishListItem> findByCommerceWishListId(long commerceWishListId)
      Returns all the commerce wish list items where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      Returns:
      the matching commerce wish list items
    • findByCommerceWishListId

      public static List<CommerceWishListItem> findByCommerceWishListId(long commerceWishListId, int start, int end)
      Returns a range of all the commerce wish list items where commerceWishListId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of matching commerce wish list items
    • findByCommerceWishListId

      public static List<CommerceWishListItem> findByCommerceWishListId(long commerceWishListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce wish list items
    • findByCommerceWishListId

      public static List<CommerceWishListItem> findByCommerceWishListId(long commerceWishListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • findByCommerceWishListId_First

      public static CommerceWishListItem findByCommerceWishListId_First(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCommerceWishListId_First

      public static CommerceWishListItem fetchByCommerceWishListId_First(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCommerceWishListId_Last

      public static CommerceWishListItem findByCommerceWishListId_Last(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCommerceWishListId_Last

      public static CommerceWishListItem fetchByCommerceWishListId_Last(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCommerceWishListId_PrevAndNext

      public static CommerceWishListItem[] findByCommerceWishListId_PrevAndNext(long commerceWishListItemId, long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ?.
      Parameters:
      commerceWishListItemId - the primary key of the current commerce wish list item
      commerceWishListId - the commerce wish list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • removeByCommerceWishListId

      public static void removeByCommerceWishListId(long commerceWishListId)
      Removes all the commerce wish list items where commerceWishListId = ? from the database.
      Parameters:
      commerceWishListId - the commerce wish list ID
    • countByCommerceWishListId

      public static int countByCommerceWishListId(long commerceWishListId)
      Returns the number of commerce wish list items where commerceWishListId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      Returns:
      the number of matching commerce wish list items
    • findByCPInstanceUuid

      public static List<CommerceWishListItem> findByCPInstanceUuid(String CPInstanceUuid)
      Returns all the commerce wish list items where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching commerce wish list items
    • findByCPInstanceUuid

      public static List<CommerceWishListItem> findByCPInstanceUuid(String CPInstanceUuid, int start, int end)
      Returns a range of all the commerce wish list items where CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of matching commerce wish list items
    • findByCPInstanceUuid

      public static List<CommerceWishListItem> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items where CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce wish list items
    • findByCPInstanceUuid

      public static List<CommerceWishListItem> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items where CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • findByCPInstanceUuid_First

      public static CommerceWishListItem findByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the first commerce wish list item in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCPInstanceUuid_First

      public static CommerceWishListItem fetchByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the first commerce wish list item in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCPInstanceUuid_Last

      public static CommerceWishListItem findByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the last commerce wish list item in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCPInstanceUuid_Last

      public static CommerceWishListItem fetchByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the last commerce wish list item in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCPInstanceUuid_PrevAndNext

      public static CommerceWishListItem[] findByCPInstanceUuid_PrevAndNext(long commerceWishListItemId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where CPInstanceUuid = ?.
      Parameters:
      commerceWishListItemId - the primary key of the current commerce wish list item
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • removeByCPInstanceUuid

      public static void removeByCPInstanceUuid(String CPInstanceUuid)
      Removes all the commerce wish list items where CPInstanceUuid = ? from the database.
      Parameters:
      CPInstanceUuid - the cp instance uuid
    • countByCPInstanceUuid

      public static int countByCPInstanceUuid(String CPInstanceUuid)
      Returns the number of commerce wish list items where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      Returns:
      the number of matching commerce wish list items
    • findByCProductId

      public static List<CommerceWishListItem> findByCProductId(long CProductId)
      Returns all the commerce wish list items where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      Returns:
      the matching commerce wish list items
    • findByCProductId

      public static List<CommerceWishListItem> findByCProductId(long CProductId, int start, int end)
      Returns a range of all the commerce wish list items where CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of matching commerce wish list items
    • findByCProductId

      public static List<CommerceWishListItem> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items where CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce wish list items
    • findByCProductId

      public static List<CommerceWishListItem> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items where CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • findByCProductId_First

      public static CommerceWishListItem findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the first commerce wish list item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCProductId_First

      public static CommerceWishListItem fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the first commerce wish list item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCProductId_Last

      public static CommerceWishListItem findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the last commerce wish list item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCProductId_Last

      public static CommerceWishListItem fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the last commerce wish list item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCProductId_PrevAndNext

      public static CommerceWishListItem[] findByCProductId_PrevAndNext(long commerceWishListItemId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where CProductId = ?.
      Parameters:
      commerceWishListItemId - the primary key of the current commerce wish list item
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • removeByCProductId

      public static void removeByCProductId(long CProductId)
      Removes all the commerce wish list items where CProductId = ? from the database.
      Parameters:
      CProductId - the c product ID
    • countByCProductId

      public static int countByCProductId(long CProductId)
      Returns the number of commerce wish list items where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      Returns:
      the number of matching commerce wish list items
    • findByCW_CPI

      public static List<CommerceWishListItem> findByCW_CPI(long commerceWishListId, String CPInstanceUuid)
      Returns all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching commerce wish list items
    • findByCW_CPI

      public static List<CommerceWishListItem> findByCW_CPI(long commerceWishListId, String CPInstanceUuid, int start, int end)
      Returns a range of all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of matching commerce wish list items
    • findByCW_CPI

      public static List<CommerceWishListItem> findByCW_CPI(long commerceWishListId, String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce wish list items
    • findByCW_CPI

      public static List<CommerceWishListItem> findByCW_CPI(long commerceWishListId, String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • findByCW_CPI_First

      public static CommerceWishListItem findByCW_CPI_First(long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCW_CPI_First

      public static CommerceWishListItem fetchByCW_CPI_First(long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCW_CPI_Last

      public static CommerceWishListItem findByCW_CPI_Last(long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCW_CPI_Last

      public static CommerceWishListItem fetchByCW_CPI_Last(long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCW_CPI_PrevAndNext

      public static CommerceWishListItem[] findByCW_CPI_PrevAndNext(long commerceWishListItemId, long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListItemId - the primary key of the current commerce wish list item
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • removeByCW_CPI

      public static void removeByCW_CPI(long commerceWishListId, String CPInstanceUuid)
      Removes all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ? from the database.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
    • countByCW_CPI

      public static int countByCW_CPI(long commerceWishListId, String CPInstanceUuid)
      Returns the number of commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      Returns:
      the number of matching commerce wish list items
    • findByCW_CP

      public static List<CommerceWishListItem> findByCW_CP(long commerceWishListId, long CProductId)
      Returns all the commerce wish list items where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      Returns:
      the matching commerce wish list items
    • findByCW_CP

      public static List<CommerceWishListItem> findByCW_CP(long commerceWishListId, long CProductId, int start, int end)
      Returns a range of all the commerce wish list items where commerceWishListId = ? and CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of matching commerce wish list items
    • findByCW_CP

      public static List<CommerceWishListItem> findByCW_CP(long commerceWishListId, long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ? and CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce wish list items
    • findByCW_CP

      public static List<CommerceWishListItem> findByCW_CP(long commerceWishListId, long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items where commerceWishListId = ? and CProductId = ?.

      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 CommerceWishListItemModelImpl.

      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • findByCW_CP_First

      public static CommerceWishListItem findByCW_CP_First(long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCW_CP_First

      public static CommerceWishListItem fetchByCW_CP_First(long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the first commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCW_CP_Last

      public static CommerceWishListItem findByCW_CP_Last(long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCW_CP_Last

      public static CommerceWishListItem fetchByCW_CP_Last(long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns the last commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • findByCW_CP_PrevAndNext

      public static CommerceWishListItem[] findByCW_CP_PrevAndNext(long commerceWishListItemId, long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException
      Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListItemId - the primary key of the current commerce wish list item
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • removeByCW_CP

      public static void removeByCW_CP(long commerceWishListId, long CProductId)
      Removes all the commerce wish list items where commerceWishListId = ? and CProductId = ? from the database.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
    • countByCW_CP

      public static int countByCW_CP(long commerceWishListId, long CProductId)
      Returns the number of commerce wish list items where commerceWishListId = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CProductId - the c product ID
      Returns:
      the number of matching commerce wish list items
    • findByCW_CPI_CP

      public static CommerceWishListItem findByCW_CPI_CP(long commerceWishListId, String CPInstanceUuid, long CProductId) throws NoSuchWishListItemException
      Returns the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? or throws a NoSuchWishListItemException if it could not be found.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      Returns:
      the matching commerce wish list item
      Throws:
      NoSuchWishListItemException - if a matching commerce wish list item could not be found
      NoSuchWishListItemException
    • fetchByCW_CPI_CP

      public static CommerceWishListItem fetchByCW_CPI_CP(long commerceWishListId, String CPInstanceUuid, long CProductId)
      Returns the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      Returns:
      the matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • fetchByCW_CPI_CP

      public static CommerceWishListItem fetchByCW_CPI_CP(long commerceWishListId, String CPInstanceUuid, long CProductId, boolean useFinderCache)
      Returns the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce wish list item, or null if a matching commerce wish list item could not be found
    • removeByCW_CPI_CP

      public static CommerceWishListItem removeByCW_CPI_CP(long commerceWishListId, String CPInstanceUuid, long CProductId) throws NoSuchWishListItemException
      Removes the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? from the database.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      Returns:
      the commerce wish list item that was removed
      Throws:
      NoSuchWishListItemException
    • countByCW_CPI_CP

      public static int countByCW_CPI_CP(long commerceWishListId, String CPInstanceUuid, long CProductId)
      Returns the number of commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ?.
      Parameters:
      commerceWishListId - the commerce wish list ID
      CPInstanceUuid - the cp instance uuid
      CProductId - the c product ID
      Returns:
      the number of matching commerce wish list items
    • cacheResult

      public static void cacheResult(CommerceWishListItem commerceWishListItem)
      Caches the commerce wish list item in the entity cache if it is enabled.
      Parameters:
      commerceWishListItem - the commerce wish list item
    • cacheResult

      public static void cacheResult(List<CommerceWishListItem> commerceWishListItems)
      Caches the commerce wish list items in the entity cache if it is enabled.
      Parameters:
      commerceWishListItems - the commerce wish list items
    • create

      public static CommerceWishListItem create(long commerceWishListItemId)
      Creates a new commerce wish list item with the primary key. Does not add the commerce wish list item to the database.
      Parameters:
      commerceWishListItemId - the primary key for the new commerce wish list item
      Returns:
      the new commerce wish list item
    • remove

      public static CommerceWishListItem remove(long commerceWishListItemId) throws NoSuchWishListItemException
      Removes the commerce wish list item with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceWishListItemId - the primary key of the commerce wish list item
      Returns:
      the commerce wish list item that was removed
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • updateImpl

      public static CommerceWishListItem updateImpl(CommerceWishListItem commerceWishListItem)
    • findByPrimaryKey

      public static CommerceWishListItem findByPrimaryKey(long commerceWishListItemId) throws NoSuchWishListItemException
      Returns the commerce wish list item with the primary key or throws a NoSuchWishListItemException if it could not be found.
      Parameters:
      commerceWishListItemId - the primary key of the commerce wish list item
      Returns:
      the commerce wish list item
      Throws:
      NoSuchWishListItemException - if a commerce wish list item with the primary key could not be found
      NoSuchWishListItemException
    • fetchByPrimaryKey

      public static CommerceWishListItem fetchByPrimaryKey(long commerceWishListItemId)
      Returns the commerce wish list item with the primary key or returns null if it could not be found.
      Parameters:
      commerceWishListItemId - the primary key of the commerce wish list item
      Returns:
      the commerce wish list item, or null if a commerce wish list item with the primary key could not be found
    • findAll

      public static List<CommerceWishListItem> findAll()
      Returns all the commerce wish list items.
      Returns:
      the commerce wish list items
    • findAll

      public static List<CommerceWishListItem> findAll(int start, int end)
      Returns a range of all the commerce wish list items.

      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 CommerceWishListItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of commerce wish list items
    • findAll

      public static List<CommerceWishListItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Returns an ordered range of all the commerce wish list items.

      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 CommerceWishListItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce wish list items
    • findAll

      public static List<CommerceWishListItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce wish list items.

      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 CommerceWishListItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (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 wish list items
    • removeAll

      public static void removeAll()
      Removes all the commerce wish list items from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce wish list items.
      Returns:
      the number of commerce wish list items
    • getPersistence

      public static CommerceWishListItemPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceWishListItemPersistence persistence)