public class CommerceDiscountRuleLocalServiceWrapper extends java.lang.Object implements CommerceDiscountRuleLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountRuleLocalService>
CommerceDiscountRuleLocalService
.CommerceDiscountRuleLocalService
Constructor and Description |
---|
CommerceDiscountRuleLocalServiceWrapper() |
CommerceDiscountRuleLocalServiceWrapper(CommerceDiscountRuleLocalService commerceDiscountRuleLocalService) |
Modifier and Type | Method and Description |
---|---|
CommerceDiscountRule |
addCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule)
Adds the commerce discount rule to the database.
|
CommerceDiscountRule |
addCommerceDiscountRule(long commerceDiscountId,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceDiscountRule |
addCommerceDiscountRule(long commerceDiscountId,
java.lang.String name,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceDiscountRule |
createCommerceDiscountRule(long commerceDiscountRuleId)
Creates a new commerce discount rule with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceDiscountRule |
deleteCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule)
Deletes the commerce discount rule from the database.
|
CommerceDiscountRule |
deleteCommerceDiscountRule(long commerceDiscountRuleId)
Deletes the commerce discount rule with the primary key from the database.
|
void |
deleteCommerceDiscountRules(long commerceDiscountId) |
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.
|
CommerceDiscountRule |
fetchCommerceDiscountRule(long commerceDiscountRuleId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommerceDiscountRule |
getCommerceDiscountRule(long commerceDiscountRuleId)
Returns the commerce discount rule with the primary key.
|
java.util.List<CommerceDiscountRule> |
getCommerceDiscountRules(int start,
int end)
Returns a range of all the commerce discount rules.
|
java.util.List<CommerceDiscountRule> |
getCommerceDiscountRules(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) |
java.util.List<CommerceDiscountRule> |
getCommerceDiscountRules(long commerceDiscountId,
java.lang.String name,
int start,
int end) |
int |
getCommerceDiscountRulesCount()
Returns the number of commerce discount rules.
|
int |
getCommerceDiscountRulesCount(long commerceDiscountId) |
int |
getCommerceDiscountRulesCount(long commerceDiscountId,
java.lang.String name) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceDiscountRuleLocalService |
getWrappedService() |
void |
setWrappedService(CommerceDiscountRuleLocalService commerceDiscountRuleLocalService) |
CommerceDiscountRule |
updateCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule)
Updates the commerce discount rule in the database or adds it if it does not yet exist.
|
CommerceDiscountRule |
updateCommerceDiscountRule(long commerceDiscountRuleId,
java.lang.String type,
java.lang.String typeSettings) |
CommerceDiscountRule |
updateCommerceDiscountRule(long commerceDiscountRuleId,
java.lang.String name,
java.lang.String type,
java.lang.String typeSettings) |
public CommerceDiscountRuleLocalServiceWrapper()
public CommerceDiscountRuleLocalServiceWrapper(CommerceDiscountRuleLocalService commerceDiscountRuleLocalService)
public CommerceDiscountRule addCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule)
Important: Inspect CommerceDiscountRuleLocalServiceImpl 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.
addCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRule
- the commerce discount rulepublic CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, java.lang.String type, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, java.lang.String name, java.lang.String type, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceDiscountRule createCommerceDiscountRule(long commerceDiscountRuleId)
createCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRuleId
- the primary key for the new commerce discount rulepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommerceDiscountRuleLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceDiscountRule deleteCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceDiscountRuleLocalServiceImpl 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.
deleteCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRule
- the commerce discount rulePortalException
public CommerceDiscountRule deleteCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceDiscountRuleLocalServiceImpl 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.
deleteCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRuleId
- the primary key of the commerce discount rulePortalException
- if a commerce discount rule with the primary key could not be foundpublic void deleteCommerceDiscountRules(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceDiscountRules
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface CommerceDiscountRuleLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CommerceDiscountRuleLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommerceDiscountRuleLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommerceDiscountRuleLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommerceDiscountRuleLocalService
dynamicQuery
- 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.discount.model.impl.CommerceDiscountRuleModelImpl
.
dynamicQuery
in interface CommerceDiscountRuleLocalService
dynamicQuery
- 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.discount.model.impl.CommerceDiscountRuleModelImpl
.
dynamicQuery
in interface CommerceDiscountRuleLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface CommerceDiscountRuleLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface CommerceDiscountRuleLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommerceDiscountRule fetchCommerceDiscountRule(long commerceDiscountRuleId)
fetchCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommerceDiscountRuleLocalService
public CommerceDiscountRule getCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRuleId
- the primary key of the commerce discount rulePortalException
- if a commerce discount rule with the primary key could not be foundpublic java.util.List<CommerceDiscountRule> getCommerceDiscountRules(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.discount.model.impl.CommerceDiscountRuleModelImpl
.
getCommerceDiscountRules
in interface CommerceDiscountRuleLocalService
start
- the lower bound of the range of commerce discount rulesend
- the upper bound of the range of commerce discount rules (not inclusive)public java.util.List<CommerceDiscountRule> getCommerceDiscountRules(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
getCommerceDiscountRules
in interface CommerceDiscountRuleLocalService
public java.util.List<CommerceDiscountRule> getCommerceDiscountRules(long commerceDiscountId, java.lang.String name, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
getCommerceDiscountRules
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public int getCommerceDiscountRulesCount()
getCommerceDiscountRulesCount
in interface CommerceDiscountRuleLocalService
public int getCommerceDiscountRulesCount(long commerceDiscountId)
getCommerceDiscountRulesCount
in interface CommerceDiscountRuleLocalService
public int getCommerceDiscountRulesCount(long commerceDiscountId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
getCommerceDiscountRulesCount
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommerceDiscountRuleLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommerceDiscountRuleLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommerceDiscountRuleLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceDiscountRule updateCommerceDiscountRule(CommerceDiscountRule commerceDiscountRule)
Important: Inspect CommerceDiscountRuleLocalServiceImpl 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.
updateCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
commerceDiscountRule
- the commerce discount rulepublic CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, java.lang.String type, java.lang.String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, java.lang.String name, java.lang.String type, java.lang.String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceDiscountRule
in interface CommerceDiscountRuleLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceDiscountRuleLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountRuleLocalService>
public void setWrappedService(CommerceDiscountRuleLocalService commerceDiscountRuleLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountRuleLocalService>