Class CommerceInventoryWarehouseRelUtil

java.lang.Object
com.liferay.commerce.inventory.service.persistence.CommerceInventoryWarehouseRelUtil

public class CommerceInventoryWarehouseRelUtil extends Object
The persistence utility for the commerce inventory warehouse rel service. This utility wraps com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryWarehouseRelPersistenceImpl 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

    • CommerceInventoryWarehouseRelUtil

      public CommerceInventoryWarehouseRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommerceInventoryWarehouseRel update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceInventoryWarehouseId

      public static List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
      Returns all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce inventory warehouse rels
    • findByCommerceInventoryWarehouseId

      public static List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end)
      Returns a range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.

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

      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (not inclusive)
      Returns:
      the range of matching commerce inventory warehouse rels
    • findByCommerceInventoryWarehouseId

      public static List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.

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

      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce inventory warehouse rels
    • findByCommerceInventoryWarehouseId

      public static List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.

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

      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (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 inventory warehouse rels
    • findByCommerceInventoryWarehouseId_First

      public static CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a matching commerce inventory warehouse rel could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByCommerceInventoryWarehouseId_First

      public static CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • findByCommerceInventoryWarehouseId_Last

      public static CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a matching commerce inventory warehouse rel could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByCommerceInventoryWarehouseId_Last

      public static CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • findByCommerceInventoryWarehouseId_PrevAndNext

      public static CommerceInventoryWarehouseRel[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryWarehouseRelId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key of the current commerce inventory warehouse rel
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a commerce inventory warehouse rel with the primary key could not be found
      NoSuchInventoryWarehouseRelException
    • removeByCommerceInventoryWarehouseId

      public static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
      Removes all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ? from the database.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
    • countByCommerceInventoryWarehouseId

      public static int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
      Returns the number of commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the number of matching commerce inventory warehouse rels
    • findByC_C

      public static List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId)
      Returns all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce inventory warehouse rels
    • findByC_C

      public static List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end)
      Returns a range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (not inclusive)
      Returns:
      the range of matching commerce inventory warehouse rels
    • findByC_C

      public static List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce inventory warehouse rels
    • findByC_C

      public static List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (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 inventory warehouse rels
    • findByC_C_First

      public static CommerceInventoryWarehouseRel findByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a matching commerce inventory warehouse rel could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByC_C_First

      public static CommerceInventoryWarehouseRel fetchByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • findByC_C_Last

      public static CommerceInventoryWarehouseRel findByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a matching commerce inventory warehouse rel could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByC_C_Last

      public static CommerceInventoryWarehouseRel fetchByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • findByC_C_PrevAndNext

      public static CommerceInventoryWarehouseRel[] findByC_C_PrevAndNext(long commerceInventoryWarehouseRelId, long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
      Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key of the current commerce inventory warehouse rel
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a commerce inventory warehouse rel with the primary key could not be found
      NoSuchInventoryWarehouseRelException
    • removeByC_C

      public static void removeByC_C(long classNameId, long commerceInventoryWarehouseId)
      Removes all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ? from the database.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
    • countByC_C

      public static int countByC_C(long classNameId, long commerceInventoryWarehouseId)
      Returns the number of commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the number of matching commerce inventory warehouse rels
    • findByC_C_CIWI

      public static CommerceInventoryWarehouseRel findByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException
      Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or throws a NoSuchInventoryWarehouseRelException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a matching commerce inventory warehouse rel could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByC_C_CIWI

      public static CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId)
      Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • fetchByC_C_CIWI

      public static CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId, boolean useFinderCache)
      Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce inventory warehouse rel, or null if a matching commerce inventory warehouse rel could not be found
    • removeByC_C_CIWI

      public static CommerceInventoryWarehouseRel removeByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException
      Removes the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the commerce inventory warehouse rel that was removed
      Throws:
      NoSuchInventoryWarehouseRelException
    • countByC_C_CIWI

      public static int countByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId)
      Returns the number of commerce inventory warehouse rels where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the number of matching commerce inventory warehouse rels
    • cacheResult

      public static void cacheResult(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
      Caches the commerce inventory warehouse rel in the entity cache if it is enabled.
      Parameters:
      commerceInventoryWarehouseRel - the commerce inventory warehouse rel
    • cacheResult

      public static void cacheResult(List<CommerceInventoryWarehouseRel> commerceInventoryWarehouseRels)
      Caches the commerce inventory warehouse rels in the entity cache if it is enabled.
      Parameters:
      commerceInventoryWarehouseRels - the commerce inventory warehouse rels
    • create

      public static CommerceInventoryWarehouseRel create(long commerceInventoryWarehouseRelId)
      Creates a new commerce inventory warehouse rel with the primary key. Does not add the commerce inventory warehouse rel to the database.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key for the new commerce inventory warehouse rel
      Returns:
      the new commerce inventory warehouse rel
    • remove

      public static CommerceInventoryWarehouseRel remove(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException
      Removes the commerce inventory warehouse rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key of the commerce inventory warehouse rel
      Returns:
      the commerce inventory warehouse rel that was removed
      Throws:
      NoSuchInventoryWarehouseRelException - if a commerce inventory warehouse rel with the primary key could not be found
      NoSuchInventoryWarehouseRelException
    • updateImpl

      public static CommerceInventoryWarehouseRel updateImpl(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
    • findByPrimaryKey

      public static CommerceInventoryWarehouseRel findByPrimaryKey(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException
      Returns the commerce inventory warehouse rel with the primary key or throws a NoSuchInventoryWarehouseRelException if it could not be found.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key of the commerce inventory warehouse rel
      Returns:
      the commerce inventory warehouse rel
      Throws:
      NoSuchInventoryWarehouseRelException - if a commerce inventory warehouse rel with the primary key could not be found
      NoSuchInventoryWarehouseRelException
    • fetchByPrimaryKey

      public static CommerceInventoryWarehouseRel fetchByPrimaryKey(long commerceInventoryWarehouseRelId)
      Returns the commerce inventory warehouse rel with the primary key or returns null if it could not be found.
      Parameters:
      commerceInventoryWarehouseRelId - the primary key of the commerce inventory warehouse rel
      Returns:
      the commerce inventory warehouse rel, or null if a commerce inventory warehouse rel with the primary key could not be found
    • findAll

      public static List<CommerceInventoryWarehouseRel> findAll()
      Returns all the commerce inventory warehouse rels.
      Returns:
      the commerce inventory warehouse rels
    • findAll

      public static List<CommerceInventoryWarehouseRel> findAll(int start, int end)
      Returns a range of all the commerce inventory warehouse rels.

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

      Parameters:
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (not inclusive)
      Returns:
      the range of commerce inventory warehouse rels
    • findAll

      public static List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
      Returns an ordered range of all the commerce inventory warehouse rels.

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

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

      public static List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce inventory warehouse rels.

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

      Parameters:
      start - the lower bound of the range of commerce inventory warehouse rels
      end - the upper bound of the range of commerce inventory warehouse rels (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 inventory warehouse rels
    • removeAll

      public static void removeAll()
      Removes all the commerce inventory warehouse rels from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce inventory warehouse rels.
      Returns:
      the number of commerce inventory warehouse rels
    • getPersistence

      public static CommerceInventoryWarehouseRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceInventoryWarehouseRelPersistence persistence)