public class RegionLocalServiceWrapper extends Object implements RegionLocalService, ServiceWrapper<RegionLocalService>
RegionLocalService.RegionLocalService| Constructor and Description |
|---|
RegionLocalServiceWrapper() |
RegionLocalServiceWrapper(RegionLocalService regionLocalService) |
| Modifier and Type | Method and Description |
|---|---|
Region |
addRegion(long countryId,
boolean active,
String name,
double position,
String regionCode,
ServiceContext serviceContext) |
Region |
addRegion(Region region)
Adds the region to the database.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
Region |
createRegion(long regionId)
Creates a new region with the primary key.
|
void |
deleteCountryRegions(long countryId) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
Region |
deleteRegion(long regionId)
Deletes the region with the primary key from the database.
|
Region |
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) |
DynamicQuery |
dynamicQuery() |
<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.
|
Region |
fetchRegion(long regionId) |
Region |
fetchRegion(long countryId,
String regionCode) |
Region |
fetchRegionByUuidAndCompanyId(String uuid,
long companyId)
Returns the region with the matching UUID and company.
|
RegionLocalization |
fetchRegionLocalization(long regionId,
String languageId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
Region |
getRegion(long regionId)
Returns the region with the primary key.
|
Region |
getRegion(long countryId,
String regionCode) |
Region |
getRegionByUuidAndCompanyId(String uuid,
long companyId)
Returns the region with the matching UUID and company.
|
RegionLocalization |
getRegionLocalization(long regionId,
String languageId) |
List<RegionLocalization> |
getRegionLocalizations(long regionId) |
List<Region> |
getRegions(int start,
int end)
Returns a range of all the regions.
|
List<Region> |
getRegions(long countryId,
boolean active) |
List<Region> |
getRegions(long countryId,
boolean active,
int start,
int end,
OrderByComparator<Region> orderByComparator) |
List<Region> |
getRegions(long countryId,
int start,
int end,
OrderByComparator<Region> orderByComparator) |
List<Region> |
getRegions(long companyId,
String a2,
boolean active) |
int |
getRegionsCount()
Returns the number of regions.
|
int |
getRegionsCount(long countryId) |
int |
getRegionsCount(long countryId,
boolean active) |
RegionLocalService |
getWrappedService() |
void |
setWrappedService(RegionLocalService regionLocalService) |
Region |
updateActive(long regionId,
boolean active) |
Region |
updateRegion(long regionId,
boolean active,
String name,
double position,
String regionCode) |
Region |
updateRegion(Region region)
Updates the region in the database or adds it if it does not yet exist.
|
RegionLocalization |
updateRegionLocalization(Region region,
String languageId,
String title) |
List<RegionLocalization> |
updateRegionLocalizations(Region region,
Map<String,String> titleMap) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasePersistencepublic RegionLocalServiceWrapper()
public RegionLocalServiceWrapper(RegionLocalService regionLocalService)
public Region addRegion(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) throws PortalException
addRegion in interface RegionLocalServicePortalExceptionpublic Region addRegion(Region region)
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.
addRegion in interface RegionLocalServiceregion - the regionpublic PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicecreatePersistedModel in interface RegionLocalServicePortalExceptionpublic Region createRegion(long regionId)
createRegion in interface RegionLocalServiceregionId - the primary key for the new regionpublic void deleteCountryRegions(long countryId)
deleteCountryRegions in interface RegionLocalServicepublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface RegionLocalServicePortalExceptionpublic Region deleteRegion(long regionId) throws PortalException
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.
deleteRegion in interface RegionLocalServiceregionId - the primary key of the regionPortalException - if a region with the primary key could not be foundpublic Region deleteRegion(Region region)
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.
deleteRegion in interface RegionLocalServiceregion - the regionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface PersistedModelLocalServicedslQuery in interface RegionLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface PersistedModelLocalServicedslQueryCount in interface RegionLocalServicepublic DynamicQuery dynamicQuery()
dynamicQuery in interface RegionLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface RegionLocalServicedynamicQuery - the dynamic querypublic <T> List<T> dynamicQuery(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.portal.model.impl.RegionModelImpl.
dynamicQuery in interface RegionLocalServicedynamicQuery - 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> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, 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.portal.model.impl.RegionModelImpl.
dynamicQuery in interface RegionLocalServicedynamicQuery - 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(DynamicQuery dynamicQuery)
dynamicQueryCount in interface RegionLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount in interface RegionLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic Region fetchRegion(long regionId)
fetchRegion in interface RegionLocalServicepublic Region fetchRegion(long countryId, String regionCode)
fetchRegion in interface RegionLocalServicepublic Region fetchRegionByUuidAndCompanyId(String uuid, long companyId)
fetchRegionByUuidAndCompanyId in interface RegionLocalServiceuuid - the region's UUIDcompanyId - the primary key of the companynull if a matching region could not be foundpublic RegionLocalization fetchRegionLocalization(long regionId, String languageId)
fetchRegionLocalization in interface RegionLocalServicepublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface RegionLocalServicepublic ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface RegionLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface RegionLocalServicepublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface RegionLocalServicepublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface RegionLocalServicePortalExceptionpublic Region getRegion(long regionId) throws PortalException
getRegion in interface RegionLocalServiceregionId - the primary key of the regionPortalException - if a region with the primary key could not be foundpublic Region getRegion(long countryId, String regionCode) throws PortalException
getRegion in interface RegionLocalServicePortalExceptionpublic Region getRegionByUuidAndCompanyId(String uuid, long companyId) throws PortalException
getRegionByUuidAndCompanyId in interface RegionLocalServiceuuid - the region's UUIDcompanyId - the primary key of the companyPortalException - if a matching region could not be foundpublic RegionLocalization getRegionLocalization(long regionId, String languageId) throws PortalException
getRegionLocalization in interface RegionLocalServicePortalExceptionpublic List<RegionLocalization> getRegionLocalizations(long regionId)
getRegionLocalizations in interface RegionLocalServicepublic List<Region> getRegions(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.portal.model.impl.RegionModelImpl.
getRegions in interface RegionLocalServicestart - the lower bound of the range of regionsend - the upper bound of the range of regions (not inclusive)public List<Region> getRegions(long countryId, boolean active) throws PortalException
getRegions in interface RegionLocalServicePortalExceptionpublic List<Region> getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator)
getRegions in interface RegionLocalServicepublic List<Region> getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator)
getRegions in interface RegionLocalServicepublic List<Region> getRegions(long companyId, String a2, boolean active) throws PortalException
getRegions in interface RegionLocalServicePortalExceptionpublic int getRegionsCount()
getRegionsCount in interface RegionLocalServicepublic int getRegionsCount(long countryId)
getRegionsCount in interface RegionLocalServicepublic int getRegionsCount(long countryId,
boolean active)
getRegionsCount in interface RegionLocalServicepublic Region updateActive(long regionId, boolean active) throws PortalException
updateActive in interface RegionLocalServicePortalExceptionpublic Region updateRegion(long regionId, boolean active, String name, double position, String regionCode) throws PortalException
updateRegion in interface RegionLocalServicePortalExceptionpublic Region updateRegion(Region region)
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.
updateRegion in interface RegionLocalServiceregion - the regionpublic RegionLocalization updateRegionLocalization(Region region, String languageId, String title) throws PortalException
updateRegionLocalization in interface RegionLocalServicePortalExceptionpublic List<RegionLocalization> updateRegionLocalizations(Region region, Map<String,String> titleMap) throws PortalException
updateRegionLocalizations in interface RegionLocalServicePortalExceptionpublic RegionLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<RegionLocalService>public void setWrappedService(RegionLocalService regionLocalService)
setWrappedService in interface ServiceWrapper<RegionLocalService>