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() |
BasePersistence<?> |
getBasePersistence() |
CTPersistence<Region> |
getCTPersistence() |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<Region> |
getModelClass() |
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() |
BaseModelSearchResult<Region> |
searchRegions(long companyId,
Boolean active,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Region> orderByComparator) |
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) |
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Region>,R,E> updateUnsafeFunction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetchPersistedModel
public 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 RegionLocalService
PortalException
public 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 RegionLocalService
region
- the regionpublic PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel
in interface PersistedModelLocalService
createPersistedModel
in interface RegionLocalService
PortalException
public Region createRegion(long regionId)
createRegion
in interface RegionLocalService
regionId
- the primary key for the new regionpublic void deleteCountryRegions(long countryId)
deleteCountryRegions
in interface RegionLocalService
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
deletePersistedModel
in interface RegionLocalService
PortalException
public 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 RegionLocalService
regionId
- 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 RegionLocalService
region
- the regionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface PersistedModelLocalService
dslQuery
in interface RegionLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface PersistedModelLocalService
dslQueryCount
in interface RegionLocalService
public DynamicQuery dynamicQuery()
dynamicQuery
in interface RegionLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface RegionLocalService
dynamicQuery
- 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 RegionLocalService
dynamicQuery
- 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 RegionLocalService
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 (optionally null
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface RegionLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface RegionLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic Region fetchRegion(long regionId)
fetchRegion
in interface RegionLocalService
public Region fetchRegion(long countryId, String regionCode)
fetchRegion
in interface RegionLocalService
public Region fetchRegionByUuidAndCompanyId(String uuid, long companyId)
fetchRegionByUuidAndCompanyId
in interface RegionLocalService
uuid
- 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 RegionLocalService
public ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface RegionLocalService
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface RegionLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface RegionLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface RegionLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface RegionLocalService
PortalException
public Region getRegion(long regionId) throws PortalException
getRegion
in interface RegionLocalService
regionId
- 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 RegionLocalService
PortalException
public Region getRegionByUuidAndCompanyId(String uuid, long companyId) throws PortalException
getRegionByUuidAndCompanyId
in interface RegionLocalService
uuid
- 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 RegionLocalService
PortalException
public List<RegionLocalization> getRegionLocalizations(long regionId)
getRegionLocalizations
in interface RegionLocalService
public 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 RegionLocalService
start
- 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 RegionLocalService
PortalException
public List<Region> getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator)
getRegions
in interface RegionLocalService
public List<Region> getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator)
getRegions
in interface RegionLocalService
public List<Region> getRegions(long companyId, String a2, boolean active) throws PortalException
getRegions
in interface RegionLocalService
PortalException
public int getRegionsCount()
getRegionsCount
in interface RegionLocalService
public int getRegionsCount(long countryId)
getRegionsCount
in interface RegionLocalService
public int getRegionsCount(long countryId, boolean active)
getRegionsCount
in interface RegionLocalService
public BaseModelSearchResult<Region> searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator<Region> orderByComparator) throws PortalException
searchRegions
in interface RegionLocalService
PortalException
public Region updateActive(long regionId, boolean active) throws PortalException
updateActive
in interface RegionLocalService
PortalException
public Region updateRegion(long regionId, boolean active, String name, double position, String regionCode) throws PortalException
updateRegion
in interface RegionLocalService
PortalException
public 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 RegionLocalService
region
- the regionpublic RegionLocalization updateRegionLocalization(Region region, String languageId, String title) throws PortalException
updateRegionLocalization
in interface RegionLocalService
PortalException
public List<RegionLocalization> updateRegionLocalizations(Region region, Map<String,String> titleMap) throws PortalException
updateRegionLocalizations
in interface RegionLocalService
PortalException
public BasePersistence<?> getBasePersistence()
getBasePersistence
in interface PersistedModelLocalService
public CTPersistence<Region> getCTPersistence()
getCTPersistence
in interface CTService<Region>
getCTPersistence
in interface RegionLocalService
public Class<Region> getModelClass()
getModelClass
in interface CTService<Region>
getModelClass
in interface RegionLocalService
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Region>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface CTService<Region>
updateWithUnsafeFunction
in interface RegionLocalService
E extends Throwable
public RegionLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<RegionLocalService>
public void setWrappedService(RegionLocalService regionLocalService)
setWrappedService
in interface ServiceWrapper<RegionLocalService>