Class RegionLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<Region>,PersistedModelLocalService,RegionLocalService,ServiceWrapper<RegionLocalService>
RegionLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRegion(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) Adds the region to the database.createPersistedModel(Serializable primaryKeyObj) createRegion(long regionId) Creates a new region with the primary key.voiddeleteCountryRegions(long countryId) deletePersistedModel(PersistedModel persistedModel) deleteRegion(long regionId) Deletes the region with the primary key from the database.deleteRegion(Region region) Deletes the region from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(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(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchRegion(long regionId) fetchRegion(long countryId, String regionCode) fetchRegionByUuidAndCompanyId(String uuid, long companyId) Returns the region with the matching UUID and company.fetchRegionLocalization(long regionId, String languageId) getExportActionableDynamicQuery(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getRegion(long regionId) Returns the region with the primary key.getRegionByUuidAndCompanyId(String uuid, long companyId) Returns the region with the matching UUID and company.getRegionLocalization(long regionId, String languageId) getRegionLocalizations(long regionId) getRegions(int start, int end) Returns a range of all the regions.getRegions(long countryId, boolean active) getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator) getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator) getRegions(long companyId, String a2, boolean active) intReturns the number of regions.intgetRegionsCount(long countryId) intgetRegionsCount(long countryId, boolean active) searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) voidsetWrappedService(RegionLocalService regionLocalService) updateActive(long regionId, boolean active) updateRegion(long regionId, boolean active, String name, double position, String regionCode) updateRegion(Region region) Updates the region in the database or adds it if it does not yet exist.updateRegionLocalization(Region region, String languageId, String title) updateRegionLocalizations(Region region, Map<String, String> titleMap) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Region>, R, E> updateUnsafeFunction) 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
-
RegionLocalServiceWrapper
public RegionLocalServiceWrapper() -
RegionLocalServiceWrapper
-
-
Method Details
-
addRegion
public Region addRegion(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) throws PortalException - Specified by:
addRegionin interfaceRegionLocalService- Throws:
PortalException
-
addRegion
Adds the region to the database. Also notifies the appropriate model listeners.Important: Inspect RegionLocalServiceImpl 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:
addRegionin interfaceRegionLocalService- Parameters:
region- the region- Returns:
- the region that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceRegionLocalService- Throws:
PortalExceptionPortalException
-
createRegion
Creates a new region with the primary key. Does not add the region to the database.- Specified by:
createRegionin interfaceRegionLocalService- Parameters:
regionId- the primary key for the new region- Returns:
- the new region
-
deleteCountryRegions
public void deleteCountryRegions(long countryId) - Specified by:
deleteCountryRegionsin interfaceRegionLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceRegionLocalService- Throws:
PortalExceptionPortalException
-
deleteRegion
Deletes the region with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect RegionLocalServiceImpl 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:
deleteRegionin interfaceRegionLocalService- Parameters:
regionId- the primary key of the region- Returns:
- the region that was removed
- Throws:
PortalException- if a region with the primary key could not be foundPortalException
-
deleteRegion
Deletes the region from the database. Also notifies the appropriate model listeners.Important: Inspect RegionLocalServiceImpl 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:
deleteRegionin interfaceRegionLocalService- Parameters:
region- the region- Returns:
- the region that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceRegionLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceRegionLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceRegionLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceRegionLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
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.portal.model.impl.RegionModelImpl.- Specified by:
dynamicQueryin interfaceRegionLocalService- 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(DynamicQuery dynamicQuery, int start, int end, 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.portal.model.impl.RegionModelImpl.- Specified by:
dynamicQueryin interfaceRegionLocalService- 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
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceRegionLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceRegionLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchRegion
- Specified by:
fetchRegionin interfaceRegionLocalService
-
fetchRegion
- Specified by:
fetchRegionin interfaceRegionLocalService
-
fetchRegionByUuidAndCompanyId
Returns the region with the matching UUID and company.- Specified by:
fetchRegionByUuidAndCompanyIdin interfaceRegionLocalService- Parameters:
uuid- the region's UUIDcompanyId- the primary key of the company- Returns:
- the matching region, or
nullif a matching region could not be found
-
fetchRegionLocalization
- Specified by:
fetchRegionLocalizationin interfaceRegionLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceRegionLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceRegionLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceRegionLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceRegionLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceRegionLocalService- Throws:
PortalExceptionPortalException
-
getRegion
Returns the region with the primary key.- Specified by:
getRegionin interfaceRegionLocalService- Parameters:
regionId- the primary key of the region- Returns:
- the region
- Throws:
PortalException- if a region with the primary key could not be foundPortalException
-
getRegion
- Specified by:
getRegionin interfaceRegionLocalService- Throws:
PortalException
-
getRegionByUuidAndCompanyId
Returns the region with the matching UUID and company.- Specified by:
getRegionByUuidAndCompanyIdin interfaceRegionLocalService- Parameters:
uuid- the region's UUIDcompanyId- the primary key of the company- Returns:
- the matching region
- Throws:
PortalException- if a matching region could not be foundPortalException
-
getRegionLocalization
public RegionLocalization getRegionLocalization(long regionId, String languageId) throws PortalException - Specified by:
getRegionLocalizationin interfaceRegionLocalService- Throws:
PortalException
-
getRegionLocalizations
- Specified by:
getRegionLocalizationsin interfaceRegionLocalService
-
getRegions
Returns a range of all the regions.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.portal.model.impl.RegionModelImpl.- Specified by:
getRegionsin interfaceRegionLocalService- Parameters:
start- the lower bound of the range of regionsend- the upper bound of the range of regions (not inclusive)- Returns:
- the range of regions
-
getRegions
- Specified by:
getRegionsin interfaceRegionLocalService- Throws:
PortalException
-
getRegions
public List<Region> getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator) - Specified by:
getRegionsin interfaceRegionLocalService
-
getRegions
public List<Region> getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator) - Specified by:
getRegionsin interfaceRegionLocalService
-
getRegions
- Specified by:
getRegionsin interfaceRegionLocalService- Throws:
PortalException
-
getRegionsCount
public int getRegionsCount()Returns the number of regions.- Specified by:
getRegionsCountin interfaceRegionLocalService- Returns:
- the number of regions
-
getRegionsCount
public int getRegionsCount(long countryId) - Specified by:
getRegionsCountin interfaceRegionLocalService
-
getRegionsCount
public int getRegionsCount(long countryId, boolean active) - Specified by:
getRegionsCountin interfaceRegionLocalService
-
searchRegions
public BaseModelSearchResult<Region> searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) throws PortalException- Specified by:
searchRegionsin interfaceRegionLocalService- Throws:
PortalException
-
updateActive
- Specified by:
updateActivein interfaceRegionLocalService- Throws:
PortalException
-
updateRegion
public Region updateRegion(long regionId, boolean active, String name, double position, String regionCode) throws PortalException - Specified by:
updateRegionin interfaceRegionLocalService- Throws:
PortalException
-
updateRegion
Updates the region in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect RegionLocalServiceImpl 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:
updateRegionin interfaceRegionLocalService- Parameters:
region- the region- Returns:
- the region that was updated
-
updateRegionLocalization
public RegionLocalization updateRegionLocalization(Region region, String languageId, String title) throws PortalException - Specified by:
updateRegionLocalizationin interfaceRegionLocalService- Throws:
PortalException
-
updateRegionLocalizations
public List<RegionLocalization> updateRegionLocalizations(Region region, Map<String, String> titleMap) throws PortalException- Specified by:
updateRegionLocalizationsin interfaceRegionLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<Region>- Specified by:
getCTPersistencein interfaceRegionLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<Region>- Specified by:
getModelClassin interfaceRegionLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Region>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<Region>- Specified by:
updateWithUnsafeFunctionin interfaceRegionLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<RegionLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<RegionLocalService>
-