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.void
deleteCountryRegions
(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> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(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) int
Returns the number of regions.int
getRegionsCount
(long countryId) int
getRegionsCount
(long countryId, boolean active) searchRegions
(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) void
setWrappedService
(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, wait
Methods 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:
addRegion
in 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:
addRegion
in interfaceRegionLocalService
- Parameters:
region
- the region- Returns:
- the region that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceRegionLocalService
- Throws:
PortalException
PortalException
-
createRegion
Creates a new region with the primary key. Does not add the region to the database.- Specified by:
createRegion
in interfaceRegionLocalService
- Parameters:
regionId
- the primary key for the new region- Returns:
- the new region
-
deleteCountryRegions
public void deleteCountryRegions(long countryId) - Specified by:
deleteCountryRegions
in interfaceRegionLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceRegionLocalService
- Throws:
PortalException
PortalException
-
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:
deleteRegion
in 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:
deleteRegion
in 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:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceRegionLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceRegionLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceRegionLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - 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.portal.model.impl.RegionModelImpl
.- Specified by:
dynamicQuery
in 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 - 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.portal.model.impl.RegionModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchRegion
in interfaceRegionLocalService
-
fetchRegion
- Specified by:
fetchRegion
in interfaceRegionLocalService
-
fetchRegionByUuidAndCompanyId
Returns the region with the matching UUID and company.- Specified by:
fetchRegionByUuidAndCompanyId
in interfaceRegionLocalService
- Parameters:
uuid
- the region's UUIDcompanyId
- the primary key of the company- Returns:
- the matching region, or
null
if a matching region could not be found
-
fetchRegionLocalization
- Specified by:
fetchRegionLocalization
in interfaceRegionLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceRegionLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceRegionLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceRegionLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceRegionLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceRegionLocalService
- Throws:
PortalException
PortalException
-
getRegion
Returns the region with the primary key.- Specified by:
getRegion
in 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:
getRegion
in interfaceRegionLocalService
- Throws:
PortalException
-
getRegionByUuidAndCompanyId
Returns the region with the matching UUID and company.- Specified by:
getRegionByUuidAndCompanyId
in 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:
getRegionLocalization
in interfaceRegionLocalService
- Throws:
PortalException
-
getRegionLocalizations
- Specified by:
getRegionLocalizations
in interfaceRegionLocalService
-
getRegions
Returns a range of all the regions.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.portal.model.impl.RegionModelImpl
.- Specified by:
getRegions
in 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:
getRegions
in interfaceRegionLocalService
- Throws:
PortalException
-
getRegions
public List<Region> getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator) - Specified by:
getRegions
in interfaceRegionLocalService
-
getRegions
public List<Region> getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator) - Specified by:
getRegions
in interfaceRegionLocalService
-
getRegions
- Specified by:
getRegions
in interfaceRegionLocalService
- Throws:
PortalException
-
getRegionsCount
public int getRegionsCount()Returns the number of regions.- Specified by:
getRegionsCount
in interfaceRegionLocalService
- Returns:
- the number of regions
-
getRegionsCount
public int getRegionsCount(long countryId) - Specified by:
getRegionsCount
in interfaceRegionLocalService
-
getRegionsCount
public int getRegionsCount(long countryId, boolean active) - Specified by:
getRegionsCount
in 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:
searchRegions
in interfaceRegionLocalService
- Throws:
PortalException
-
updateActive
- Specified by:
updateActive
in interfaceRegionLocalService
- Throws:
PortalException
-
updateRegion
public Region updateRegion(long regionId, boolean active, String name, double position, String regionCode) throws PortalException - Specified by:
updateRegion
in 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:
updateRegion
in 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:
updateRegionLocalization
in interfaceRegionLocalService
- Throws:
PortalException
-
updateRegionLocalizations
public List<RegionLocalization> updateRegionLocalizations(Region region, Map<String, String> titleMap) throws PortalException- Specified by:
updateRegionLocalizations
in interfaceRegionLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<Region>
- Specified by:
getCTPersistence
in interfaceRegionLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<Region>
- Specified by:
getModelClass
in interfaceRegionLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Region>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<Region>
- Specified by:
updateWithUnsafeFunction
in interfaceRegionLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<RegionLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<RegionLocalService>
-