@ProviderType public class CommerceAddressRestrictionLocalServiceWrapper extends java.lang.Object implements CommerceAddressRestrictionLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
CommerceAddressRestrictionLocalService.CommerceAddressRestrictionLocalService| Constructor and Description |
|---|
CommerceAddressRestrictionLocalServiceWrapper(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) |
| Modifier and Type | Method and Description |
|---|---|
CommerceAddressRestriction |
addCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Adds the commerce address restriction to the database.
|
CommerceAddressRestriction |
addCommerceAddressRestriction(java.lang.String className,
long classPK,
long commerceCountryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceAddressRestriction |
createCommerceAddressRestriction(long commerceAddressRestrictionId)
Creates a new commerce address restriction with the primary key.
|
CommerceAddressRestriction |
deleteCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Deletes the commerce address restriction from the database.
|
CommerceAddressRestriction |
deleteCommerceAddressRestriction(long commerceAddressRestrictionId)
Deletes the commerce address restriction with the primary key from the database.
|
void |
deleteCommerceAddressRestrictions(long commerceCountryId) |
void |
deleteCommerceAddressRestrictions(java.lang.String className,
long classPK) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
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.
|
CommerceAddressRestriction |
fetchCommerceAddressRestriction(long commerceAddressRestrictionId) |
CommerceAddressRestriction |
fetchCommerceAddressRestriction(java.lang.String className,
long classPK,
long commerceCountryId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommerceAddressRestriction |
getCommerceAddressRestriction(long commerceAddressRestrictionId)
Returns the commerce address restriction with the primary key.
|
java.util.List<CommerceAddressRestriction> |
getCommerceAddressRestrictions(int start,
int end)
Returns a range of all the commerce address restrictions.
|
java.util.List<CommerceAddressRestriction> |
getCommerceAddressRestrictions(java.lang.String className,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) |
int |
getCommerceAddressRestrictionsCount()
Returns the number of commerce address restrictions.
|
int |
getCommerceAddressRestrictionsCount(java.lang.String className,
long classPK) |
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) |
CommerceAddressRestrictionLocalService |
getWrappedService() |
boolean |
isCommerceAddressRestricted(java.lang.String className,
long classPK,
long commerceCountryId) |
boolean |
isCommercePaymentMethodRestricted(long commercePaymentMethodId,
long commerceCountryId) |
boolean |
isCommerceShippingMethodRestricted(long commerceShippingMethodId,
long commerceCountryId) |
void |
setWrappedService(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) |
CommerceAddressRestriction |
updateCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Updates the commerce address restriction in the database or adds it if it does not yet exist.
|
public CommerceAddressRestrictionLocalServiceWrapper(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService)
public CommerceAddressRestriction addCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
addCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestriction - the commerce address restrictionpublic CommerceAddressRestriction addCommerceAddressRestriction(java.lang.String className, long classPK, long commerceCountryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceAddressRestriction createCommerceAddressRestriction(long commerceAddressRestrictionId)
createCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestrictionId - the primary key for the new commerce address restrictionpublic CommerceAddressRestriction deleteCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
deleteCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestriction - the commerce address restrictionpublic CommerceAddressRestriction deleteCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestrictionId - the primary key of the commerce address restrictionPortalException - if a commerce address restriction with the primary key could not be foundpublic void deleteCommerceAddressRestrictions(long commerceCountryId)
deleteCommerceAddressRestrictions in interface CommerceAddressRestrictionLocalServicepublic void deleteCommerceAddressRestrictions(java.lang.String className,
long classPK)
deleteCommerceAddressRestrictions in interface CommerceAddressRestrictionLocalServicepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface CommerceAddressRestrictionLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface CommerceAddressRestrictionLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface CommerceAddressRestrictionLocalServicedynamicQuery - 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface CommerceAddressRestrictionLocalServicedynamicQuery - 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface CommerceAddressRestrictionLocalServicedynamicQuery - 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 CommerceAddressRestrictionLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface CommerceAddressRestrictionLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic CommerceAddressRestriction fetchCommerceAddressRestriction(long commerceAddressRestrictionId)
fetchCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicepublic CommerceAddressRestriction fetchCommerceAddressRestriction(java.lang.String className, long classPK, long commerceCountryId)
fetchCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface CommerceAddressRestrictionLocalServicepublic CommerceAddressRestriction getCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestrictionId - the primary key of the commerce address restrictionPortalException - if a commerce address restriction with the primary key could not be foundpublic java.util.List<CommerceAddressRestriction> getCommerceAddressRestrictions(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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getCommerceAddressRestrictions in interface CommerceAddressRestrictionLocalServicestart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)public java.util.List<CommerceAddressRestriction> getCommerceAddressRestrictions(java.lang.String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
getCommerceAddressRestrictions in interface CommerceAddressRestrictionLocalServicepublic int getCommerceAddressRestrictionsCount()
getCommerceAddressRestrictionsCount in interface CommerceAddressRestrictionLocalServicepublic int getCommerceAddressRestrictionsCount(java.lang.String className,
long classPK)
getCommerceAddressRestrictionsCount in interface CommerceAddressRestrictionLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface CommerceAddressRestrictionLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface CommerceAddressRestrictionLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface CommerceAddressRestrictionLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isCommerceAddressRestricted(java.lang.String className,
long classPK,
long commerceCountryId)
isCommerceAddressRestricted in interface CommerceAddressRestrictionLocalServicepublic boolean isCommercePaymentMethodRestricted(long commercePaymentMethodId,
long commerceCountryId)
isCommercePaymentMethodRestricted in interface CommerceAddressRestrictionLocalServicepublic boolean isCommerceShippingMethodRestricted(long commerceShippingMethodId,
long commerceCountryId)
isCommerceShippingMethodRestricted in interface CommerceAddressRestrictionLocalServicepublic CommerceAddressRestriction updateCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
updateCommerceAddressRestriction in interface CommerceAddressRestrictionLocalServicecommerceAddressRestriction - the commerce address restrictionpublic CommerceAddressRestrictionLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>public void setWrappedService(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>