public class CommerceInventoryBookedQuantityUtil
extends java.lang.Object
com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryBookedQuantityPersistenceImpl
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
CommerceInventoryBookedQuantityPersistence
Constructor and Description |
---|
CommerceInventoryBookedQuantityUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Caches the commerce inventory booked quantity in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceInventoryBookedQuantity> commerceInventoryBookedQuantities)
Caches the commerce inventory booked quantities in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) |
static int |
countAll()
Returns the number of commerce inventory booked quantities.
|
static int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of commerce inventory booked quantities where companyId = ? and sku = ?.
|
static int |
countByLtExpirationDate(java.util.Date expirationDate)
Returns the number of commerce inventory booked quantities where expirationDate < ?.
|
static int |
countBySku(java.lang.String sku)
Returns the number of commerce inventory booked quantities where sku = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceInventoryBookedQuantity |
create(long commerceInventoryBookedQuantityId)
Creates a new commerce inventory booked quantity with the primary key.
|
static CommerceInventoryBookedQuantity |
fetchByC_S_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryBookedQuantity |
fetchByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryBookedQuantity |
fetchByLtExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.
|
static CommerceInventoryBookedQuantity |
fetchByLtExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.
|
static CommerceInventoryBookedQuantity |
fetchByPrimaryKey(long commerceInventoryBookedQuantityId)
Returns the commerce inventory booked quantity with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceInventoryBookedQuantity> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceInventoryBookedQuantity |
fetchBySku_First(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where sku = ?.
|
static CommerceInventoryBookedQuantity |
fetchBySku_Last(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findAll()
Returns all the commerce inventory booked quantities.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findAll(int start,
int end)
Returns a range of all the commerce inventory booked quantities.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns an ordered range of all the commerce inventory booked quantities.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory booked quantities.
|
static CommerceInventoryBookedQuantity |
findByC_S_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryBookedQuantity |
findByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryBookedQuantity[] |
findByC_S_PrevAndNext(long commerceInventoryBookedQuantityId,
long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the commerce inventory booked quantities where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory booked quantities where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ?.
|
static CommerceInventoryBookedQuantity |
findByLtExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.
|
static CommerceInventoryBookedQuantity |
findByLtExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.
|
static CommerceInventoryBookedQuantity[] |
findByLtExpirationDate_PrevAndNext(long commerceInventoryBookedQuantityId,
java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where expirationDate < ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByLtExpirationDate(java.util.Date expirationDate)
Returns all the commerce inventory booked quantities where expirationDate < ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end)
Returns a range of all the commerce inventory booked quantities where expirationDate < ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.
|
static CommerceInventoryBookedQuantity |
findByPrimaryKey(long commerceInventoryBookedQuantityId)
Returns the commerce inventory booked quantity with the primary key or throws a
NoSuchInventoryBookedQuantityException if it could not be found. |
static CommerceInventoryBookedQuantity |
findBySku_First(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the first commerce inventory booked quantity in the ordered set where sku = ?.
|
static CommerceInventoryBookedQuantity |
findBySku_Last(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the last commerce inventory booked quantity in the ordered set where sku = ?.
|
static CommerceInventoryBookedQuantity[] |
findBySku_PrevAndNext(long commerceInventoryBookedQuantityId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findBySku(java.lang.String sku)
Returns all the commerce inventory booked quantities where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findBySku(java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory booked quantities where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findBySku(java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
Returns an ordered range of all the commerce inventory booked quantities where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findBySku(java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory booked quantities where sku = ?.
|
static java.util.List<CommerceInventoryBookedQuantity> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceInventoryBookedQuantity> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceInventoryBookedQuantity> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) |
static CommerceInventoryBookedQuantityPersistence |
getPersistence() |
static CommerceInventoryBookedQuantity |
remove(long commerceInventoryBookedQuantityId)
Removes the commerce inventory booked quantity with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce inventory booked quantities from the database.
|
static void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the commerce inventory booked quantities where companyId = ? and sku = ? from the database.
|
static void |
removeByLtExpirationDate(java.util.Date expirationDate)
Removes all the commerce inventory booked quantities where expirationDate < ? from the database.
|
static void |
removeBySku(java.lang.String sku)
Removes all the commerce inventory booked quantities where sku = ? from the database.
|
static CommerceInventoryBookedQuantity |
update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) |
static CommerceInventoryBookedQuantity |
update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceInventoryBookedQuantity |
updateImpl(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
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,CommerceInventoryBookedQuantity> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceInventoryBookedQuantity update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceInventoryBookedQuantity update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceInventoryBookedQuantity> findBySku(java.lang.String sku)
sku
- the skupublic static java.util.List<CommerceInventoryBookedQuantity> findBySku(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 CommerceInventoryBookedQuantityModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)public static java.util.List<CommerceInventoryBookedQuantity> findBySku(java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryBookedQuantity> findBySku(java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryBookedQuantity findBySku_First(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchBySku_First(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity findBySku_Last(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchBySku_Last(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity[] findBySku_PrevAndNext(long commerceInventoryBookedQuantityId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantitysku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static void removeBySku(java.lang.String sku)
sku
- the skupublic static int countBySku(java.lang.String sku)
sku
- the skupublic static java.util.List<CommerceInventoryBookedQuantity> findByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static java.util.List<CommerceInventoryBookedQuantity> findByLtExpirationDate(java.util.Date expirationDate, 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 CommerceInventoryBookedQuantityModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)public static java.util.List<CommerceInventoryBookedQuantity> findByLtExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryBookedQuantity> findByLtExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryBookedQuantity findByLtExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchByLtExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity findByLtExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchByLtExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity[] findByLtExpirationDate_PrevAndNext(long commerceInventoryBookedQuantityId, java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantityexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static void removeByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static int countByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static java.util.List<CommerceInventoryBookedQuantity> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)public static java.util.List<CommerceInventoryBookedQuantity> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryBookedQuantity> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryBookedQuantity findByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity findByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity fetchByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory booked quantity could not be foundpublic static CommerceInventoryBookedQuantity[] findByC_S_PrevAndNext(long commerceInventoryBookedQuantityId, long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantitycompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity 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(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
commerceInventoryBookedQuantity
- the commerce inventory booked quantitypublic static void cacheResult(java.util.List<CommerceInventoryBookedQuantity> commerceInventoryBookedQuantities)
commerceInventoryBookedQuantities
- the commerce inventory booked quantitiespublic static CommerceInventoryBookedQuantity create(long commerceInventoryBookedQuantityId)
commerceInventoryBookedQuantityId
- the primary key for the new commerce inventory booked quantitypublic static CommerceInventoryBookedQuantity remove(long commerceInventoryBookedQuantityId) throws NoSuchInventoryBookedQuantityException
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantityNoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static CommerceInventoryBookedQuantity updateImpl(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
public static CommerceInventoryBookedQuantity findByPrimaryKey(long commerceInventoryBookedQuantityId) throws NoSuchInventoryBookedQuantityException
NoSuchInventoryBookedQuantityException
if it could not be found.commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantityNoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static CommerceInventoryBookedQuantity fetchByPrimaryKey(long commerceInventoryBookedQuantityId)
null
if it could not be found.commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantitynull
if a commerce inventory booked quantity with the primary key could not be foundpublic static java.util.List<CommerceInventoryBookedQuantity> findAll()
public static java.util.List<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)public static java.util.List<CommerceInventoryBookedQuantity> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryBookedQuantity> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> 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 CommerceInventoryBookedQuantityModelImpl
.
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (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 CommerceInventoryBookedQuantityPersistence getPersistence()