Class CommerceVirtualOrderItemUtil

java.lang.Object
com.liferay.commerce.product.type.virtual.order.service.persistence.CommerceVirtualOrderItemUtil

public class CommerceVirtualOrderItemUtil extends Object
The persistence utility for the commerce virtual order item service. This utility wraps com.liferay.commerce.product.type.virtual.order.service.persistence.impl.CommerceVirtualOrderItemPersistenceImpl 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

    • CommerceVirtualOrderItemUtil

      public CommerceVirtualOrderItemUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommerceVirtualOrderItem update(CommerceVirtualOrderItem commerceVirtualOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CommerceVirtualOrderItem> findByUuid(String uuid)
      Returns all the commerce virtual order items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce virtual order items
    • findByUuid

      public static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce virtual order items where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce virtual order items
      end - the upper bound of the range of commerce virtual order items (not inclusive)
      Returns:
      the range of matching commerce virtual order items
    • findByUuid

      public static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns an ordered range of all the commerce virtual order items where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

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

      public static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce virtual order items where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce virtual order items
      end - the upper bound of the range of commerce virtual order 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 virtual order items
    • findByUuid_First

      public static CommerceVirtualOrderItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the first commerce virtual order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByUuid_First

      public static CommerceVirtualOrderItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns the first commerce virtual order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • findByUuid_Last

      public static CommerceVirtualOrderItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the last commerce virtual order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByUuid_Last

      public static CommerceVirtualOrderItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns the last commerce virtual order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • findByUuid_PrevAndNext

      public static CommerceVirtualOrderItem[] findByUuid_PrevAndNext(long commerceVirtualOrderItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ?.
      Parameters:
      commerceVirtualOrderItemId - the primary key of the current commerce virtual order item
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a commerce virtual order item with the primary key could not be found
      NoSuchVirtualOrderItemException
    • removeByUuid

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

      public static int countByUuid(String uuid)
      Returns the number of commerce virtual order items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce virtual order items
    • findByUUID_G

      public static CommerceVirtualOrderItem findByUUID_G(String uuid, long groupId) throws NoSuchVirtualOrderItemException
      Returns the commerce virtual order item where uuid = ? and groupId = ? or throws a NoSuchVirtualOrderItemException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByUUID_G

      public static CommerceVirtualOrderItem fetchByUUID_G(String uuid, long groupId)
      Returns the commerce virtual order item where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • fetchByUUID_G

      public static CommerceVirtualOrderItem fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce virtual order item where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • removeByUUID_G

      public static CommerceVirtualOrderItem removeByUUID_G(String uuid, long groupId) throws NoSuchVirtualOrderItemException
      Removes the commerce virtual order item where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce virtual order item that was removed
      Throws:
      NoSuchVirtualOrderItemException
    • countByUUID_G

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

      public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId)
      Returns all the commerce virtual order items where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce virtual order items
    • findByUuid_C

      public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce virtual order items where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce virtual order items
      end - the upper bound of the range of commerce virtual order items (not inclusive)
      Returns:
      the range of matching commerce virtual order items
    • findByUuid_C

      public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns an ordered range of all the commerce virtual order items where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce virtual order items
      end - the upper bound of the range of commerce virtual order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce virtual order items
    • findByUuid_C

      public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce virtual order items where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce virtual order items
      end - the upper bound of the range of commerce virtual order 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 virtual order items
    • findByUuid_C_First

      public static CommerceVirtualOrderItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the first commerce virtual order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByUuid_C_First

      public static CommerceVirtualOrderItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns the first commerce virtual order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • findByUuid_C_Last

      public static CommerceVirtualOrderItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the last commerce virtual order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByUuid_C_Last

      public static CommerceVirtualOrderItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns the last commerce virtual order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • findByUuid_C_PrevAndNext

      public static CommerceVirtualOrderItem[] findByUuid_C_PrevAndNext(long commerceVirtualOrderItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
      Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceVirtualOrderItemId - the primary key of the current commerce virtual order item
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a commerce virtual order item with the primary key could not be found
      NoSuchVirtualOrderItemException
    • removeByUuid_C

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

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

      public static CommerceVirtualOrderItem findByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException
      Returns the commerce virtual order item where commerceOrderItemId = ? or throws a NoSuchVirtualOrderItemException if it could not be found.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the matching commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a matching commerce virtual order item could not be found
      NoSuchVirtualOrderItemException
    • fetchByCommerceOrderItemId

      public static CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId)
      Returns the commerce virtual order item where commerceOrderItemId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • fetchByCommerceOrderItemId

      public static CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache)
      Returns the commerce virtual order item where commerceOrderItemId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce virtual order item, or null if a matching commerce virtual order item could not be found
    • removeByCommerceOrderItemId

      public static CommerceVirtualOrderItem removeByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException
      Removes the commerce virtual order item where commerceOrderItemId = ? from the database.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the commerce virtual order item that was removed
      Throws:
      NoSuchVirtualOrderItemException
    • countByCommerceOrderItemId

      public static int countByCommerceOrderItemId(long commerceOrderItemId)
      Returns the number of commerce virtual order items where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the number of matching commerce virtual order items
    • cacheResult

      public static void cacheResult(CommerceVirtualOrderItem commerceVirtualOrderItem)
      Caches the commerce virtual order item in the entity cache if it is enabled.
      Parameters:
      commerceVirtualOrderItem - the commerce virtual order item
    • cacheResult

      public static void cacheResult(List<CommerceVirtualOrderItem> commerceVirtualOrderItems)
      Caches the commerce virtual order items in the entity cache if it is enabled.
      Parameters:
      commerceVirtualOrderItems - the commerce virtual order items
    • create

      public static CommerceVirtualOrderItem create(long commerceVirtualOrderItemId)
      Creates a new commerce virtual order item with the primary key. Does not add the commerce virtual order item to the database.
      Parameters:
      commerceVirtualOrderItemId - the primary key for the new commerce virtual order item
      Returns:
      the new commerce virtual order item
    • remove

      public static CommerceVirtualOrderItem remove(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException
      Removes the commerce virtual order item with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceVirtualOrderItemId - the primary key of the commerce virtual order item
      Returns:
      the commerce virtual order item that was removed
      Throws:
      NoSuchVirtualOrderItemException - if a commerce virtual order item with the primary key could not be found
      NoSuchVirtualOrderItemException
    • updateImpl

      public static CommerceVirtualOrderItem updateImpl(CommerceVirtualOrderItem commerceVirtualOrderItem)
    • findByPrimaryKey

      public static CommerceVirtualOrderItem findByPrimaryKey(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException
      Returns the commerce virtual order item with the primary key or throws a NoSuchVirtualOrderItemException if it could not be found.
      Parameters:
      commerceVirtualOrderItemId - the primary key of the commerce virtual order item
      Returns:
      the commerce virtual order item
      Throws:
      NoSuchVirtualOrderItemException - if a commerce virtual order item with the primary key could not be found
      NoSuchVirtualOrderItemException
    • fetchByPrimaryKey

      public static CommerceVirtualOrderItem fetchByPrimaryKey(long commerceVirtualOrderItemId)
      Returns the commerce virtual order item with the primary key or returns null if it could not be found.
      Parameters:
      commerceVirtualOrderItemId - the primary key of the commerce virtual order item
      Returns:
      the commerce virtual order item, or null if a commerce virtual order item with the primary key could not be found
    • findAll

      public static List<CommerceVirtualOrderItem> findAll()
      Returns all the commerce virtual order items.
      Returns:
      the commerce virtual order items
    • findAll

      public static List<CommerceVirtualOrderItem> findAll(int start, int end)
      Returns a range of all the commerce virtual order 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 CommerceVirtualOrderItemModelImpl.

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

      public static List<CommerceVirtualOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
      Returns an ordered range of all the commerce virtual order 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 CommerceVirtualOrderItemModelImpl.

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

      public static List<CommerceVirtualOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce virtual order 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 CommerceVirtualOrderItemModelImpl.

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

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

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

      public static CommerceVirtualOrderItemPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceVirtualOrderItemPersistence persistence)