Package org.deltava.beans.system
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the city name.Returns the country.Returns the region/state/province name.Returns the region/state/province code.void
setCityName
(String name) Updates the city name.void
Updates the country.void
Updates the region name.void
setRegionCode
(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
-