public class CommerceAddressRestrictionLocalServiceWrapper extends java.lang.Object implements CommerceAddressRestrictionLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
CommerceAddressRestrictionLocalService
.CommerceAddressRestrictionLocalService
Constructor and Description |
---|
CommerceAddressRestrictionLocalServiceWrapper() |
CommerceAddressRestrictionLocalServiceWrapper(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) |
Modifier and Type | Method and Description |
---|---|
CommerceAddressRestriction |
addCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Adds the commerce address restriction to the database.
|
CommerceAddressRestriction |
addCommerceAddressRestriction(long userId,
long groupId,
java.lang.String className,
long classPK,
long countryId) |
CommerceAddressRestriction |
addCommerceAddressRestriction(java.lang.String className,
long classPK,
long countryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x)
|
CommerceAddressRestriction |
createCommerceAddressRestriction(long commerceAddressRestrictionId)
Creates a new commerce address restriction with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
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 countryId) |
void |
deleteCommerceAddressRestrictions(java.lang.String className,
long classPK) |
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.
|
CommerceAddressRestriction |
fetchCommerceAddressRestriction(long commerceAddressRestrictionId) |
CommerceAddressRestriction |
fetchCommerceAddressRestriction(java.lang.String className,
long classPK,
long countryId) |
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 countryId) |
boolean |
isCommerceShippingMethodRestricted(long commerceShippingMethodId,
long countryId) |
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()
public CommerceAddressRestrictionLocalServiceWrapper(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService)
public CommerceAddressRestriction addCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Important: Inspect CommerceAddressRestrictionLocalServiceImpl 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.
addCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestriction
- the commerce address restrictionpublic CommerceAddressRestriction addCommerceAddressRestriction(long userId, long groupId, java.lang.String className, long classPK, long countryId) throws com.liferay.portal.kernel.exception.PortalException
addCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommerceAddressRestriction addCommerceAddressRestriction(java.lang.String className, long classPK, long countryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceAddressRestriction createCommerceAddressRestriction(long commerceAddressRestrictionId)
createCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestrictionId
- the primary key for the new commerce address restrictionpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommerceAddressRestrictionLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceAddressRestriction deleteCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Important: Inspect CommerceAddressRestrictionLocalServiceImpl 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.
deleteCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestriction
- the commerce address restrictionpublic CommerceAddressRestriction deleteCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceAddressRestrictionLocalServiceImpl 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.
deleteCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestrictionId
- the primary key of the commerce address restrictionPortalException
- if a commerce address restriction with the primary key could not be foundpublic void deleteCommerceAddressRestrictions(long countryId)
deleteCommerceAddressRestrictions
in interface CommerceAddressRestrictionLocalService
public void deleteCommerceAddressRestrictions(java.lang.String className, long classPK)
deleteCommerceAddressRestrictions
in interface CommerceAddressRestrictionLocalService
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 CommerceAddressRestrictionLocalService
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 CommerceAddressRestrictionLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommerceAddressRestrictionLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommerceAddressRestrictionLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommerceAddressRestrictionLocalService
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.model.impl.CommerceAddressRestrictionModelImpl
.
dynamicQuery
in interface CommerceAddressRestrictionLocalService
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.model.impl.CommerceAddressRestrictionModelImpl
.
dynamicQuery
in interface CommerceAddressRestrictionLocalService
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 CommerceAddressRestrictionLocalService
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 CommerceAddressRestrictionLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommerceAddressRestriction fetchCommerceAddressRestriction(long commerceAddressRestrictionId)
fetchCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
public CommerceAddressRestriction fetchCommerceAddressRestriction(java.lang.String className, long classPK, long countryId)
fetchCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommerceAddressRestrictionLocalService
public CommerceAddressRestriction getCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestrictionId
- 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 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.model.impl.CommerceAddressRestrictionModelImpl
.
getCommerceAddressRestrictions
in interface CommerceAddressRestrictionLocalService
start
- 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 CommerceAddressRestrictionLocalService
public int getCommerceAddressRestrictionsCount()
getCommerceAddressRestrictionsCount
in interface CommerceAddressRestrictionLocalService
public int getCommerceAddressRestrictionsCount(java.lang.String className, long classPK)
getCommerceAddressRestrictionsCount
in interface CommerceAddressRestrictionLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommerceAddressRestrictionLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommerceAddressRestrictionLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommerceAddressRestrictionLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public boolean isCommerceAddressRestricted(java.lang.String className, long classPK, long countryId)
isCommerceAddressRestricted
in interface CommerceAddressRestrictionLocalService
public boolean isCommerceShippingMethodRestricted(long commerceShippingMethodId, long countryId)
isCommerceShippingMethodRestricted
in interface CommerceAddressRestrictionLocalService
public CommerceAddressRestriction updateCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction)
Important: Inspect CommerceAddressRestrictionLocalServiceImpl 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.
updateCommerceAddressRestriction
in interface CommerceAddressRestrictionLocalService
commerceAddressRestriction
- 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>