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 DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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
-