@ProviderType public interface CommerceInventoryAuditPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceInventoryAudit>
Caching information and settings can be found in portal.properties
CommerceInventoryAuditUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceInventoryAudit commerceInventoryAudit)
Caches the commerce inventory audit in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceInventoryAudit> commerceInventoryAudits)
Caches the commerce inventory audits in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce inventory audits.
|
int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of commerce inventory audits where companyId = ? and sku = ?.
|
int |
countByLtCreateDate(java.util.Date createDate)
Returns the number of commerce inventory audits where createDate < ?.
|
CommerceInventoryAudit |
create(long commerceInventoryAuditId)
Creates a new commerce inventory audit with the primary key.
|
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 = ?.
|
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 = ?.
|
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 < ?.
|
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 < ?.
|
CommerceInventoryAudit |
fetchByPrimaryKey(long commerceInventoryAuditId)
Returns the commerce inventory audit with the primary key or returns
null if it could not be found. |
java.util.List<CommerceInventoryAudit> |
findAll()
Returns all the commerce inventory audits.
|
java.util.List<CommerceInventoryAudit> |
findAll(int start,
int end)
Returns a range of all the commerce inventory audits.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceInventoryAudit> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the commerce inventory audits where companyId = ? and sku = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 < ?.
|
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 < ?.
|
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 < ?.
|
java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.Date createDate)
Returns all the commerce inventory audits where createDate < ?.
|
java.util.List<CommerceInventoryAudit> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end)
Returns a range of all the commerce inventory audits where createDate < ?.
|
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 < ?.
|
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 < ?.
|
CommerceInventoryAudit |
findByPrimaryKey(long commerceInventoryAuditId)
Returns the commerce inventory audit with the primary key or throws a
NoSuchInventoryAuditException if it could not be found. |
CommerceInventoryAudit |
remove(long commerceInventoryAuditId)
Removes the commerce inventory audit with the primary key from the database.
|
void |
removeAll()
Removes all the commerce inventory audits from the database.
|
void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the commerce inventory audits where companyId = ? and sku = ? from the database.
|
void |
removeByLtCreateDate(java.util.Date createDate)
Removes all the commerce inventory audits where createDate < ? from the database.
|
CommerceInventoryAudit |
updateImpl(CommerceInventoryAudit commerceInventoryAudit) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceInventoryAudit> findByLtCreateDate(java.util.Date createDate)
createDate
- the create datejava.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)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
)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 cacheCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit[] 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 foundvoid removeByLtCreateDate(java.util.Date createDate)
createDate
- the create dateint countByLtCreateDate(java.util.Date createDate)
createDate
- the create datejava.util.List<CommerceInventoryAudit> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skujava.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)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
)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 cacheCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit 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 foundCommerceInventoryAudit[] 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 foundvoid removeByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skuint countByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skuvoid cacheResult(CommerceInventoryAudit commerceInventoryAudit)
commerceInventoryAudit
- the commerce inventory auditvoid cacheResult(java.util.List<CommerceInventoryAudit> commerceInventoryAudits)
commerceInventoryAudits
- the commerce inventory auditsCommerceInventoryAudit create(long commerceInventoryAuditId)
commerceInventoryAuditId
- the primary key for the new commerce inventory auditCommerceInventoryAudit 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 foundCommerceInventoryAudit updateImpl(CommerceInventoryAudit commerceInventoryAudit)
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 foundCommerceInventoryAudit 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 foundjava.util.List<CommerceInventoryAudit> findAll()
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)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
)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 cachevoid removeAll()
int countAll()