public class CountryLocalServiceWrapper extends Object implements CountryLocalService, ServiceWrapper<CountryLocalService>
CountryLocalService
.CountryLocalService
Constructor and Description |
---|
CountryLocalServiceWrapper() |
CountryLocalServiceWrapper(CountryLocalService countryLocalService) |
Modifier and Type | Method and Description |
---|---|
Country |
addCountry(Country country)
Adds the country to the database.
|
Country |
addCountry(String a2,
String a3,
boolean active,
boolean billingAllowed,
String idd,
String name,
String number,
double position,
boolean shippingAllowed,
boolean subjectToVAT,
boolean zipRequired,
ServiceContext serviceContext) |
Country |
createCountry(long countryId)
Creates a new country with the primary key.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
void |
deleteCompanyCountries(long companyId) |
Country |
deleteCountry(Country country)
Deletes the country from the database.
|
Country |
deleteCountry(long countryId)
Deletes the country with the primary key from the database.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
<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.
|
Country |
fetchCountry(long countryId) |
Country |
fetchCountryByA2(long companyId,
String a2) |
Country |
fetchCountryByA3(long companyId,
String a3) |
Country |
fetchCountryByName(long companyId,
String name) |
Country |
fetchCountryByNumber(long companyId,
String number) |
Country |
fetchCountryByUuidAndCompanyId(String uuid,
long companyId)
Returns the country with the matching UUID and company.
|
CountryLocalization |
fetchCountryLocalization(long countryId,
String languageId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
BasePersistence<?> |
getBasePersistence() |
List<Country> |
getCompanyCountries(long companyId) |
List<Country> |
getCompanyCountries(long companyId,
boolean active) |
List<Country> |
getCompanyCountries(long companyId,
boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
List<Country> |
getCompanyCountries(long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
int |
getCompanyCountriesCount(long companyId) |
int |
getCompanyCountriesCount(long companyId,
boolean active) |
List<Country> |
getCountries(int start,
int end)
Returns a range of all the countries.
|
int |
getCountriesCount()
Returns the number of countries.
|
Country |
getCountry(long countryId)
Returns the country with the primary key.
|
Country |
getCountryByA2(long companyId,
String a2) |
Country |
getCountryByA3(long companyId,
String a3) |
Country |
getCountryByName(long companyId,
String name) |
Country |
getCountryByNumber(long companyId,
String number) |
Country |
getCountryByUuidAndCompanyId(String uuid,
long companyId)
Returns the country with the matching UUID and company.
|
CountryLocalization |
getCountryLocalization(long countryId,
String languageId) |
List<CountryLocalization> |
getCountryLocalizations(long countryId) |
CTPersistence<Country> |
getCTPersistence() |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<Country> |
getModelClass() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
CountryLocalService |
getWrappedService() |
BaseModelSearchResult<Country> |
searchCountries(long companyId,
Boolean active,
String keywords,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
void |
setWrappedService(CountryLocalService countryLocalService) |
Country |
updateActive(long countryId,
boolean active) |
Country |
updateCountry(Country country)
Updates the country in the database or adds it if it does not yet exist.
|
Country |
updateCountry(long countryId,
String a2,
String a3,
boolean active,
boolean billingAllowed,
String idd,
String name,
String number,
double position,
boolean shippingAllowed,
boolean subjectToVAT) |
CountryLocalization |
updateCountryLocalization(Country country,
String languageId,
String title) |
List<CountryLocalization> |
updateCountryLocalizations(Country country,
Map<String,String> titleMap) |
Country |
updateGroupFilterEnabled(long countryId,
boolean groupFilterEnabled) |
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Country>,R,E> updateUnsafeFunction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetchPersistedModel
public CountryLocalServiceWrapper()
public CountryLocalServiceWrapper(CountryLocalService countryLocalService)
public Country addCountry(Country country)
Important: Inspect CountryLocalServiceImpl 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.
addCountry
in interface CountryLocalService
country
- the countrypublic Country addCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) throws PortalException
addCountry
in interface CountryLocalService
PortalException
public Country createCountry(long countryId)
createCountry
in interface CountryLocalService
countryId
- the primary key for the new countrypublic PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel
in interface CountryLocalService
createPersistedModel
in interface PersistedModelLocalService
PortalException
public void deleteCompanyCountries(long companyId) throws PortalException
deleteCompanyCountries
in interface CountryLocalService
PortalException
public Country deleteCountry(Country country) throws PortalException
Important: Inspect CountryLocalServiceImpl 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.
deleteCountry
in interface CountryLocalService
country
- the countryPortalException
public Country deleteCountry(long countryId) throws PortalException
Important: Inspect CountryLocalServiceImpl 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.
deleteCountry
in interface CountryLocalService
countryId
- the primary key of the countryPortalException
- if a country with the primary key could not be foundpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface CountryLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CountryLocalService
dslQuery
in interface PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CountryLocalService
dslQueryCount
in interface PersistedModelLocalService
public DynamicQuery dynamicQuery()
dynamicQuery
in interface CountryLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface CountryLocalService
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.CountryModelImpl
.
dynamicQuery
in interface CountryLocalService
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.CountryModelImpl
.
dynamicQuery
in interface CountryLocalService
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 CountryLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface CountryLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic Country fetchCountry(long countryId)
fetchCountry
in interface CountryLocalService
public Country fetchCountryByA2(long companyId, String a2)
fetchCountryByA2
in interface CountryLocalService
public Country fetchCountryByA3(long companyId, String a3)
fetchCountryByA3
in interface CountryLocalService
public Country fetchCountryByName(long companyId, String name)
fetchCountryByName
in interface CountryLocalService
public Country fetchCountryByNumber(long companyId, String number)
fetchCountryByNumber
in interface CountryLocalService
public Country fetchCountryByUuidAndCompanyId(String uuid, long companyId)
fetchCountryByUuidAndCompanyId
in interface CountryLocalService
uuid
- the country's UUIDcompanyId
- the primary key of the companynull
if a matching country could not be foundpublic CountryLocalization fetchCountryLocalization(long countryId, String languageId)
fetchCountryLocalization
in interface CountryLocalService
public ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CountryLocalService
public List<Country> getCompanyCountries(long companyId)
getCompanyCountries
in interface CountryLocalService
public List<Country> getCompanyCountries(long companyId, boolean active)
getCompanyCountries
in interface CountryLocalService
public List<Country> getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator)
getCompanyCountries
in interface CountryLocalService
public List<Country> getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator)
getCompanyCountries
in interface CountryLocalService
public int getCompanyCountriesCount(long companyId)
getCompanyCountriesCount
in interface CountryLocalService
public int getCompanyCountriesCount(long companyId, boolean active)
getCompanyCountriesCount
in interface CountryLocalService
public List<Country> getCountries(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.CountryModelImpl
.
getCountries
in interface CountryLocalService
start
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public int getCountriesCount()
getCountriesCount
in interface CountryLocalService
public Country getCountry(long countryId) throws PortalException
getCountry
in interface CountryLocalService
countryId
- the primary key of the countryPortalException
- if a country with the primary key could not be foundpublic Country getCountryByA2(long companyId, String a2) throws PortalException
getCountryByA2
in interface CountryLocalService
PortalException
public Country getCountryByA3(long companyId, String a3) throws PortalException
getCountryByA3
in interface CountryLocalService
PortalException
public Country getCountryByName(long companyId, String name) throws PortalException
getCountryByName
in interface CountryLocalService
PortalException
public Country getCountryByNumber(long companyId, String number) throws PortalException
getCountryByNumber
in interface CountryLocalService
PortalException
public Country getCountryByUuidAndCompanyId(String uuid, long companyId) throws PortalException
getCountryByUuidAndCompanyId
in interface CountryLocalService
uuid
- the country's UUIDcompanyId
- the primary key of the companyPortalException
- if a matching country could not be foundpublic CountryLocalization getCountryLocalization(long countryId, String languageId) throws PortalException
getCountryLocalization
in interface CountryLocalService
PortalException
public List<CountryLocalization> getCountryLocalizations(long countryId)
getCountryLocalizations
in interface CountryLocalService
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface CountryLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CountryLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CountryLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface CountryLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public BaseModelSearchResult<Country> searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) throws PortalException
searchCountries
in interface CountryLocalService
PortalException
public Country updateActive(long countryId, boolean active) throws PortalException
updateActive
in interface CountryLocalService
PortalException
public Country updateCountry(Country country)
Important: Inspect CountryLocalServiceImpl 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.
updateCountry
in interface CountryLocalService
country
- the countrypublic Country updateCountry(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) throws PortalException
updateCountry
in interface CountryLocalService
PortalException
public CountryLocalization updateCountryLocalization(Country country, String languageId, String title) throws PortalException
updateCountryLocalization
in interface CountryLocalService
PortalException
public List<CountryLocalization> updateCountryLocalizations(Country country, Map<String,String> titleMap) throws PortalException
updateCountryLocalizations
in interface CountryLocalService
PortalException
public Country updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) throws PortalException
updateGroupFilterEnabled
in interface CountryLocalService
PortalException
public BasePersistence<?> getBasePersistence()
getBasePersistence
in interface PersistedModelLocalService
public CTPersistence<Country> getCTPersistence()
getCTPersistence
in interface CTService<Country>
getCTPersistence
in interface CountryLocalService
public Class<Country> getModelClass()
getModelClass
in interface CTService<Country>
getModelClass
in interface CountryLocalService
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Country>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface CTService<Country>
updateWithUnsafeFunction
in interface CountryLocalService
E extends Throwable
public CountryLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<CountryLocalService>
public void setWrappedService(CountryLocalService countryLocalService)
setWrappedService
in interface ServiceWrapper<CountryLocalService>