Class CountryHome
java.lang.Object
fr.paris.lutece.plugins.geocodes.business.CountryHome
This class provides instances management methods (create, find, ...) for Country objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CountryaddCountryChanges(Country country, Date dateUpdate, String autor, String applied) static CountryCreate an instance of the country classfindByCode(String strCode) Returns an instance of a country whose identifier is specified in parameterfindByCode(String strCode, boolean bAttached) Returns an instance of a country whose identifier is specified in parameterfindByPrimaryKey(int nKey) Returns an instance of a country whose identifier is specified in parameterstatic CountryChangesgetChangesFromChangesId(int id) Load the data of all the country objects and returns them as a listgetCountriesListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a listgetCountriesListByName(String strSearch) Load the data of all the country objects and returns them as a listgetCountriesListByNameAndDate(String strSearch, Date dateRef) Load the data of all the country objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the country objects and returns them as a referenceListgetIdCountriesList(String countryLabel, String countryCode, boolean approximateSearch) Load the id of all the country objects and returns them as a liststatic List<CountryChanges>getListChangesFromCountryId(int id) static voidremove(int nKey) Remove the country whose identifier is specified in parameterstatic CountryUpdate of the country which is specified in parameterstatic CountryChangesupdateChanges(CountryChanges history)
-
Method Details
-
create
Create an instance of the country class- Parameters:
country- The instance of the Country which contains the informations to store- Returns:
- The instance of country which has been created with its primary key.
-
update
Update of the country which is specified in parameter- Parameters:
country- The instance of the Country which contains the data to store- Returns:
- The instance of the country which has been updated
-
addCountryChanges
-
getListChangesFromCountryId
-
getChangesFromChangesId
-
updateChanges
-
remove
public static void remove(int nKey) Remove the country whose identifier is specified in parameter- Parameters:
nKey- The country Id
-
findByPrimaryKey
Returns an instance of a country whose identifier is specified in parameter- Parameters:
nKey- The country primary key- Returns:
- an instance of Country
-
findByCode
Returns an instance of a country whose identifier is specified in parameter- Parameters:
nKey- The country primary key- Returns:
- an instance of Country
-
findByCode
Returns an instance of a country whose identifier is specified in parameter- Parameters:
strCode- The country primary keybAttached- is the country attached- Returns:
- an instance of Country
-
getCountriesList
Load the data of all the country objects and returns them as a list- Returns:
- the list which contains the data of all the country objects
-
getCountriesListByNameAndDate
Load the data of all the country objects and returns them as a list- Returns:
- the list which contains the data of all the country objects
-
getCountriesListByName
Load the data of all the country objects and returns them as a list- Returns:
- the list which contains the data of all the country objects
-
getIdCountriesList
public static List<Integer> getIdCountriesList(String countryLabel, String countryCode, boolean approximateSearch) Load the id of all the country objects and returns them as a list- Returns:
- the list which contains the id of all the country objects
-
getCountriesReferenceList
public static fr.paris.lutece.util.ReferenceList getCountriesReferenceList()Load the data of all the country objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the country objects
-
getCountriesListByIds
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-