Interface CommerceInventoryAuditPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceInventoryAudit>

@ProviderType public interface CommerceInventoryAuditPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceInventoryAudit>
The persistence interface for the commerce inventory audit service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByC_S_U(long companyId, String sku, String unitOfMeasureKey)
    Returns the number of commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.
    int
    Returns the number of commerce inventory audits where createDate < ?.
    create(long commerceInventoryAuditId)
    Creates a new commerce inventory audit with the primary key.
    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 = ?.
    fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
    Returns the first commerce inventory audit in the ordered set where createDate < ?.
    fetchByPrimaryKey(long commerceInventoryAuditId)
    Returns the commerce inventory audit with the primary key or returns null if it could not be found.
    findByC_S_U(long companyId, String sku, String unitOfMeasureKey)
    Returns all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByC_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 = ?.
    Returns all the commerce inventory audits where createDate < ?.
    findByLtCreateDate(Date createDate, int start, int end)
    Returns a range of all the commerce inventory audits where createDate < ?.
    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 < ?.
    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 < ?.
    findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
    Returns the first commerce inventory audit in the ordered set where createDate < ?.
    findByPrimaryKey(long commerceInventoryAuditId)
    Returns the commerce inventory audit with the primary key or throws a NoSuchInventoryAuditException if it could not be found.
    remove(long commerceInventoryAuditId)
    Removes the commerce inventory audit with the primary key from the database.
    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.
    void
    Removes all the commerce inventory audits where createDate < ? from the database.
    updateImpl(CommerceInventoryAudit commerceInventoryAudit)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByLtCreateDate

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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

      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
    • fetchByLtCreateDate_First

      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
    • removeByLtCreateDate

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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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

      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
    • fetchByC_S_U_First

      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
    • removeByC_S_U

      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

      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
    • create

      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

      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
    • updateImpl

      CommerceInventoryAudit updateImpl(CommerceInventoryAudit commerceInventoryAudit)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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
    • findByC_S_U

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.inventory.model.impl.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