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.PersistedModelcreatePersistedModel(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.voiddeleteCommerceAddressRestrictions(long countryId) voiddeleteCommerceAddressRestrictions(String className, long classPK) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.ActionableDynamicQuerycom.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) intReturns the number of commerce address restrictions.intgetCommerceAddressRestrictionsCount(String className, long classPK) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) booleanisCommerceAddressRestricted(String className, long classPK, long countryId) booleanisCommerceShippingMethodRestricted(long commerceShippingMethodId, long countryId) voidsetWrappedService(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, waitMethods 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:
addCommerceAddressRestrictionin 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:
addCommerceAddressRestrictionin 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:
addCommerceAddressRestrictionin 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:
createCommerceAddressRestrictionin 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:
createPersistedModelin interfaceCommerceAddressRestrictionLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
deleteCommerceAddressRestrictionin 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:
deleteCommerceAddressRestrictionin 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:
deleteCommerceAddressRestrictionsin interfaceCommerceAddressRestrictionLocalService
-
deleteCommerceAddressRestrictions
- Specified by:
deleteCommerceAddressRestrictionsin 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:
deletePersistedModelin interfaceCommerceAddressRestrictionLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceCommerceAddressRestrictionLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCommerceAddressRestrictionLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceCommerceAddressRestrictionLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchCommerceAddressRestrictionin interfaceCommerceAddressRestrictionLocalService
-
fetchCommerceAddressRestriction
public CommerceAddressRestriction fetchCommerceAddressRestriction(String className, long classPK, long countryId) - Specified by:
fetchCommerceAddressRestrictionin interfaceCommerceAddressRestrictionLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin 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:
getCommerceAddressRestrictionin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceAddressRestrictionModelImpl.- Specified by:
getCommerceAddressRestrictionsin 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:
getCommerceAddressRestrictionsin interfaceCommerceAddressRestrictionLocalService
-
getCommerceAddressRestrictionsCount
public int getCommerceAddressRestrictionsCount()Returns the number of commerce address restrictions.- Specified by:
getCommerceAddressRestrictionsCountin interfaceCommerceAddressRestrictionLocalService- Returns:
- the number of commerce address restrictions
-
getCommerceAddressRestrictionsCount
- Specified by:
getCommerceAddressRestrictionsCountin interfaceCommerceAddressRestrictionLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceCommerceAddressRestrictionLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin 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:
getPersistedModelin interfaceCommerceAddressRestrictionLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
isCommerceAddressRestricted
- Specified by:
isCommerceAddressRestrictedin interfaceCommerceAddressRestrictionLocalService
-
isCommerceShippingMethodRestricted
public boolean isCommerceShippingMethodRestricted(long commerceShippingMethodId, long countryId) - Specified by:
isCommerceShippingMethodRestrictedin 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:
updateCommerceAddressRestrictionin 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:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
-
setWrappedService
public void setWrappedService(CommerceAddressRestrictionLocalService commerceAddressRestrictionLocalService) - Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceAddressRestrictionLocalService>
-