Class CommerceAddressRestrictionLocalServiceWrapper
- All Implemented Interfaces:
CommerceAddressRestrictionLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
CommerceAddressRestrictionLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommerceAddressRestrictionLocalServiceWrapper
(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCommerceAddressRestriction
(long userId, long groupId, String className, long classPK, long countryId) addCommerceAddressRestriction
(CommerceAddressRestriction commerceAddressRestriction) Adds the commerce address restriction to the database.addCommerceAddressRestriction
(String className, long classPK, long countryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Athanasius (7.3.x)createCommerceAddressRestriction
(long commerceAddressRestrictionId) Creates a new commerce address restriction with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCommerceAddressRestriction
(long commerceAddressRestrictionId) Deletes the commerce address restriction with the primary key from the database.deleteCommerceAddressRestriction
(CommerceAddressRestriction commerceAddressRestriction) Deletes the commerce address restriction from the database.void
deleteCommerceAddressRestrictions
(long countryId) void
deleteCommerceAddressRestrictions
(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
<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.fetchCommerceAddressRestriction
(long commerceAddressRestrictionId) fetchCommerceAddressRestriction
(String className, long classPK, long countryId) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCommerceAddressRestriction
(long commerceAddressRestrictionId) Returns the commerce address restriction with the primary key.getCommerceAddressRestrictions
(int start, int end) Returns a range of all the commerce address restrictions.getCommerceAddressRestrictions
(String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) int
Returns the number of commerce address restrictions.int
getCommerceAddressRestrictionsCount
(String className, long classPK) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) boolean
isCommerceAddressRestricted
(String className, long classPK, long countryId) boolean
isCommerceShippingMethodRestricted
(long commerceShippingMethodId, long countryId) void
setWrappedService
(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) updateCommerceAddressRestriction
(CommerceAddressRestriction commerceAddressRestriction) Updates the commerce address restriction in the database or adds it if it does not yet exist.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
-
CommerceAddressRestrictionLocalServiceWrapper
public CommerceAddressRestrictionLocalServiceWrapper() -
CommerceAddressRestrictionLocalServiceWrapper
public CommerceAddressRestrictionLocalServiceWrapper(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService)
-
-
Method Details
-
addCommerceAddressRestriction
public CommerceAddressRestriction addCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction) Adds the commerce address restriction to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestriction
- the commerce address restriction- Returns:
- the commerce address restriction that was added
-
addCommerceAddressRestriction
public CommerceAddressRestriction addCommerceAddressRestriction(long userId, long groupId, String className, long classPK, long countryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceAddressRestriction
@Deprecated public CommerceAddressRestriction addCommerceAddressRestriction(String className, long classPK, long countryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
addCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCommerceAddressRestriction
public CommerceAddressRestriction createCommerceAddressRestriction(long commerceAddressRestrictionId) Creates a new commerce address restriction with the primary key. Does not add the commerce address restriction to the database.- Specified by:
createCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestrictionId
- the primary key for the new commerce address restriction- Returns:
- the new commerce address restriction
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCommerceAddressRestrictionLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceAddressRestriction
public CommerceAddressRestriction deleteCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction) Deletes the commerce address restriction from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestriction
- the commerce address restriction- Returns:
- the commerce address restriction that was removed
-
deleteCommerceAddressRestriction
public CommerceAddressRestriction deleteCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce address restriction with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestrictionId
- the primary key of the commerce address restriction- Returns:
- the commerce address restriction that was removed
- Throws:
PortalException
- if a commerce address restriction with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCommerceAddressRestrictions
public void deleteCommerceAddressRestrictions(long countryId) - Specified by:
deleteCommerceAddressRestrictions
in interfaceCommerceAddressRestrictionLocalService
-
deleteCommerceAddressRestrictions
- Specified by:
deleteCommerceAddressRestrictions
in interfaceCommerceAddressRestrictionLocalService
-
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 interfaceCommerceAddressRestrictionLocalService
- 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 interfaceCommerceAddressRestrictionLocalService
- 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 interfaceCommerceAddressRestrictionLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommerceAddressRestrictionLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCommerceAddressRestrictionLocalService
- 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.model.impl.CommerceAddressRestrictionModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceAddressRestrictionLocalService
- 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.model.impl.CommerceAddressRestrictionModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceAddressRestrictionLocalService
- 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 interfaceCommerceAddressRestrictionLocalService
- 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 interfaceCommerceAddressRestrictionLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCommerceAddressRestriction
public CommerceAddressRestriction fetchCommerceAddressRestriction(long commerceAddressRestrictionId) - Specified by:
fetchCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
-
fetchCommerceAddressRestriction
public CommerceAddressRestriction fetchCommerceAddressRestriction(String className, long classPK, long countryId) - Specified by:
fetchCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommerceAddressRestrictionLocalService
-
getCommerceAddressRestriction
public CommerceAddressRestriction getCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce address restriction with the primary key.- Specified by:
getCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestrictionId
- the primary key of the commerce address restriction- Returns:
- the commerce address restriction
- Throws:
PortalException
- if a commerce address restriction with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceAddressRestrictions
Returns a range of all the commerce address restrictions.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.model.impl.CommerceAddressRestrictionModelImpl
.- Specified by:
getCommerceAddressRestrictions
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
start
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)- Returns:
- the range of commerce address restrictions
-
getCommerceAddressRestrictions
public List<CommerceAddressRestriction> getCommerceAddressRestrictions(String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) - Specified by:
getCommerceAddressRestrictions
in interfaceCommerceAddressRestrictionLocalService
-
getCommerceAddressRestrictionsCount
public int getCommerceAddressRestrictionsCount()Returns the number of commerce address restrictions.- Specified by:
getCommerceAddressRestrictionsCount
in interfaceCommerceAddressRestrictionLocalService
- Returns:
- the number of commerce address restrictions
-
getCommerceAddressRestrictionsCount
- Specified by:
getCommerceAddressRestrictionsCount
in interfaceCommerceAddressRestrictionLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommerceAddressRestrictionLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommerceAddressRestrictionLocalService
- 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 interfaceCommerceAddressRestrictionLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
isCommerceAddressRestricted
- Specified by:
isCommerceAddressRestricted
in interfaceCommerceAddressRestrictionLocalService
-
isCommerceShippingMethodRestricted
public boolean isCommerceShippingMethodRestricted(long commerceShippingMethodId, long countryId) - Specified by:
isCommerceShippingMethodRestricted
in interfaceCommerceAddressRestrictionLocalService
-
updateCommerceAddressRestriction
public CommerceAddressRestriction updateCommerceAddressRestriction(CommerceAddressRestriction commerceAddressRestriction) Updates the commerce address restriction in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateCommerceAddressRestriction
in interfaceCommerceAddressRestrictionLocalService
- Parameters:
commerceAddressRestriction
- the commerce address restriction- Returns:
- the commerce address restriction that was updated
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
-
setWrappedService
public void setWrappedService(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) - Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
-