public class CommerceInventoryAuditUtil
extends java.lang.Object
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
CommerceInventoryAuditPersistence
Constructor and Description |
---|
CommerceInventoryAuditUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceInventoryAudit commerceInventoryAudit)
Caches the commerce inventory audit in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceInventoryAudit> commerceInventoryAudits)
Caches the commerce inventory audits in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceInventoryAudit commerceInventoryAudit) |
static int |
countAll()
Returns the number of commerce inventory audits.
|
static int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of commerce inventory audits where companyId = ? and sku = ?.
|
static int |
countByLtCreateDate(java.util.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_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
Returns the first commerce inventory audit in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryAudit |
fetchByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
Returns the last commerce inventory audit in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryAudit |
fetchByLtCreateDate_First(java.util.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(java.util.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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceInventoryAudit> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceInventoryAudit> |
findAll()
Returns all the commerce inventory audits.
|
static java.util.List<CommerceInventoryAudit> |
findAll(int start,
int end)
Returns a range of all the commerce inventory audits.
|
static java.util.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 java.util.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 CommerceInventoryAudit |
findByC_S_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
Returns the first commerce inventory audit in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryAudit |
findByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
Returns the last commerce inventory audit in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryAudit[] |
findByC_S_PrevAndNext(long commerceInventoryAuditId,
long companyId,
java.lang.String sku,
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 = ?.
|
static java.util.List<CommerceInventoryAudit> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the commerce inventory audits where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryAudit> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory audits where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryAudit> |
findByC_S(long companyId,
java.lang.String sku,
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 = ?.
|
static java.util.List<CommerceInventoryAudit> |
findByC_S(long companyId,
java.lang.String sku,
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 = ?.
|
static CommerceInventoryAudit |
findByLtCreateDate_First(java.util.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(java.util.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,
java.util.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 java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.Date createDate)
Returns all the commerce inventory audits where createDate < ?.
|
static java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end)
Returns a range of all the commerce inventory audits where createDate < ?.
|
static java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.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 java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.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 |
findByPrimaryKey(long commerceInventoryAuditId)
Returns the commerce inventory audit with the primary key or throws a
NoSuchInventoryAuditException if it could not be found. |
static java.util.List<CommerceInventoryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceInventoryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceInventoryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) |
static CommerceInventoryAuditPersistence |
getPersistence() |
static CommerceInventoryAudit |
remove(long commerceInventoryAuditId)
Removes the commerce inventory audit with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce inventory audits from the database.
|
static void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the commerce inventory audits where companyId = ? and sku = ? from the database.
|
static void |
removeByLtCreateDate(java.util.Date createDate)
Removes all the commerce inventory audits where createDate < ? from the database.
|
static CommerceInventoryAudit |
update(CommerceInventoryAudit commerceInventoryAudit) |
static CommerceInventoryAudit |
update(CommerceInventoryAudit commerceInventoryAudit,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceInventoryAudit |
updateImpl(CommerceInventoryAudit commerceInventoryAudit) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceInventoryAudit commerceInventoryAudit)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceInventoryAudit> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceInventoryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceInventoryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceInventoryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceInventoryAudit update(CommerceInventoryAudit commerceInventoryAudit)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceInventoryAudit update(CommerceInventoryAudit commerceInventoryAudit, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceInventoryAudit> findByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static java.util.List<CommerceInventoryAudit> findByLtCreateDate(java.util.Date createDate, int start, int end)
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
.
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)public static java.util.List<CommerceInventoryAudit> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceInventoryAudit> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryAudit findByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit fetchByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit findByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit fetchByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit[] findByLtCreateDate_PrevAndNext(long commerceInventoryAuditId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
commerceInventoryAuditId
- the primary key of the current commerce inventory auditcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundpublic static void removeByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static int countByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static java.util.List<CommerceInventoryAudit> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CommerceInventoryAudit> findByC_S(long companyId, java.lang.String sku, int start, int end)
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
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)public static java.util.List<CommerceInventoryAudit> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
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
.
companyId
- the company IDsku
- the skustart
- 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 (optionally null
)public static java.util.List<CommerceInventoryAudit> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator, boolean useFinderCache)
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
.
companyId
- the company IDsku
- the skustart
- 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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryAudit findByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit fetchByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit findByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit fetchByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory audit could not be foundpublic static CommerceInventoryAudit[] findByC_S_PrevAndNext(long commerceInventoryAuditId, long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator) throws NoSuchInventoryAuditException
commerceInventoryAuditId
- the primary key of the current commerce inventory auditcompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundpublic static void removeByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static int countByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static void cacheResult(CommerceInventoryAudit commerceInventoryAudit)
commerceInventoryAudit
- the commerce inventory auditpublic static void cacheResult(java.util.List<CommerceInventoryAudit> commerceInventoryAudits)
commerceInventoryAudits
- the commerce inventory auditspublic static CommerceInventoryAudit create(long commerceInventoryAuditId)
commerceInventoryAuditId
- the primary key for the new commerce inventory auditpublic static CommerceInventoryAudit remove(long commerceInventoryAuditId) throws NoSuchInventoryAuditException
commerceInventoryAuditId
- the primary key of the commerce inventory auditNoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundpublic static CommerceInventoryAudit updateImpl(CommerceInventoryAudit commerceInventoryAudit)
public static CommerceInventoryAudit findByPrimaryKey(long commerceInventoryAuditId) throws NoSuchInventoryAuditException
NoSuchInventoryAuditException
if it could not be found.commerceInventoryAuditId
- the primary key of the commerce inventory auditNoSuchInventoryAuditException
- if a commerce inventory audit with the primary key could not be foundpublic static CommerceInventoryAudit fetchByPrimaryKey(long commerceInventoryAuditId)
null
if it could not be found.commerceInventoryAuditId
- the primary key of the commerce inventory auditnull
if a commerce inventory audit with the primary key could not be foundpublic static java.util.List<CommerceInventoryAudit> findAll()
public static java.util.List<CommerceInventoryAudit> findAll(int start, int end)
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
.
start
- the lower bound of the range of commerce inventory auditsend
- the upper bound of the range of commerce inventory audits (not inclusive)public static java.util.List<CommerceInventoryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceInventoryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryAudit> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceInventoryAuditPersistence getPersistence()