Class CommerceInventoryAuditUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceInventoryAudit commerceInventoryAudit) Caches the commerce inventory audit in the entity cache if it is enabled.static void
cacheResult
(List<CommerceInventoryAudit> commerceInventoryAudits) Caches the commerce inventory audits in the entity cache if it is enabled.static void
static void
clearCache
(CommerceInventoryAudit commerceInventoryAudit) static int
countAll()
Returns the number of commerce inventory audits.static int
countByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.static int
countByLtCreateDate
(Date createDate) Returns the number of commerce inventory audits where createDate < ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceInventoryAudit
create
(long commerceInventoryAuditId) Creates a new commerce inventory audit with the primary key.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 = ?.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 = ?.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 < ?.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 < ?.static CommerceInventoryAudit
fetchByPrimaryKey
(long commerceInventoryAuditId) Returns the commerce inventory audit with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceInventoryAudit> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceInventoryAudit>
findAll()
Returns all the commerce inventory audits.static List<CommerceInventoryAudit>
findAll
(int start, int end) Returns a range of all the commerce inventory audits.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.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.static List<CommerceInventoryAudit>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.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 = ?.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 = ?.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 = ?.static CommerceInventoryAudit
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 = ?.static CommerceInventoryAudit
findByC_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 = ?.static CommerceInventoryAudit[]
findByC_S_U_PrevAndNext
(long commerceInventoryAuditId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) Returns the commerce inventory audits before and after the current commerce inventory audit in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryAudit>
findByLtCreateDate
(Date createDate) Returns all the commerce inventory audits where createDate < ?.static List<CommerceInventoryAudit>
findByLtCreateDate
(Date createDate, int start, int end) Returns a range of all the commerce inventory audits where createDate < ?.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 < ?.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 < ?.static CommerceInventoryAudit
findByLtCreateDate_First
(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) Returns the first commerce inventory audit in the ordered set where createDate < ?.static CommerceInventoryAudit
findByLtCreateDate_Last
(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) Returns the last commerce inventory audit in the ordered set where createDate < ?.static CommerceInventoryAudit[]
findByLtCreateDate_PrevAndNext
(long commerceInventoryAuditId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) Returns the commerce inventory audits before and after the current commerce inventory audit in the ordered set where createDate < ?.static CommerceInventoryAudit
findByPrimaryKey
(long commerceInventoryAuditId) Returns the commerce inventory audit with the primary key or throws aNoSuchInventoryAuditException
if it could not be found.static List<CommerceInventoryAudit>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceInventoryAudit>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceInventoryAudit>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) static CommerceInventoryAudit
remove
(long commerceInventoryAuditId) Removes the commerce inventory audit with the primary key from the database.static void
Removes all the commerce inventory audits from the database.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.static void
removeByLtCreateDate
(Date createDate) Removes all the commerce inventory audits where createDate < ? from the database.static void
setPersistence
(CommerceInventoryAuditPersistence persistence) static CommerceInventoryAudit
update
(CommerceInventoryAudit commerceInventoryAudit) static CommerceInventoryAudit
update
(CommerceInventoryAudit commerceInventoryAudit, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceInventoryAudit
updateImpl
(CommerceInventoryAudit commerceInventoryAudit)
-
Constructor Details
-
CommerceInventoryAuditUtil
public CommerceInventoryAuditUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,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
- 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
Returns all the commerce inventory audits where createDate < ?.- Parameters:
createDate
- the create date- Returns:
- the matching commerce inventory audits
-
findByLtCreateDate
Returns a range of all the commerce inventory audits where createDate < ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
createDate
- the create datestart
- the lower bound of the range of commerce inventory auditsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
createDate
- the create datestart
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
createDate
- the create datestart
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundNoSuchInventoryAuditException
-
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 dateorderByComparator
- the comparator to order the set by (optionallynull
)- 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 dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundNoSuchInventoryAuditException
-
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 dateorderByComparator
- the comparator to order the set by (optionallynull
)- 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 auditcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundNoSuchInventoryAuditException
-
removeByLtCreateDate
Removes all the commerce inventory audits where createDate < ? from the database.- Parameters:
createDate
- the create date
-
countByLtCreateDate
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 IDsku
- the skuunitOfMeasureKey
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory auditsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce 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 IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundNoSuchInventoryAuditException
-
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 IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundNoSuchInventoryAuditException
-
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 IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- 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 auditcompanyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory audit
- Throws:
NoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundNoSuchInventoryAuditException
-
removeByC_S_U
Removes all the commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key
-
countByC_S_U
Returns the number of commerce inventory audits where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the number of matching commerce inventory audits
-
cacheResult
Caches the commerce inventory audit in the entity cache if it is enabled.- Parameters:
commerceInventoryAudit
- the commerce inventory audit
-
cacheResult
Caches the commerce inventory audits in the entity cache if it is enabled.- Parameters:
commerceInventoryAudits
- the commerce inventory audits
-
create
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 foundNoSuchInventoryAuditException
-
updateImpl
-
findByPrimaryKey
public static CommerceInventoryAudit findByPrimaryKey(long commerceInventoryAuditId) throws NoSuchInventoryAuditException Returns the commerce inventory audit with the primary key or throws aNoSuchInventoryAuditException
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 foundNoSuchInventoryAuditException
-
fetchByPrimaryKey
Returns the commerce inventory audit with the primary key or returnsnull
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
Returns all the commerce inventory audits.- Returns:
- the commerce inventory audits
-
findAll
Returns a range of all the commerce inventory audits.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory auditsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryAuditModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-