public class CommerceTierPriceEntryLocalServiceWrapper extends java.lang.Object implements CommerceTierPriceEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceTierPriceEntryLocalService>
CommerceTierPriceEntryLocalService.CommerceTierPriceEntryLocalService| Constructor and Description |
|---|
CommerceTierPriceEntryLocalServiceWrapper() |
CommerceTierPriceEntryLocalServiceWrapper(CommerceTierPriceEntryLocalService commerceTierPriceEntryLocalService) |
| Modifier and Type | Method and Description |
|---|---|
CommerceTierPriceEntry |
addCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry)
Adds the commerce tier price entry to the database.
|
CommerceTierPriceEntry |
addCommerceTierPriceEntry(long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addCommerceTierPriceEntry(long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
boolean bulkPricing,
java.math.BigDecimal minQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
boolean bulkPricing,
java.math.BigDecimal minQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commerceTierPriceEntryId,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.lang.String priceEntryExternalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commerceTierPriceEntryId,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
java.lang.String priceEntryExternalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
This method is used to insert a new CommerceTierPriceEntry or update an
existing one
|
CommerceTierPriceEntry |
addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode,
long commerceTierPriceEntryId,
long commercePriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.lang.String priceEntryExternalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
checkCommerceTierPriceEntries() |
CommerceTierPriceEntry |
createCommerceTierPriceEntry(long commerceTierPriceEntryId)
Creates a new commerce tier price entry with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
void |
deleteCommerceTierPriceEntries(long commercePriceEntryId) |
CommerceTierPriceEntry |
deleteCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry)
Deletes the commerce tier price entry from the database.
|
CommerceTierPriceEntry |
deleteCommerceTierPriceEntry(long commerceTierPriceEntryId)
Deletes the commerce tier price entry with the primary key 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 |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
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.
|
CommerceTierPriceEntry |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
java.util.List<CommerceTierPriceEntry> |
fetchCommerceTierPriceEntries(long companyId,
int start,
int end) |
CommerceTierPriceEntry |
fetchCommerceTierPriceEntry(long commerceTierPriceEntryId) |
CommerceTierPriceEntry |
fetchCommerceTierPriceEntryByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceTierPriceEntry |
fetchCommerceTierPriceEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce tier price entry with the matching UUID and company.
|
CommerceTierPriceEntry |
findClosestCommerceTierPriceEntry(long commercePriceEntryId,
java.math.BigDecimal minQuantity) |
java.util.List<CommerceTierPriceEntry> |
findCommerceTierPriceEntries(long commercePriceEntryId,
java.math.BigDecimal minQuantity) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.BasePersistence<?> |
getBasePersistence() |
java.util.List<CommerceTierPriceEntry> |
getCommerceTierPriceEntries(int start,
int end)
Returns a range of all the commerce tier price entries.
|
java.util.List<CommerceTierPriceEntry> |
getCommerceTierPriceEntries(long commercePriceEntryId,
int start,
int end) |
java.util.List<CommerceTierPriceEntry> |
getCommerceTierPriceEntries(long commercePriceEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) |
int |
getCommerceTierPriceEntriesCount()
Returns the number of commerce tier price entries.
|
int |
getCommerceTierPriceEntriesCount(long commercePriceEntryId) |
int |
getCommerceTierPriceEntriesCountByCompanyId(long companyId) |
CommerceTierPriceEntry |
getCommerceTierPriceEntry(long commerceTierPriceEntryId)
Returns the commerce tier price entry with the primary key.
|
CommerceTierPriceEntry |
getCommerceTierPriceEntryByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceTierPriceEntry |
getCommerceTierPriceEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce tier price entry with the matching UUID and company.
|
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceTierPriceEntry> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<CommerceTierPriceEntry> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceTierPriceEntryLocalService |
getWrappedService() |
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTierPriceEntry> |
searchCommerceTierPriceEntries(long companyId,
long commercePriceEntryId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
int |
searchCommerceTierPriceEntriesCount(long companyId,
long commercePriceEntryId,
java.lang.String keywords) |
void |
setWrappedService(CommerceTierPriceEntryLocalService commerceTierPriceEntryLocalService) |
CommerceTierPriceEntry |
updateCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry)
Updates the commerce tier price entry in the database or adds it if it does not yet exist.
|
CommerceTierPriceEntry |
updateCommerceTierPriceEntry(long commerceTierPriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
updateCommerceTierPriceEntry(long commerceTierPriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal minQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
updateCommerceTierPriceEntry(long commerceTierPriceEntryId,
java.math.BigDecimal price,
java.math.BigDecimal minQuantity,
boolean bulkPricing,
boolean discountDiscovery,
java.math.BigDecimal discountLevel1,
java.math.BigDecimal discountLevel2,
java.math.BigDecimal discountLevel3,
java.math.BigDecimal discountLevel4,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceTierPriceEntry |
updateExternalReferenceCode(CommerceTierPriceEntry commerceTierPriceEntry,
java.lang.String externalReferenceCode) |
CommerceTierPriceEntry |
updateStatus(long userId,
long commerceTierPriceEntryId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceTierPriceEntry>,R,E> updateUnsafeFunction) |
public CommerceTierPriceEntryLocalServiceWrapper()
public CommerceTierPriceEntryLocalServiceWrapper(CommerceTierPriceEntryLocalService commerceTierPriceEntryLocalService)
public CommerceTierPriceEntry addCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry)
Important: Inspect CommerceTierPriceEntryLocalServiceImpl 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.
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntry - the commerce tier price entrypublic CommerceTierPriceEntry addCommerceTierPriceEntry(long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addCommerceTierPriceEntry(long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, boolean bulkPricing, java.math.BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, boolean bulkPricing, java.math.BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commerceTierPriceEntryId, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.lang.String priceEntryExternalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commerceTierPriceEntryId, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, java.lang.String priceEntryExternalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServiceexternalReferenceCode - - The external identifier code from a 3rd
party system to be able to locate the same entity in the portal
Only used when updating an entity; the first entity with a
matching reference code one will be updatedcommerceTierPriceEntryId - - Only used when updating an
entity; the matching one will be updatedcommercePriceEntryId - - Only used when adding a new entityprice - promoPrice - minQuantity - priceEntryExternalReferenceCode - - Only used when adding a
new entity, similar as commercePriceEntryId but the
external identifier code from a 3rd party system. If
commercePriceEntryId is used, it doesn't have any effect,
otherwise it tries to fetch the CommercePriceEntry against the
external code referenceserviceContext - PortalExceptionpublic CommerceTierPriceEntry addOrUpdateCommerceTierPriceEntry(java.lang.String externalReferenceCode, long commerceTierPriceEntryId, long commercePriceEntryId, java.math.BigDecimal price, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.lang.String priceEntryExternalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void checkCommerceTierPriceEntries()
throws com.liferay.portal.kernel.exception.PortalException
checkCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry createCommerceTierPriceEntry(long commerceTierPriceEntryId)
createCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntryId - the primary key for the new commerce tier price entrypublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface CommerceTierPriceEntryLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic void deleteCommerceTierPriceEntries(long commercePriceEntryId)
throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry deleteCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceTierPriceEntryLocalServiceImpl 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.
deleteCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntry - the commerce tier price entryPortalExceptionpublic CommerceTierPriceEntry deleteCommerceTierPriceEntry(long commerceTierPriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceTierPriceEntryLocalServiceImpl 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.
deleteCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntryId - the primary key of the commerce tier price entryPortalException - if a commerce tier price entry with the primary key could not be foundpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface CommerceTierPriceEntryLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface CommerceTierPriceEntryLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface CommerceTierPriceEntryLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface CommerceTierPriceEntryLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface CommerceTierPriceEntryLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.price.list.model.impl.CommerceTierPriceEntryModelImpl.
dynamicQuery in interface CommerceTierPriceEntryLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.price.list.model.impl.CommerceTierPriceEntryModelImpl.
dynamicQuery in interface CommerceTierPriceEntryLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface CommerceTierPriceEntryLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface CommerceTierPriceEntryLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic CommerceTierPriceEntry fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode in interface CommerceTierPriceEntryLocalServicepublic java.util.List<CommerceTierPriceEntry> fetchCommerceTierPriceEntries(long companyId, int start, int end)
fetchCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicepublic CommerceTierPriceEntry fetchCommerceTierPriceEntry(long commerceTierPriceEntryId)
fetchCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicepublic CommerceTierPriceEntry fetchCommerceTierPriceEntryByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchCommerceTierPriceEntryByExternalReferenceCode in interface CommerceTierPriceEntryLocalServicepublic CommerceTierPriceEntry fetchCommerceTierPriceEntryByUuidAndCompanyId(java.lang.String uuid, long companyId)
fetchCommerceTierPriceEntryByUuidAndCompanyId in interface CommerceTierPriceEntryLocalServiceuuid - the commerce tier price entry's UUIDcompanyId - the primary key of the companynull if a matching commerce tier price entry could not be foundpublic CommerceTierPriceEntry findClosestCommerceTierPriceEntry(long commercePriceEntryId, java.math.BigDecimal minQuantity)
findClosestCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicepublic java.util.List<CommerceTierPriceEntry> findCommerceTierPriceEntries(long commercePriceEntryId, java.math.BigDecimal minQuantity)
findCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface CommerceTierPriceEntryLocalServicepublic java.util.List<CommerceTierPriceEntry> getCommerceTierPriceEntries(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.price.list.model.impl.CommerceTierPriceEntryModelImpl.
getCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicestart - the lower bound of the range of commerce tier price entriesend - the upper bound of the range of commerce tier price entries (not inclusive)public java.util.List<CommerceTierPriceEntry> getCommerceTierPriceEntries(long commercePriceEntryId, int start, int end)
getCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicepublic java.util.List<CommerceTierPriceEntry> getCommerceTierPriceEntries(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
getCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicepublic int getCommerceTierPriceEntriesCount()
getCommerceTierPriceEntriesCount in interface CommerceTierPriceEntryLocalServicepublic int getCommerceTierPriceEntriesCount(long commercePriceEntryId)
getCommerceTierPriceEntriesCount in interface CommerceTierPriceEntryLocalServicepublic int getCommerceTierPriceEntriesCountByCompanyId(long companyId)
getCommerceTierPriceEntriesCountByCompanyId in interface CommerceTierPriceEntryLocalServicepublic CommerceTierPriceEntry getCommerceTierPriceEntry(long commerceTierPriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntryId - the primary key of the commerce tier price entryPortalException - if a commerce tier price entry with the primary key could not be foundpublic CommerceTierPriceEntry getCommerceTierPriceEntryByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceTierPriceEntryByExternalReferenceCode in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry getCommerceTierPriceEntryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceTierPriceEntryByUuidAndCompanyId in interface CommerceTierPriceEntryLocalServiceuuid - the commerce tier price entry's UUIDcompanyId - the primary key of the companyPortalException - if a matching commerce tier price entry could not be foundpublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface CommerceTierPriceEntryLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface CommerceTierPriceEntryLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface CommerceTierPriceEntryLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface CommerceTierPriceEntryLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
search in interface CommerceTierPriceEntryLocalServicepublic com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTierPriceEntry> searchCommerceTierPriceEntries(long companyId, long commercePriceEntryId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceTierPriceEntries in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int searchCommerceTierPriceEntriesCount(long companyId,
long commercePriceEntryId,
java.lang.String keywords)
throws com.liferay.portal.kernel.exception.PortalException
searchCommerceTierPriceEntriesCount in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry updateCommerceTierPriceEntry(CommerceTierPriceEntry commerceTierPriceEntry)
Important: Inspect CommerceTierPriceEntryLocalServiceImpl 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.
updateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecommerceTierPriceEntry - the commerce tier price entrypublic CommerceTierPriceEntry updateCommerceTierPriceEntry(long commerceTierPriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry updateCommerceTierPriceEntry(long commerceTierPriceEntryId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry updateCommerceTierPriceEntry(long commerceTierPriceEntryId, java.math.BigDecimal price, java.math.BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, java.math.BigDecimal discountLevel1, java.math.BigDecimal discountLevel2, java.math.BigDecimal discountLevel3, java.math.BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceTierPriceEntry in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry updateExternalReferenceCode(CommerceTierPriceEntry commerceTierPriceEntry, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
updateExternalReferenceCode in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceTierPriceEntry updateStatus(long userId, long commerceTierPriceEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus in interface CommerceTierPriceEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceTierPriceEntry> getCTPersistence()
getCTPersistence in interface CommerceTierPriceEntryLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommerceTierPriceEntry>public java.lang.Class<CommerceTierPriceEntry> getModelClass()
getModelClass in interface CommerceTierPriceEntryLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommerceTierPriceEntry>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceTierPriceEntry>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface CommerceTierPriceEntryLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommerceTierPriceEntry>E extends java.lang.Throwablepublic CommerceTierPriceEntryLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceTierPriceEntryLocalService>public void setWrappedService(CommerceTierPriceEntryLocalService commerceTierPriceEntryLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceTierPriceEntryLocalService>