Class CPMeasurementUnitLocalServiceWrapper
- All Implemented Interfaces:
CPMeasurementUnitLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitLocalService>
CPMeasurementUnitLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCPMeasurementUnitLocalServiceWrapper
(CPMeasurementUnitLocalService cpMeasurementUnitLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCPMeasurementUnit
(CPMeasurementUnit cpMeasurementUnit) Adds the cp measurement unit to the database.addCPMeasurementUnit
(String externalReferenceCode, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) createCPMeasurementUnit
(long CPMeasurementUnitId) Creates a new cp measurement unit with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCPMeasurementUnit
(long CPMeasurementUnitId) Deletes the cp measurement unit with the primary key from the database.deleteCPMeasurementUnit
(CPMeasurementUnit cpMeasurementUnit) Deletes the cp measurement unit from the database.void
deleteCPMeasurementUnits
(long companyId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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.<T> 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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchCPMeasurementUnit
(long CPMeasurementUnitId) fetchCPMeasurementUnitByExternalReferenceCode
(long companyId, String externalReferenceCode) fetchCPMeasurementUnitByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCPMeasurementUnitByKey
(long companyId, String key) fetchCPMeasurementUnitByUuidAndGroupId
(String uuid, long groupId) Returns the cp measurement unit matching the UUID and group.fetchPrimaryCPMeasurementUnit
(long companyId, int type) fetchPrimaryCPMeasurementUnitByType
(long companyId, int type) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCPMeasurementUnit
(long CPMeasurementUnitId) Returns the cp measurement unit with the primary key.getCPMeasurementUnitByExternalReferenceCode
(String externalReferenceCode, long companyId) getCPMeasurementUnitByKey
(long companyId, String key) getCPMeasurementUnitByUuidAndGroupId
(String uuid, long groupId) Returns the cp measurement unit matching the UUID and group.getCPMeasurementUnits
(int start, int end) Returns a range of all the cp measurement units.getCPMeasurementUnits
(long companyId) getCPMeasurementUnits
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) getCPMeasurementUnits
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) getCPMeasurementUnits
(long companyId, String[] keys) getCPMeasurementUnitsByType
(long companyId, int type) getCPMeasurementUnitsByType
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) getCPMeasurementUnitsByUuidAndCompanyId
(String uuid, long companyId) Returns all the cp measurement units matching the UUID and company.getCPMeasurementUnitsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns a range of cp measurement units matching the UUID and company.int
Returns the number of cp measurement units.int
getCPMeasurementUnitsCount
(long companyId) int
getCPMeasurementUnitsCount
(long companyId, int type) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) void
importDefaultValues
(com.liferay.portal.kernel.service.ServiceContext serviceContext) setPrimary
(long cpMeasurementUnitId, boolean primary) void
setWrappedService
(CPMeasurementUnitLocalService cpMeasurementUnitLocalService) updateCPMeasurementUnit
(CPMeasurementUnit cpMeasurementUnit) Updates the cp measurement unit in the database or adds it if it does not yet exist.updateCPMeasurementUnit
(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CPMeasurementUnitLocalServiceWrapper
public CPMeasurementUnitLocalServiceWrapper() -
CPMeasurementUnitLocalServiceWrapper
public CPMeasurementUnitLocalServiceWrapper(CPMeasurementUnitLocalService cpMeasurementUnitLocalService)
-
-
Method Details
-
addCPMeasurementUnit
Adds the cp measurement unit to the database. Also notifies the appropriate model listeners.Important: Inspect CPMeasurementUnitLocalServiceImpl 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.
- Specified by:
addCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
cpMeasurementUnit
- the cp measurement unit- Returns:
- the cp measurement unit that was added
-
addCPMeasurementUnit
public CPMeasurementUnit addCPMeasurementUnit(String externalReferenceCode, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCPMeasurementUnit
Creates a new cp measurement unit with the primary key. Does not add the cp measurement unit to the database.- Specified by:
createCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
CPMeasurementUnitId
- the primary key for the new cp measurement unit- Returns:
- the new cp measurement unit
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCPMeasurementUnitLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCPMeasurementUnit
Deletes the cp measurement unit from the database. Also notifies the appropriate model listeners.Important: Inspect CPMeasurementUnitLocalServiceImpl 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.
- Specified by:
deleteCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
cpMeasurementUnit
- the cp measurement unit- Returns:
- the cp measurement unit that was removed
-
deleteCPMeasurementUnit
public CPMeasurementUnit deleteCPMeasurementUnit(long CPMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException Deletes the cp measurement unit with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CPMeasurementUnitLocalServiceImpl 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.
- Specified by:
deleteCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
CPMeasurementUnitId
- the primary key of the cp measurement unit- Returns:
- the cp measurement unit that was removed
- Throws:
PortalException
- if a cp measurement unit with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCPMeasurementUnits
public void deleteCPMeasurementUnits(long companyId) - Specified by:
deleteCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCPMeasurementUnitLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCPMeasurementUnitLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCPMeasurementUnitLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCPMeasurementUnitLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCPMeasurementUnitLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl
.- Specified by:
dynamicQuery
in interfaceCPMeasurementUnitLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl
.- Specified by:
dynamicQuery
in interfaceCPMeasurementUnitLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCPMeasurementUnitLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCPMeasurementUnitLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCPMeasurementUnit
- Specified by:
fetchCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(long companyId, String externalReferenceCode) - Specified by:
fetchCPMeasurementUnitByExternalReferenceCode
in interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCPMeasurementUnitByExternalReferenceCode
in interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByKey
public CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCPMeasurementUnitByKey
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByUuidAndGroupId
Returns the cp measurement unit matching the UUID and group.- Specified by:
fetchCPMeasurementUnitByUuidAndGroupId
in interfaceCPMeasurementUnitLocalService
- Parameters:
uuid
- the cp measurement unit's UUIDgroupId
- the primary key of the group- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
fetchPrimaryCPMeasurementUnit
- Specified by:
fetchPrimaryCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
-
fetchPrimaryCPMeasurementUnitByType
- Specified by:
fetchPrimaryCPMeasurementUnitByType
in interfaceCPMeasurementUnitLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnit
public CPMeasurementUnit getCPMeasurementUnit(long CPMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException Returns the cp measurement unit with the primary key.- Specified by:
getCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
CPMeasurementUnitId
- the primary key of the cp measurement unit- Returns:
- the cp measurement unit
- Throws:
PortalException
- if a cp measurement unit with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit getCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitByExternalReferenceCode
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitByKey
public CPMeasurementUnit getCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitByKey
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitByUuidAndGroupId
public CPMeasurementUnit getCPMeasurementUnitByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the cp measurement unit matching the UUID and group.- Specified by:
getCPMeasurementUnitByUuidAndGroupId
in interfaceCPMeasurementUnitLocalService
- Parameters:
uuid
- the cp measurement unit's UUIDgroupId
- the primary key of the group- Returns:
- the matching cp measurement unit
- Throws:
PortalException
- if a matching cp measurement unit could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
Returns a range of all the cp measurement units.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl
.- Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
- Parameters:
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)- Returns:
- the range of cp measurement units
-
getCPMeasurementUnits
- Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) - Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) - Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
- Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnitsByType
public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsByType
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByType
public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsByType
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByUuidAndCompanyId
Returns all the cp measurement units matching the UUID and company.- Specified by:
getCPMeasurementUnitsByUuidAndCompanyId
in interfaceCPMeasurementUnitLocalService
- Parameters:
uuid
- the UUID of the cp measurement unitscompanyId
- the primary key of the company- Returns:
- the matching cp measurement units, or an empty list if no matches were found
-
getCPMeasurementUnitsByUuidAndCompanyId
public List<CPMeasurementUnit> getCPMeasurementUnitsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns a range of cp measurement units matching the UUID and company.- Specified by:
getCPMeasurementUnitsByUuidAndCompanyId
in interfaceCPMeasurementUnitLocalService
- Parameters:
uuid
- the UUID of the cp measurement unitscompanyId
- the primary key of the companystart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching cp measurement units, or an empty list if no matches were found
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount()Returns the number of cp measurement units.- Specified by:
getCPMeasurementUnitsCount
in interfaceCPMeasurementUnitLocalService
- Returns:
- the number of cp measurement units
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId) - Specified by:
getCPMeasurementUnitsCount
in interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId, int type) - Specified by:
getCPMeasurementUnitsCount
in interfaceCPMeasurementUnitLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCPMeasurementUnitLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCPMeasurementUnitLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCPMeasurementUnitLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCPMeasurementUnitLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
importDefaultValues
public void importDefaultValues(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
importDefaultValues
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setPrimary
public CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setPrimary
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCPMeasurementUnit
Updates the cp measurement unit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CPMeasurementUnitLocalServiceImpl 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.
- Specified by:
updateCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Parameters:
cpMeasurementUnit
- the cp measurement unit- Returns:
- the cp measurement unit that was updated
-
updateCPMeasurementUnit
public CPMeasurementUnit updateCPMeasurementUnit(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateCPMeasurementUnit
in interfaceCPMeasurementUnitLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit> getCTPersistence()- Specified by:
getCTPersistence
in interfaceCPMeasurementUnitLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
-
getModelClass
- Specified by:
getModelClass
in interfaceCPMeasurementUnitLocalService
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCPMeasurementUnitLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitLocalService>
-