Class IPLocation
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.system.IPLocation
- All Implemented Interfaces:
Serializable,Comparable<Object>,IDBean,Cacheable
A bean to store IP block geolocation data.
- Since:
- 8.7
- Version:
- 8.7
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the city name.Returns the country.Returns the region/state/province name.Returns the region/state/province code.voidsetCityName(String name) Updates the city name.voidUpdates the country.voidUpdates the region name.voidsetRegionCode(String code) Updates the region code.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
IPLocation
public IPLocation(int id) Creates a location bean.- Parameters:
id- the GeoNames ID
-
-
Method Details
-
getCountry
-
getRegionCode
-
getRegion
-
getCityName
-
setCountry
-
setRegionCode
-
setRegion
-
setCityName
-