public class CommerceInventoryBookedQuantityLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.inventory.service.impl.CommerceInventoryBookedQuantityLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.CommerceInventoryBookedQuantityLocalService
Constructor and Description |
---|
CommerceInventoryBookedQuantityLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceInventoryBookedQuantity |
addCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Adds the commerce inventory booked quantity to the database.
|
static CommerceInventoryBookedQuantity |
addCommerceInventoryBookedQuantity(long userId,
java.util.Date expirationDate,
java.math.BigDecimal quantity,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
java.util.Map<java.lang.String,java.lang.String> context) |
static void |
checkCommerceInventoryBookedQuantities() |
static CommerceInventoryBookedQuantity |
consumeCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId,
java.math.BigDecimal quantity) |
static CommerceInventoryBookedQuantity |
createCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId)
Creates a new commerce inventory booked quantity with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceInventoryBookedQuantity |
deleteCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Deletes the commerce inventory booked quantity from the database.
|
static CommerceInventoryBookedQuantity |
deleteCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId)
Deletes the commerce inventory booked quantity with the primary key from the database.
|
static CommerceInventoryBookedQuantity |
deleteCommerceInventoryBookedQuantity(long userId,
long commerceInventoryBookedQuantityId,
java.util.Map<java.lang.String,java.lang.String> context,
CommerceInventoryAuditType commerceInventoryAuditType) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static CommerceInventoryBookedQuantity |
fetchCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.util.List<CommerceInventoryBookedQuantity> |
getCommerceInventoryBookedQuantities(int start,
int end)
Returns a range of all the commerce inventory booked quantities.
|
static java.util.List<CommerceInventoryBookedQuantity> |
getCommerceInventoryBookedQuantities(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
int start,
int end) |
static java.util.List<CommerceInventoryBookedQuantity> |
getCommerceInventoryBookedQuantities(long companyId,
java.lang.String keywords,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
int start,
int end) |
static int |
getCommerceInventoryBookedQuantitiesCount()
Returns the number of commerce inventory booked quantities.
|
static int |
getCommerceInventoryBookedQuantitiesCount(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static int |
getCommerceInventoryBookedQuantitiesCount(long companyId,
java.lang.String keywords,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryBookedQuantity |
getCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId)
Returns the commerce inventory booked quantity with the primary key.
|
static java.math.BigDecimal |
getCommerceInventoryBookedQuantity(long companyId,
long commerceChannelGroupId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static java.math.BigDecimal |
getCommerceInventoryBookedQuantity(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceInventoryBookedQuantityLocalService |
getService() |
static CommerceInventoryBookedQuantity |
resetCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId,
long userId,
java.util.Date expirationDate,
java.math.BigDecimal quantity,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
java.util.Map<java.lang.String,java.lang.String> context) |
static CommerceInventoryBookedQuantity |
restockCommerceInventoryBookedQuantity(long userId,
long commerceInventoryBookedQuantityId,
java.util.Map<java.lang.String,java.lang.String> context) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceInventoryBookedQuantity> |
searchCommerceInventoryBookedQuantities(com.liferay.portal.kernel.search.SearchContext searchContext) |
static int |
searchCommerceInventoryBookedQuantitiesCount(com.liferay.portal.kernel.search.SearchContext searchContext) |
static CommerceInventoryBookedQuantity |
updateCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Updates the commerce inventory booked quantity in the database or adds it if it does not yet exist.
|
static CommerceInventoryBookedQuantity |
updateCommerceInventoryBookedQuantity(long userId,
long commerceInventoryBookedQuantityId,
java.math.BigDecimal quantity,
java.util.Map<java.lang.String,java.lang.String> context,
long mvccVersion) |
public CommerceInventoryBookedQuantityLocalServiceUtil()
public static CommerceInventoryBookedQuantity addCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Important: Inspect CommerceInventoryBookedQuantityLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceInventoryBookedQuantity
- the commerce inventory booked quantitypublic static CommerceInventoryBookedQuantity addCommerceInventoryBookedQuantity(long userId, java.util.Date expirationDate, java.math.BigDecimal quantity, java.lang.String sku, java.lang.String unitOfMeasureKey, java.util.Map<java.lang.String,java.lang.String> context) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void checkCommerceInventoryBookedQuantities()
public static CommerceInventoryBookedQuantity consumeCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId, java.math.BigDecimal quantity) throws NoSuchInventoryBookedQuantityException
public static CommerceInventoryBookedQuantity createCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId)
commerceInventoryBookedQuantityId
- the primary key for the new commerce inventory booked quantitypublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantity deleteCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Important: Inspect CommerceInventoryBookedQuantityLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceInventoryBookedQuantity
- the commerce inventory booked quantitypublic static CommerceInventoryBookedQuantity deleteCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceInventoryBookedQuantityLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantitycom.liferay.portal.kernel.exception.PortalException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static CommerceInventoryBookedQuantity deleteCommerceInventoryBookedQuantity(long userId, long commerceInventoryBookedQuantityId, java.util.Map<java.lang.String,java.lang.String> context, CommerceInventoryAuditType commerceInventoryAuditType) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static CommerceInventoryBookedQuantity fetchCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static java.util.List<CommerceInventoryBookedQuantity> getCommerceInventoryBookedQuantities(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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.inventory.model.impl.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> getCommerceInventoryBookedQuantities(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end)
public static java.util.List<CommerceInventoryBookedQuantity> getCommerceInventoryBookedQuantities(long companyId, java.lang.String keywords, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceInventoryBookedQuantitiesCount()
public static int getCommerceInventoryBookedQuantitiesCount(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
public static int getCommerceInventoryBookedQuantitiesCount(long companyId, java.lang.String keywords, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantity getCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId) throws com.liferay.portal.kernel.exception.PortalException
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantitycom.liferay.portal.kernel.exception.PortalException
- if a commerce inventory booked quantity with the primary key could not be foundpublic static java.math.BigDecimal getCommerceInventoryBookedQuantity(long companyId, long commerceChannelGroupId, java.lang.String sku, java.lang.String unitOfMeasureKey)
public static java.math.BigDecimal getCommerceInventoryBookedQuantity(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantity resetCommerceInventoryBookedQuantity(long commerceInventoryBookedQuantityId, long userId, java.util.Date expirationDate, java.math.BigDecimal quantity, java.lang.String sku, java.lang.String unitOfMeasureKey, java.util.Map<java.lang.String,java.lang.String> context) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantity restockCommerceInventoryBookedQuantity(long userId, long commerceInventoryBookedQuantityId, java.util.Map<java.lang.String,java.lang.String> context) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceInventoryBookedQuantity> searchCommerceInventoryBookedQuantities(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int searchCommerceInventoryBookedQuantitiesCount(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantity updateCommerceInventoryBookedQuantity(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
Important: Inspect CommerceInventoryBookedQuantityLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceInventoryBookedQuantity
- the commerce inventory booked quantitypublic static CommerceInventoryBookedQuantity updateCommerceInventoryBookedQuantity(long userId, long commerceInventoryBookedQuantityId, java.math.BigDecimal quantity, java.util.Map<java.lang.String,java.lang.String> context, long mvccVersion) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryBookedQuantityLocalService getService()