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) void
createCommercePriceEntry
(long commercePriceEntryId) Creates a new commerce price entry with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteCommercePriceEntries
(long commercePriceListId) void
deleteCommercePriceEntries
(String cpInstanceUuid) void
deleteCommercePriceEntries
(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.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.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.ActionableDynamicQuery
com.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) int
Returns the number of commerce price entries.int
getCommercePriceEntriesCount
(long commercePriceListId) int
getCommercePriceEntriesCountByCompanyId
(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.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getInstanceBaseCommercePriceEntry
(String cpInstanceUuid, String priceListType, String unitOfMeasureKey) getInstanceCommercePriceEntries
(String cpInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) int
getInstanceCommercePriceEntriesCount
(String cpInstanceUuid) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) com.liferay.portal.kernel.search.Hits
search
(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) int
searchCommercePriceEntriesCount
(long companyId, long commercePriceListId, String keywords) setHasTierPrice
(long commercePriceEntryId, boolean hasTierPrice) setHasTierPrice
(long commercePriceEntryId, boolean hasTierPrice, boolean bulkPricing) void
setWrappedService
(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, wait
Methods 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:
addCommercePriceEntry
in 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:
addCommercePriceEntry
in 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:
addCommercePriceEntry
in 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:
addOrUpdateCommercePriceEntry
in interfaceCommercePriceEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommercePriceEntries
public void checkCommercePriceEntries() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCommercePriceEntries
in 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:
createCommercePriceEntry
in 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:
createPersistedModel
in interfaceCommercePriceEntryLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public void deleteCommercePriceEntries(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceEntries
in interfaceCommercePriceEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public void deleteCommercePriceEntries(String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceEntries
in 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:
deleteCommercePriceEntries
in 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:
deleteCommercePriceEntry
in interfaceCommercePriceEntryLocalService
- Parameters:
commercePriceEntry
- the commerce price entry- Returns:
- the commerce price entry that was removed
- Throws:
PortalException
com.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:
deleteCommercePriceEntry
in 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:
deletePersistedModel
in interfaceCommercePriceEntryLocalService
- 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 interfaceCommercePriceEntryLocalService
- 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 interfaceCommercePriceEntryLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommercePriceEntryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - 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.price.list.model.impl.CommercePriceEntryModelImpl
.- Specified by:
dynamicQuery
in 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 - 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.price.list.model.impl.CommercePriceEntryModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchCommercePriceEntry
in interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, int status, String unitOfMeasureKey) - Specified by:
fetchCommercePriceEntry
in interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey) - Specified by:
fetchCommercePriceEntry
in interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntry
public CommercePriceEntry fetchCommercePriceEntry(long commercePriceListId, String cpInstanceUuid, String unitOfMeasureKey, boolean useAncestor) - Specified by:
fetchCommercePriceEntry
in interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntryByExternalReferenceCode
public CommercePriceEntry fetchCommercePriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommercePriceEntryByExternalReferenceCode
in interfaceCommercePriceEntryLocalService
-
fetchCommercePriceEntryByUuidAndCompanyId
Returns the commerce price entry with the matching UUID and company.- Specified by:
fetchCommercePriceEntryByUuidAndCompanyId
in interfaceCommercePriceEntryLocalService
- Parameters:
uuid
- the commerce price entry's UUIDcompanyId
- the primary key of the company- Returns:
- the matching commerce price entry, or
null
if a matching commerce price entry could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
Returns a range of all the commerce price entries.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.price.list.model.impl.CommercePriceEntryModelImpl
.- Specified by:
getCommercePriceEntries
in 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:
getCommercePriceEntries
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
public List<CommercePriceEntry> getCommercePriceEntries(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) - Specified by:
getCommercePriceEntries
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntries
public List<CommercePriceEntry> getCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) - Specified by:
getCommercePriceEntries
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesByCompanyId
public List<CommercePriceEntry> getCommercePriceEntriesByCompanyId(long companyId, int start, int end) - Specified by:
getCommercePriceEntriesByCompanyId
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesCount
public int getCommercePriceEntriesCount()Returns the number of commerce price entries.- Specified by:
getCommercePriceEntriesCount
in interfaceCommercePriceEntryLocalService
- Returns:
- the number of commerce price entries
-
getCommercePriceEntriesCount
public int getCommercePriceEntriesCount(long commercePriceListId) - Specified by:
getCommercePriceEntriesCount
in interfaceCommercePriceEntryLocalService
-
getCommercePriceEntriesCountByCompanyId
public int getCommercePriceEntriesCountByCompanyId(long companyId) - Specified by:
getCommercePriceEntriesCountByCompanyId
in 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:
getCommercePriceEntry
in 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:
getCommercePriceEntryByExternalReferenceCode
in 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:
getCommercePriceEntryByUuidAndCompanyId
in 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:
getExportActionableDynamicQuery
in interfaceCommercePriceEntryLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommercePriceEntryLocalService
-
getInstanceBaseCommercePriceEntry
public CommercePriceEntry getInstanceBaseCommercePriceEntry(String cpInstanceUuid, String priceListType, String unitOfMeasureKey) - Specified by:
getInstanceBaseCommercePriceEntry
in interfaceCommercePriceEntryLocalService
-
getInstanceCommercePriceEntries
public List<CommercePriceEntry> getInstanceCommercePriceEntries(String cpInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) - Specified by:
getInstanceCommercePriceEntries
in interfaceCommercePriceEntryLocalService
-
getInstanceCommercePriceEntriesCount
- Specified by:
getInstanceCommercePriceEntriesCount
in interfaceCommercePriceEntryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in 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:
getPersistedModel
in interfaceCommercePriceEntryLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) - Specified by:
search
in 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:
searchCommercePriceEntries
in 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:
searchCommercePriceEntriesCount
in 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:
setHasTierPrice
in 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:
setHasTierPrice
in 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:
updateCommercePriceEntry
in 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:
updateCommercePriceEntry
in 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:
updateExternalReferenceCode
in 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:
updatePricingInfo
in 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:
updateStatus
in interfaceCommercePriceEntryLocalService
- 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<CommercePriceEntry> getCTPersistence()- Specified by:
getCTPersistence
in interfaceCommercePriceEntryLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>
-
getModelClass
- Specified by:
getModelClass
in interfaceCommercePriceEntryLocalService
- Specified by:
getModelClass
in 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:
updateWithUnsafeFunction
in interfaceCommercePriceEntryLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceEntry>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceEntryLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceEntryLocalService>
-