Class CommerceInventoryAuditUtil

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

public class CommerceInventoryAuditUtil extends Object
The persistence utility for the commerce inventory audit service. This utility wraps com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryAuditPersistenceImpl 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

    • CommerceInventoryAuditUtil

      public CommerceInventoryAuditUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommerceInventoryAudit update(CommerceInventoryAudit commerceInventoryAudit, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByLtCreateDate

      public static List<CommerceInventoryAudit> findByLtCreateDate(Date createDate)
      Returns all the commerce inventory audits where createDate < ?.
      Parameters:
      createDate - the create date
      Returns:
      the matching commerce inventory audits
    • findByLtCreateDate

      public static List<CommerceInventoryAudit> findByLtCreateDate(Date createDate, int start, int end)
      Returns a range of all the commerce inventory audits where createDate < ?.

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

      Parameters:
      createDate - the create date
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (not inclusive)
      Returns:
      the range of matching commerce inventory audits
    • findByLtCreateDate

      public static List<CommerceInventoryAudit> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns an ordered range of all the commerce inventory audits where createDate < ?.

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

      Parameters:
      createDate - the create date
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce inventory audits
    • findByLtCreateDate

      public static List<CommerceInventoryAudit> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce inventory audits where createDate < ?.

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

      Parameters:
      createDate - the create date
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (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 audits
    • findByLtCreateDate_First

      public static CommerceInventoryAudit findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the first commerce inventory audit in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a matching commerce inventory audit could not be found
      NoSuchInventoryAuditException
    • fetchByLtCreateDate_First

      public static CommerceInventoryAudit fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns the first commerce inventory audit in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory audit, or null if a matching commerce inventory audit could not be found
    • findByLtCreateDate_Last

      public static CommerceInventoryAudit findByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the last commerce inventory audit in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a matching commerce inventory audit could not be found
      NoSuchInventoryAuditException
    • fetchByLtCreateDate_Last

      public static CommerceInventoryAudit fetchByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns the last commerce inventory audit in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory audit, or null if a matching commerce inventory audit could not be found
    • findByLtCreateDate_PrevAndNext

      public static CommerceInventoryAudit[] findByLtCreateDate_PrevAndNext(long commerceInventoryAuditId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the commerce inventory audits before and after the current commerce inventory audit in the ordered set where createDate < ?.
      Parameters:
      commerceInventoryAuditId - the primary key of the current commerce inventory audit
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a commerce inventory audit with the primary key could not be found
      NoSuchInventoryAuditException
    • removeByLtCreateDate

      public static void removeByLtCreateDate(Date createDate)
      Removes all the commerce inventory audits where createDate < ? from the database.
      Parameters:
      createDate - the create date
    • countByLtCreateDate

      public static int countByLtCreateDate(Date createDate)
      Returns the number of commerce inventory audits where createDate < ?.
      Parameters:
      createDate - the create date
      Returns:
      the number of matching commerce inventory audits
    • findByC_S_U

      public static List<CommerceInventoryAudit> findByC_S_U(long companyId, String sku, String unitOfMeasureKey)
      Returns all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      Returns:
      the matching commerce inventory audits
    • findByC_S_U

      public static List<CommerceInventoryAudit> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end)
      Returns a range of all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (not inclusive)
      Returns:
      the range of matching commerce inventory audits
    • findByC_S_U

      public static List<CommerceInventoryAudit> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns an ordered range of all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce inventory audits
    • findByC_S_U

      public static List<CommerceInventoryAudit> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory audits
      end - the upper bound of the range of commerce inventory audits (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 audits
    • findByC_S_U_First

      public static CommerceInventoryAudit findByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the first commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a matching commerce inventory audit could not be found
      NoSuchInventoryAuditException
    • fetchByC_S_U_First

      public static CommerceInventoryAudit fetchByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns the first commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory audit, or null if a matching commerce inventory audit could not be found
    • findByC_S_U_Last

      public static CommerceInventoryAudit findByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the last commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a matching commerce inventory audit could not be found
      NoSuchInventoryAuditException
    • fetchByC_S_U_Last

      public static CommerceInventoryAudit fetchByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
      Returns the last commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory audit, or null if a matching commerce inventory audit could not be found
    • findByC_S_U_PrevAndNext

      public static CommerceInventoryAudit[] findByC_S_U_PrevAndNext(long commerceInventoryAuditId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
      Returns the commerce inventory audits before and after the current commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      commerceInventoryAuditId - the primary key of the current commerce inventory audit
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a commerce inventory audit with the primary key could not be found
      NoSuchInventoryAuditException
    • removeByC_S_U

      public static void removeByC_S_U(long companyId, String sku, String unitOfMeasureKey)
      Removes all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
    • countByC_S_U

      public static int countByC_S_U(long companyId, String sku, String unitOfMeasureKey)
      Returns the number of commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      Returns:
      the number of matching commerce inventory audits
    • cacheResult

      public static void cacheResult(CommerceInventoryAudit commerceInventoryAudit)
      Caches the commerce inventory audit in the entity cache if it is enabled.
      Parameters:
      commerceInventoryAudit - the commerce inventory audit
    • cacheResult

      public static void cacheResult(List<CommerceInventoryAudit> commerceInventoryAudits)
      Caches the commerce inventory audits in the entity cache if it is enabled.
      Parameters:
      commerceInventoryAudits - the commerce inventory audits
    • create

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

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

      public static CommerceInventoryAudit updateImpl(CommerceInventoryAudit commerceInventoryAudit)
    • findByPrimaryKey

      public static CommerceInventoryAudit findByPrimaryKey(long commerceInventoryAuditId) throws NoSuchInventoryAuditException
      Returns the commerce inventory audit with the primary key or throws a NoSuchInventoryAuditException if it could not be found.
      Parameters:
      commerceInventoryAuditId - the primary key of the commerce inventory audit
      Returns:
      the commerce inventory audit
      Throws:
      NoSuchInventoryAuditException - if a commerce inventory audit with the primary key could not be found
      NoSuchInventoryAuditException
    • fetchByPrimaryKey

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

      public static List<CommerceInventoryAudit> findAll()
      Returns all the commerce inventory audits.
      Returns:
      the commerce inventory audits
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static CommerceInventoryAuditPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceInventoryAuditPersistence persistence)