Class CommercePriceEntryLocalServiceWrapper
- All Implemented Interfaces:
CommercePriceEntryLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<CommercePriceEntryLocalService>
CommercePriceEntryLocalService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommercePriceEntryLocalServiceWrapper(CommercePriceEntryLocalService commercePriceEntryLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCommercePriceEntry(CommercePriceEntry commercePriceEntry) Adds the commerce price entry to the database.addCommercePriceEntry(String externalReferenceCode, long cProductId, String cpInstanceUuid, long commercePriceListId, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCommercePriceEntry(String externalReferenceCode, long cProductId, String cpInstanceUuid, long commercePriceListId, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) addOrUpdateCommercePriceEntry(String externalReferenceCode, long commercePriceEntryId, long cProductId, String cpInstanceUuid, long commercePriceListId, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String skuExternalReferenceCode, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidcreateCommercePriceEntry(long commercePriceEntryId) Creates a new commerce price entry with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) voiddeleteCommercePriceEntries(long commercePriceListId) voiddeleteCommercePriceEntries(String cpInstanceUuid) voiddeleteCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) deleteCommercePriceEntry(long commercePriceEntryId) Deletes the commerce price entry with the primary key from the database.deleteCommercePriceEntry(CommercePriceEntry commercePriceEntry) Deletes the commerce price entry from the database.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.fetchCommercePriceEntry(long commercePriceEntryId) fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, int status, String unitOfMeasureKey) fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey) fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey, boolean useAncestor) fetchCommercePriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) fetchCommercePriceEntryByUuidAndCompanyId(String uuid, long companyId) Returns the commerce price entry with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<?>getCommercePriceEntries(int start, int end) Returns a range of all the commerce price entries.getCommercePriceEntries(long commercePriceListId, int start, int end) getCommercePriceEntries(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) getCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) getCommercePriceEntriesByCompanyId(long companyId, int start, int end) intReturns the number of commerce price entries.intgetCommercePriceEntriesCount(long commercePriceListId) intgetCommercePriceEntriesCountByCompanyId(long companyId) getCommercePriceEntry(long commercePriceEntryId) Returns the commerce price entry with the primary key.getCommercePriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) getCommercePriceEntryByUuidAndCompanyId(String uuid, long companyId) Returns the commerce price entry with the matching UUID and company.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceEntry>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetInstanceBaseCommercePriceEntry(String cpInstanceUuid, String priceListType, String unitOfMeasureKey) getInstanceCommercePriceEntries(String cpInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) intgetInstanceCommercePriceEntriesCount(String cpInstanceUuid) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.search.Hitssearch(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceEntry>searchCommercePriceEntries(long companyId, long commercePriceListId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) intsearchCommercePriceEntriesCount(long companyId, long commercePriceListId, String keywords) setHasTierPrice(long commercePriceEntryId, boolean hasTierPrice) setHasTierPrice(long commercePriceEntryId, boolean hasTierPrice, boolean bulkPricing) voidsetWrappedService(CommercePriceEntryLocalService commercePriceEntryLocalService) updateCommercePriceEntry(long commercePriceEntryId, boolean bulkPricing, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommercePriceEntry(CommercePriceEntry commercePriceEntry) Updates the commerce price entry in the database or adds it if it does not yet exist.updateExternalReferenceCode(String externalReferenceCode, CommercePriceEntry commercePriceEntry) updatePricingInfo(long commercePriceEntryId, boolean bulkPricing, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateStatus(long userId, long commercePriceEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceEntry>, 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
-
CommercePriceEntryLocalServiceWrapper
public CommercePriceEntryLocalServiceWrapper() -
CommercePriceEntryLocalServiceWrapper
public CommercePriceEntryLocalServiceWrapper(CommercePriceEntryLocalService commercePriceEntryLocalService)
-
-
Method Details
-
addCommercePriceEntry
Adds the commerce price entry to the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceEntryLocalServiceImpl 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:
addCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntry- the commerce price entry- Returns:
- the commerce price entry that was added
-
addCommercePriceEntry
public CommercePriceEntry addCommercePriceEntry(String externalReferenceCode, long cProductId, String cpInstanceUuid, long commercePriceListId, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCommercePriceEntryin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommercePriceEntry
public CommercePriceEntry addCommercePriceEntry(String externalReferenceCode, long cProductId, String cpInstanceUuid, long commercePriceListId, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCommercePriceEntryin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommercePriceEntry
public CommercePriceEntry addOrUpdateCommercePriceEntry(String externalReferenceCode, long commercePriceEntryId, long cProductId, String cpInstanceUuid, long commercePriceListId, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String skuExternalReferenceCode, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOrUpdateCommercePriceEntryin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommercePriceEntries
public void checkCommercePriceEntries() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCommercePriceEntry
Creates a new commerce price entry with the primary key. Does not add the commerce price entry to the database.- Specified by:
createCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntryId- the primary key for the new commerce price entry- Returns:
- the new commerce price entry
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfaceCommercePriceEntryLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public void deleteCommercePriceEntries(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public void deleteCommercePriceEntries(String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public void deleteCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntry
public CommercePriceEntry deleteCommercePriceEntry(CommercePriceEntry commercePriceEntry) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce price entry from the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceEntryLocalServiceImpl 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:
deleteCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntry- the commerce price entry- Returns:
- the commerce price entry that was removed
- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntry
public CommercePriceEntry deleteCommercePriceEntry(long commercePriceEntryId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce price entry with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceEntryLocalServiceImpl 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:
deleteCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntryId- the primary key of the commerce price entry- Returns:
- the commerce price entry that was removed
- Throws:
PortalException- if a commerce price entry with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
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 interfaceCommercePriceEntryLocalService- 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 interfaceCommercePriceEntryLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCommercePriceEntryLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceCommercePriceEntryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceCommercePriceEntryLocalService- 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.price.list.model.impl.CommercePriceEntryModelImpl.- Specified by:
dynamicQueryin interfaceCommercePriceEntryLocalService- 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.price.list.model.impl.CommercePriceEntryModelImpl.- Specified by:
dynamicQueryin interfaceCommercePriceEntryLocalService- 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 interfaceCommercePriceEntryLocalService- 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 interfaceCommercePriceEntryLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCommercePriceEntry
- Specified by:
fetchCommercePriceEntryin interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, int status, String unitOfMeasureKey) - Specified by:
fetchCommercePriceEntryin interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey) - Specified by:
fetchCommercePriceEntryin interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey, boolean useAncestor) - Specified by:
fetchCommercePriceEntryin interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntryByExternalReferenceCode
public CommercePriceEntry fetchCommercePriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommercePriceEntryByExternalReferenceCodein interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntryByUuidAndCompanyId
Returns the commerce price entry with the matching UUID and company.- Specified by:
fetchCommercePriceEntryByUuidAndCompanyIdin interfaceCommercePriceEntryLocalService- Parameters:
uuid- the commerce price entry's UUIDcompanyId- the primary key of the company- Returns:
- the matching commerce price entry, or
nullif a matching commerce price entry could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
Returns a range of all the commerce price entries.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.price.list.model.impl.CommercePriceEntryModelImpl.- Specified by:
getCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Parameters:
start- the lower bound of the range of commerce price entriesend- the upper bound of the range of commerce price entries (not inclusive)- Returns:
- the range of commerce price entries
-
getCommercePriceEntries
public List<CommercePriceEntry> getCommercePriceEntries(long commercePriceListId, int start, int end) - Specified by:
getCommercePriceEntriesin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
public List<CommercePriceEntry> getCommercePriceEntries(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) - Specified by:
getCommercePriceEntriesin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
public List<CommercePriceEntry> getCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) - Specified by:
getCommercePriceEntriesin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesByCompanyId
public List<CommercePriceEntry> getCommercePriceEntriesByCompanyId(long companyId, int start, int end) - Specified by:
getCommercePriceEntriesByCompanyIdin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesCount
public int getCommercePriceEntriesCount()Returns the number of commerce price entries.- Specified by:
getCommercePriceEntriesCountin interfaceCommercePriceEntryLocalService- Returns:
- the number of commerce price entries
-
getCommercePriceEntriesCount
public int getCommercePriceEntriesCount(long commercePriceListId) - Specified by:
getCommercePriceEntriesCountin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesCountByCompanyId
public int getCommercePriceEntriesCountByCompanyId(long companyId) - Specified by:
getCommercePriceEntriesCountByCompanyIdin interfaceCommercePriceEntryLocalService
-
getCommercePriceEntry
public CommercePriceEntry getCommercePriceEntry(long commercePriceEntryId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price entry with the primary key.- Specified by:
getCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntryId- the primary key of the commerce price entry- Returns:
- the commerce price entry
- Throws:
PortalException- if a commerce price entry with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommercePriceEntryByExternalReferenceCode
public CommercePriceEntry getCommercePriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommercePriceEntryByExternalReferenceCodein interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceEntryByUuidAndCompanyId
public CommercePriceEntry getCommercePriceEntryByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price entry with the matching UUID and company.- Specified by:
getCommercePriceEntryByUuidAndCompanyIdin interfaceCommercePriceEntryLocalService- Parameters:
uuid- the commerce price entry's UUIDcompanyId- the primary key of the company- Returns:
- the matching commerce price entry
- Throws:
PortalException- if a matching commerce price entry could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceCommercePriceEntryLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceCommercePriceEntryLocalService
-
getInstanceBaseCommercePriceEntry
public CommercePriceEntry getInstanceBaseCommercePriceEntry(String cpInstanceUuid, String priceListType, String unitOfMeasureKey) - Specified by:
getInstanceBaseCommercePriceEntryin interfaceCommercePriceEntryLocalService
-
getInstanceCommercePriceEntries
public List<CommercePriceEntry> getInstanceCommercePriceEntries(String cpInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) - Specified by:
getInstanceCommercePriceEntriesin interfaceCommercePriceEntryLocalService
-
getInstanceCommercePriceEntriesCount
- Specified by:
getInstanceCommercePriceEntriesCountin interfaceCommercePriceEntryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceCommercePriceEntryLocalService- 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 interfaceCommercePriceEntryLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) - Specified by:
searchin interfaceCommercePriceEntryLocalService
-
searchCommercePriceEntries
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceEntry> searchCommercePriceEntries(long companyId, long commercePriceListId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommercePriceEntriesin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommercePriceEntriesCount
public int searchCommercePriceEntriesCount(long companyId, long commercePriceListId, String keywords) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommercePriceEntriesCountin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setHasTierPrice
public CommercePriceEntry setHasTierPrice(long commercePriceEntryId, boolean hasTierPrice) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setHasTierPricein interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setHasTierPrice
public CommercePriceEntry setHasTierPrice(long commercePriceEntryId, boolean hasTierPrice, boolean bulkPricing) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setHasTierPricein interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceEntry
Updates the commerce price entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CommercePriceEntryLocalServiceImpl 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:
updateCommercePriceEntryin interfaceCommercePriceEntryLocalService- Parameters:
commercePriceEntry- the commerce price entry- Returns:
- the commerce price entry that was updated
-
updateCommercePriceEntry
public CommercePriceEntry updateCommercePriceEntry(long commercePriceEntryId, boolean bulkPricing, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommercePriceEntryin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public CommercePriceEntry updateExternalReferenceCode(String externalReferenceCode, CommercePriceEntry commercePriceEntry) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateExternalReferenceCodein interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePricingInfo
public CommercePriceEntry updatePricingInfo(long commercePriceEntryId, boolean bulkPricing, BigDecimal price, boolean priceOnApplication, BigDecimal promoPrice, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePricingInfoin interfaceCommercePriceEntryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CommercePriceEntry updateStatus(long userId, long commercePriceEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateStatusin interfaceCommercePriceEntryLocalService- 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<CommercePriceEntry> getCTPersistence()- Specified by:
getCTPersistencein interfaceCommercePriceEntryLocalService- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>
-
getModelClass
- Specified by:
getModelClassin interfaceCommercePriceEntryLocalService- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCommercePriceEntryLocalService- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceEntryLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceEntryLocalService>
-