public class CPInstanceUnitOfMeasureLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.product.service.impl.CPInstanceUnitOfMeasureLocalServiceImpl
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.CPInstanceUnitOfMeasureLocalService
Constructor and Description |
---|
CPInstanceUnitOfMeasureLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CPInstanceUnitOfMeasure |
addCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Adds the cp instance unit of measure to the database.
|
static CPInstanceUnitOfMeasure |
addCPInstanceUnitOfMeasure(long userId,
long cpInstanceId,
boolean active,
java.math.BigDecimal incrementalOrderQuantity,
java.lang.String key,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
int precision,
boolean primary,
double priority,
java.math.BigDecimal rate,
java.lang.String sku) |
static CPInstanceUnitOfMeasure |
addOrUpdateCPInstanceUnitOfMeasure(long userId,
long cpInstanceId,
boolean active,
java.math.BigDecimal incrementalOrderQuantity,
java.lang.String key,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
int precision,
boolean primary,
double priority,
java.math.BigDecimal rate,
java.lang.String sku) |
static CPInstanceUnitOfMeasure |
createCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
Creates a new cp instance unit of measure with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CPInstanceUnitOfMeasure |
deleteCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Deletes the cp instance unit of measure from the database.
|
static CPInstanceUnitOfMeasure |
deleteCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
Deletes the cp instance unit of measure with the primary key from the database.
|
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 CPInstanceUnitOfMeasure |
fetchCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId) |
static CPInstanceUnitOfMeasure |
fetchCPInstanceUnitOfMeasure(long cpInstanceId,
java.lang.String key) |
static CPInstanceUnitOfMeasure |
fetchCPInstanceUnitOfMeasure(long companyId,
java.lang.String key,
java.lang.String sku) |
static CPInstanceUnitOfMeasure |
fetchCPInstanceUnitOfMeasureByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the cp instance unit of measure with the matching UUID and company.
|
static CPInstanceUnitOfMeasure |
fetchPrimaryCPInstanceUnitOfMeasure(long cpInstanceId) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.util.List<CPInstanceUnitOfMeasure> |
getActiveCPInstanceUnitOfMeasures(long cpInstanceId) |
static int |
getActiveCPInstanceUnitOfMeasuresCount(long cpInstanceId) |
static CPInstanceUnitOfMeasure |
getCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
Returns the cp instance unit of measure with the primary key.
|
static CPInstanceUnitOfMeasure |
getCPInstanceUnitOfMeasure(long cpInstanceId,
java.lang.String key) |
static CPInstanceUnitOfMeasure |
getCPInstanceUnitOfMeasureByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the cp instance unit of measure with the matching UUID and company.
|
static java.util.List<CPInstanceUnitOfMeasure> |
getCPInstanceUnitOfMeasures(int start,
int end)
Returns a range of all the cp instance unit of measures.
|
static java.util.List<CPInstanceUnitOfMeasure> |
getCPInstanceUnitOfMeasures(long cpInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) |
static java.util.List<CPInstanceUnitOfMeasure> |
getCPInstanceUnitOfMeasures(long companyId,
java.lang.String sku) |
static int |
getCPInstanceUnitOfMeasuresCount()
Returns the number of cp instance unit of measures.
|
static int |
getCPInstanceUnitOfMeasuresCount(long cpInstanceId) |
static int |
getCPInstanceUnitOfMeasuresCount(long companyId,
java.lang.String sku) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
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 CPInstanceUnitOfMeasureLocalService |
getService() |
static CPInstanceUnitOfMeasure |
updateCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Updates the cp instance unit of measure in the database or adds it if it does not yet exist.
|
static CPInstanceUnitOfMeasure |
updateCPInstanceUnitOfMeasure(long cpInstanceUnitOfMeasureId,
long cpInstanceId,
boolean active,
java.math.BigDecimal incrementalOrderQuantity,
java.lang.String key,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
int precision,
boolean primary,
double priority,
java.math.BigDecimal rate,
java.lang.String sku) |
public CPInstanceUnitOfMeasureLocalServiceUtil()
public static CPInstanceUnitOfMeasure addCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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.
cpInstanceUnitOfMeasure
- the cp instance unit of measurepublic static CPInstanceUnitOfMeasure addCPInstanceUnitOfMeasure(long userId, long cpInstanceId, boolean active, java.math.BigDecimal incrementalOrderQuantity, java.lang.String key, java.util.Map<java.util.Locale,java.lang.String> nameMap, int precision, boolean primary, double priority, java.math.BigDecimal rate, java.lang.String sku) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPInstanceUnitOfMeasure addOrUpdateCPInstanceUnitOfMeasure(long userId, long cpInstanceId, boolean active, java.math.BigDecimal incrementalOrderQuantity, java.lang.String key, java.util.Map<java.util.Locale,java.lang.String> nameMap, int precision, boolean primary, double priority, java.math.BigDecimal rate, java.lang.String sku) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPInstanceUnitOfMeasure createCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
CPInstanceUnitOfMeasureId
- the primary key for the new cp instance unit of measurepublic 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 CPInstanceUnitOfMeasure deleteCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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.
cpInstanceUnitOfMeasure
- the cp instance unit of measurepublic static CPInstanceUnitOfMeasure deleteCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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.
CPInstanceUnitOfMeasureId
- the primary key of the cp instance unit of measurecom.liferay.portal.kernel.exception.PortalException
- if a cp instance unit of measure with the primary key could not be foundpublic 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.product.model.impl.CPInstanceUnitOfMeasureModelImpl
.
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.product.model.impl.CPInstanceUnitOfMeasureModelImpl
.
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 CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
public static CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long cpInstanceId, java.lang.String key)
public static CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long companyId, java.lang.String key, java.lang.String sku)
public static CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasureByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the cp instance unit of measure's UUIDcompanyId
- the primary key of the companynull
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchPrimaryCPInstanceUnitOfMeasure(long cpInstanceId)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static java.util.List<CPInstanceUnitOfMeasure> getActiveCPInstanceUnitOfMeasures(long cpInstanceId)
public static int getActiveCPInstanceUnitOfMeasuresCount(long cpInstanceId)
public static CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId) throws com.liferay.portal.kernel.exception.PortalException
CPInstanceUnitOfMeasureId
- the primary key of the cp instance unit of measurecom.liferay.portal.kernel.exception.PortalException
- if a cp instance unit of measure with the primary key could not be foundpublic static CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasure(long cpInstanceId, java.lang.String key) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasureByUuidAndCompanyId(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the cp instance unit of measure's UUIDcompanyId
- the primary key of the companycom.liferay.portal.kernel.exception.PortalException
- if a matching cp instance unit of measure could not be foundpublic static java.util.List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(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.product.model.impl.CPInstanceUnitOfMeasureModelImpl
.
start
- the lower bound of the range of cp instance unit of measuresend
- the upper bound of the range of cp instance unit of measures (not inclusive)public static java.util.List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
public static java.util.List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(long companyId, java.lang.String sku)
public static int getCPInstanceUnitOfMeasuresCount()
public static int getCPInstanceUnitOfMeasuresCount(long cpInstanceId)
public static int getCPInstanceUnitOfMeasuresCount(long companyId, java.lang.String sku)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
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 CPInstanceUnitOfMeasure updateCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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.
cpInstanceUnitOfMeasure
- the cp instance unit of measurepublic static CPInstanceUnitOfMeasure updateCPInstanceUnitOfMeasure(long cpInstanceUnitOfMeasureId, long cpInstanceId, boolean active, java.math.BigDecimal incrementalOrderQuantity, java.lang.String key, java.util.Map<java.util.Locale,java.lang.String> nameMap, int precision, boolean primary, double priority, java.math.BigDecimal rate, java.lang.String sku) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPInstanceUnitOfMeasureLocalService getService()