Class CommerceWishListItemUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceWishListItem commerceWishListItem) Caches the commerce wish list item in the entity cache if it is enabled.static void
cacheResult
(List<CommerceWishListItem> commerceWishListItems) Caches the commerce wish list items in the entity cache if it is enabled.static void
static void
clearCache
(CommerceWishListItem commerceWishListItem) static int
countAll()
Returns the number of commerce wish list items.static int
countByCommerceWishListId
(long commerceWishListId) Returns the number of commerce wish list items where commerceWishListId = ?.static int
countByCPInstanceUuid
(String CPInstanceUuid) Returns the number of commerce wish list items where CPInstanceUuid = ?.static int
countByCProductId
(long CProductId) Returns the number of commerce wish list items where CProductId = ?.static int
countByCW_CP
(long commerceWishListId, long CProductId) Returns the number of commerce wish list items where commerceWishListId = ? and CProductId = ?.static int
countByCW_CPI
(long commerceWishListId, String CPInstanceUuid) Returns the number of commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.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 = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceWishListItem
create
(long commerceWishListItemId) Creates a new commerce wish list item with the primary key.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.static CommerceWishListItem
fetchByCW_CPI_CP
(long commerceWishListId, String CPInstanceUuid, long CProductId) Returns the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? or returnsnull
if it could not be found.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 returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static CommerceWishListItem
fetchByPrimaryKey
(long commerceWishListItemId) Returns the commerce wish list item with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceWishListItem> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceWishListItem>
findAll()
Returns all the commerce wish list items.static List<CommerceWishListItem>
findAll
(int start, int end) Returns a range of all the commerce wish list items.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.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.static List<CommerceWishListItem>
findByCommerceWishListId
(long commerceWishListId) Returns all the commerce wish list items where commerceWishListId = ?.static List<CommerceWishListItem>
findByCommerceWishListId
(long commerceWishListId, int start, int end) Returns a range of all the commerce wish list items where commerceWishListId = ?.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 = ?.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 = ?.static CommerceWishListItem
findByCommerceWishListId_First
(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the first commerce wish list item in the ordered set where commerceWishListId = ?.static CommerceWishListItem
findByCommerceWishListId_Last
(long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the last commerce wish list item in the ordered set where commerceWishListId = ?.static CommerceWishListItem[]
findByCommerceWishListId_PrevAndNext
(long commerceWishListItemId, long commerceWishListId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ?.static List<CommerceWishListItem>
findByCPInstanceUuid
(String CPInstanceUuid) Returns all the commerce wish list items where CPInstanceUuid = ?.static List<CommerceWishListItem>
findByCPInstanceUuid
(String CPInstanceUuid, int start, int end) Returns a range of all the commerce wish list items where CPInstanceUuid = ?.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 = ?.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 = ?.static CommerceWishListItem
findByCPInstanceUuid_First
(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the first commerce wish list item in the ordered set where CPInstanceUuid = ?.static CommerceWishListItem
findByCPInstanceUuid_Last
(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the last commerce wish list item in the ordered set where CPInstanceUuid = ?.static CommerceWishListItem[]
findByCPInstanceUuid_PrevAndNext
(long commerceWishListItemId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where CPInstanceUuid = ?.static List<CommerceWishListItem>
findByCProductId
(long CProductId) Returns all the commerce wish list items where CProductId = ?.static List<CommerceWishListItem>
findByCProductId
(long CProductId, int start, int end) Returns a range of all the commerce wish list items where CProductId = ?.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 = ?.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 = ?.static CommerceWishListItem
findByCProductId_First
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the first commerce wish list item in the ordered set where CProductId = ?.static CommerceWishListItem
findByCProductId_Last
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the last commerce wish list item in the ordered set where CProductId = ?.static CommerceWishListItem[]
findByCProductId_PrevAndNext
(long commerceWishListItemId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where CProductId = ?.static List<CommerceWishListItem>
findByCW_CP
(long commerceWishListId, long CProductId) Returns all the commerce wish list items where commerceWishListId = ? and CProductId = ?.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 = ?.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 = ?.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 = ?.static CommerceWishListItem
findByCW_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 = ?.static CommerceWishListItem
findByCW_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 = ?.static CommerceWishListItem[]
findByCW_CP_PrevAndNext
(long commerceWishListItemId, long commerceWishListId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ? and CProductId = ?.static List<CommerceWishListItem>
findByCW_CPI
(long commerceWishListId, String CPInstanceUuid) Returns all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.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 = ?.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 = ?.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 = ?.static CommerceWishListItem
findByCW_CPI_CP
(long commerceWishListId, String CPInstanceUuid, long CProductId) Returns the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? or throws aNoSuchWishListItemException
if it could not be found.static CommerceWishListItem
findByCW_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 = ?.static CommerceWishListItem
findByCW_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 = ?.static CommerceWishListItem[]
findByCW_CPI_PrevAndNext
(long commerceWishListItemId, long commerceWishListId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where commerceWishListId = ? and CPInstanceUuid = ?.static CommerceWishListItem
findByPrimaryKey
(long commerceWishListItemId) Returns the commerce wish list item with the primary key or throws aNoSuchWishListItemException
if it could not be found.static List<CommerceWishListItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceWishListItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceWishListItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator) static CommerceWishListItem
remove
(long commerceWishListItemId) Removes the commerce wish list item with the primary key from the database.static void
Removes all the commerce wish list items from the database.static void
removeByCommerceWishListId
(long commerceWishListId) Removes all the commerce wish list items where commerceWishListId = ? from the database.static void
removeByCPInstanceUuid
(String CPInstanceUuid) Removes all the commerce wish list items where CPInstanceUuid = ? from the database.static void
removeByCProductId
(long CProductId) Removes all the commerce wish list items where CProductId = ? from the database.static void
removeByCW_CP
(long commerceWishListId, long CProductId) Removes all the commerce wish list items where commerceWishListId = ? and CProductId = ? from the database.static void
removeByCW_CPI
(long commerceWishListId, String CPInstanceUuid) Removes all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ? from the database.static CommerceWishListItem
removeByCW_CPI_CP
(long commerceWishListId, String CPInstanceUuid, long CProductId) Removes the commerce wish list item where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ? from the database.static void
setPersistence
(CommerceWishListItemPersistence persistence) static CommerceWishListItem
update
(CommerceWishListItem commerceWishListItem) static CommerceWishListItem
update
(CommerceWishListItem commerceWishListItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceWishListItem
updateImpl
(CommerceWishListItem commerceWishListItem)
-
Constructor Details
-
CommerceWishListItemUtil
public CommerceWishListItemUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,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
- 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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDstart
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 itemcommerceWishListId
- the commerce wish list IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 foundNoSuchWishListItemException
-
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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 itemCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 foundNoSuchWishListItemException
-
removeByCPInstanceUuid
Removes all the commerce wish list items where CPInstanceUuid = ? from the database.- Parameters:
CPInstanceUuid
- the cp instance uuid
-
countByCPInstanceUuid
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
Returns all the commerce wish list items where CProductId = ?.- Parameters:
CProductId
- the c product ID- Returns:
- the matching commerce wish list items
-
findByCProductId
Returns a range of all the commerce wish list items where CProductId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
CProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 itemCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 foundNoSuchWishListItemException
-
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 IDCPInstanceUuid
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 IDCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 itemcommerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 foundNoSuchWishListItemException
-
removeByCW_CPI
Removes all the commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ? from the database.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuid
-
countByCW_CPI
Returns the number of commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ?.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuid- Returns:
- the number of matching commerce wish list items
-
findByCW_CP
Returns all the commerce wish list items where commerceWishListId = ? and CProductId = ?.- Parameters:
commerceWishListId
- the commerce wish list IDCProductId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
commerceWishListId
- the commerce wish list IDCProductId
- the c product IDstart
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 IDCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 IDCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 itemcommerceWishListId
- the commerce wish list IDCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 foundNoSuchWishListItemException
-
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 IDCProductId
- 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 IDCProductId
- 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 aNoSuchWishListItemException
if it could not be found.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidCProductId
- the c product ID- Returns:
- the matching commerce wish list item
- Throws:
NoSuchWishListItemException
- if a matching commerce wish list item could not be foundNoSuchWishListItemException
-
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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidCProductId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidCProductId
- the c product IDuseFinderCache
- 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 IDCPInstanceUuid
- the cp instance uuidCProductId
- the c product ID- Returns:
- the commerce wish list item that was removed
- Throws:
NoSuchWishListItemException
-
countByCW_CPI_CP
Returns the number of commerce wish list items where commerceWishListId = ? and CPInstanceUuid = ? and CProductId = ?.- Parameters:
commerceWishListId
- the commerce wish list IDCPInstanceUuid
- the cp instance uuidCProductId
- the c product ID- Returns:
- the number of matching commerce wish list items
-
cacheResult
Caches the commerce wish list item in the entity cache if it is enabled.- Parameters:
commerceWishListItem
- the commerce wish list item
-
cacheResult
Caches the commerce wish list items in the entity cache if it is enabled.- Parameters:
commerceWishListItems
- the commerce wish list items
-
create
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 foundNoSuchWishListItemException
-
updateImpl
-
findByPrimaryKey
public static CommerceWishListItem findByPrimaryKey(long commerceWishListItemId) throws NoSuchWishListItemException Returns the commerce wish list item with the primary key or throws aNoSuchWishListItemException
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 foundNoSuchWishListItemException
-
fetchByPrimaryKey
Returns the commerce wish list item with the primary key or returnsnull
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
Returns all the commerce wish list items.- Returns:
- the commerce wish list items
-
findAll
Returns a range of all the commerce wish list items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce wish list itemsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceWishListItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce wish list itemsend
- the upper bound of the range of commerce wish list items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-