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.PersistedModelcreatePersistedModel(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.voiddeleteCPMeasurementUnits(long companyId) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.ActionableDynamicQuerycom.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.intReturns the number of cp measurement units.intgetCPMeasurementUnitsCount(long companyId) intgetCPMeasurementUnitsCount(long companyId, int type) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) voidimportDefaultValues(com.liferay.portal.kernel.service.ServiceContext serviceContext) setPrimary(long cpMeasurementUnitId, boolean primary) voidsetWrappedService(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, waitMethods 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:
addCPMeasurementUnitin 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:
addCPMeasurementUnitin 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:
createCPMeasurementUnitin 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:
createPersistedModelin interfaceCPMeasurementUnitLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
deleteCPMeasurementUnitin 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:
deleteCPMeasurementUnitin 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:
deleteCPMeasurementUnitsin 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:
deletePersistedModelin interfaceCPMeasurementUnitLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceCPMeasurementUnitLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCPMeasurementUnitLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceCPMeasurementUnitLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchCPMeasurementUnitin interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(long companyId, String externalReferenceCode) - Specified by:
fetchCPMeasurementUnitByExternalReferenceCodein interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCPMeasurementUnitByExternalReferenceCodein interfaceCPMeasurementUnitLocalService
-
fetchCPMeasurementUnitByKey
public CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCPMeasurementUnitByKeyin interfaceCPMeasurementUnitLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByUuidAndGroupId
Returns the cp measurement unit matching the UUID and group.- Specified by:
fetchCPMeasurementUnitByUuidAndGroupIdin interfaceCPMeasurementUnitLocalService- Parameters:
uuid- the cp measurement unit's UUIDgroupId- the primary key of the group- Returns:
- the matching cp measurement unit, or
nullif a matching cp measurement unit could not be found
-
fetchPrimaryCPMeasurementUnit
- Specified by:
fetchPrimaryCPMeasurementUnitin interfaceCPMeasurementUnitLocalService
-
fetchPrimaryCPMeasurementUnitByType
- Specified by:
fetchPrimaryCPMeasurementUnitByTypein interfaceCPMeasurementUnitLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin 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:
getCPMeasurementUnitin 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:
getCPMeasurementUnitByExternalReferenceCodein 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:
getCPMeasurementUnitByKeyin 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:
getCPMeasurementUnitByUuidAndGroupIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPMeasurementUnitModelImpl.- Specified by:
getCPMeasurementUnitsin 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:
getCPMeasurementUnitsin interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) - Specified by:
getCPMeasurementUnitsin interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) - Specified by:
getCPMeasurementUnitsin interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnits
- Specified by:
getCPMeasurementUnitsin interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnitsByType
public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsByTypein 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:
getCPMeasurementUnitsByTypein interfaceCPMeasurementUnitLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByUuidAndCompanyId
Returns all the cp measurement units matching the UUID and company.- Specified by:
getCPMeasurementUnitsByUuidAndCompanyIdin 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:
getCPMeasurementUnitsByUuidAndCompanyIdin 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:
getCPMeasurementUnitsCountin interfaceCPMeasurementUnitLocalService- Returns:
- the number of cp measurement units
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId) - Specified by:
getCPMeasurementUnitsCountin interfaceCPMeasurementUnitLocalService
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId, int type) - Specified by:
getCPMeasurementUnitsCountin interfaceCPMeasurementUnitLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceCPMeasurementUnitLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceCPMeasurementUnitLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin 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:
getPersistedModelin interfaceCPMeasurementUnitLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
importDefaultValuesin 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:
setPrimaryin 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:
updateCPMeasurementUnitin 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:
updateCPMeasurementUnitin interfaceCPMeasurementUnitLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit> getCTPersistence()- Specified by:
getCTPersistencein interfaceCPMeasurementUnitLocalService- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
-
getModelClass
- Specified by:
getModelClassin interfaceCPMeasurementUnitLocalService- Specified by:
getModelClassin 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:
updateWithUnsafeFunctionin interfaceCPMeasurementUnitLocalService- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitLocalService>
-