|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBRecord<RT> org.opengts.db.AccountRecord<Geozone> org.opengts.db.tables.Geozone
public class Geozone
Nested Class Summary | |
---|---|
static class |
Geozone.GeozoneType
|
static class |
Geozone.Key
|
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord |
---|
AccountRecord.AccountKey<RT extends DBRecord> |
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord |
---|
DBRecord.DBChangeListener |
Field Summary | |
---|---|
static java.lang.String |
_TABLE_NAME
|
static double |
CLIENT_GEOPOINT_DELTA
|
static double |
CLIENT_RADIUS_DELTA_METERS
|
static DBField[] |
CorridorFieldInfo
|
static java.lang.String |
FLD_arrivalStatusCode
|
static java.lang.String |
FLD_arrivalZone
|
static java.lang.String |
FLD_autoNotify
|
static java.lang.String |
FLD_city
|
static java.lang.String |
FLD_clientID
|
static java.lang.String |
FLD_clientUpload
|
static java.lang.String |
FLD_contactPhone
|
static java.lang.String |
FLD_corrEndSelector
|
static java.lang.String |
FLD_corridorID
|
static java.lang.String |
FLD_corrStartSelector
|
static java.lang.String |
FLD_country
|
static java.lang.String |
FLD_departureStatusCode
|
static java.lang.String |
FLD_departureZone
|
static java.lang.String |
FLD_geozoneID
|
static java.lang.String |
FLD_groupID
|
static java.lang.String |
FLD_iconName
|
static java.lang.String |
FLD_latitude1
|
static java.lang.String |
FLD_latitude10
|
static java.lang.String |
FLD_latitude2
|
static java.lang.String |
FLD_latitude3
|
static java.lang.String |
FLD_latitude4
|
static java.lang.String |
FLD_latitude5
|
static java.lang.String |
FLD_latitude6
|
static java.lang.String |
FLD_latitude7
|
static java.lang.String |
FLD_latitude8
|
static java.lang.String |
FLD_latitude9
|
static java.lang.String |
FLD_longitude1
|
static java.lang.String |
FLD_longitude10
|
static java.lang.String |
FLD_longitude2
|
static java.lang.String |
FLD_longitude3
|
static java.lang.String |
FLD_longitude4
|
static java.lang.String |
FLD_longitude5
|
static java.lang.String |
FLD_longitude6
|
static java.lang.String |
FLD_longitude7
|
static java.lang.String |
FLD_longitude8
|
static java.lang.String |
FLD_longitude9
|
static java.lang.String |
FLD_maxLatitude
|
static java.lang.String |
FLD_maxLongitude
|
static java.lang.String |
FLD_minLatitude
|
static java.lang.String |
FLD_minLongitude
|
static java.lang.String |
FLD_postalCode
|
static java.lang.String |
FLD_priority
|
static java.lang.String |
FLD_radius
|
static java.lang.String |
FLD_reverseGeocode
|
static java.lang.String |
FLD_shapeColor
|
static java.lang.String |
FLD_sortID
|
static java.lang.String |
FLD_speedLimitKPH
|
static java.lang.String |
FLD_stateProvince
|
static java.lang.String |
FLD_streetAddress
|
static java.lang.String |
FLD_subdivision
|
static java.lang.String |
FLD_vertices
|
static java.lang.String |
FLD_zonePurposeID
|
static java.lang.String |
FLD_zoneType
|
static java.lang.String |
FLD_zoomRegion
|
static java.lang.String |
GEOZONE_ALL
|
static double |
MAX_RADIUS_METERS
|
static double |
MIN_RADIUS_METERS
|
static DBField[] |
PriorityFieldInfo
|
Fields inherited from class org.opengts.db.AccountRecord |
---|
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes |
Fields inherited from class org.opengts.dbtools.DBRecord |
---|
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps |
Constructor Summary | |
---|---|
Geozone()
|
|
Geozone(Geozone.Key key)
|
Method Summary | |
---|---|
void |
clearGeoPoints()
|
static boolean |
containsPoint(Account account,
java.lang.String zoneId,
GeoPoint gp)
|
boolean |
containsPoint(GeoPoint gp)
|
static boolean |
containsPoint(java.lang.String acctId,
java.lang.String zoneId,
GeoPoint gp)
|
boolean |
encodeDMTPZone(Payload payload,
int ptCnt,
boolean hiRes)
|
static boolean |
exists(java.lang.String acctID,
java.lang.String zoneID,
int sortID)
|
int |
getArrivalStatusCode()
Gets the status code to use when generating an "Arrive" event. |
boolean |
getArrivalZone()
Returns true if this instance can be used for arrival detection. |
boolean |
getAutoNotify()
Gets the auto-notification state. |
GeoBounds |
getBoundingBox()
Gets the GeoBounds for this Geozone |
static GeoBounds |
getBoundingBox(Geozone.GeozoneType zoneType,
GeoPoint[] gp,
double radiusM)
Gets the bounding box for the specified zone |
GeoPoint |
getCenterGeoPoint()
Gets the geozone approximate center GeoPoint |
java.lang.String |
getCity()
Gets the city-address for this geozone. |
int |
getClientID()
|
static Geozone[] |
getClientIDZones(java.lang.String acctId,
long clientId)
|
boolean |
getClientUpload()
|
static Geozone[] |
getClientUploadZones(java.lang.String acctId)
|
java.lang.String |
getContactPhone()
Gets the contact-phone of for this geozone. |
java.lang.String |
getCorrEndSelector()
|
java.lang.String |
getCorridorID()
Gets the corridor-id assigned to this geozone. |
java.lang.String |
getCorrStartSelector()
|
java.lang.String |
getCountry()
Gets the country for this geozone. |
int |
getDepartureStatusCode()
Gets the status code to use when generating a "Depart" event. |
boolean |
getDepartureZone()
Returns true if this instance can be used for departure detection. |
static java.lang.String |
getDescription(Account account,
GeoPoint gp)
|
static java.lang.String |
getDescription(java.lang.String acctID,
GeoPoint gp)
|
double |
getEastLongitude()
|
static DBFactory<Geozone> |
getFactory()
|
static Geozone |
getFirstGeozoneForDevice(Geozone[] gza,
java.lang.String deviceID)
Returns the first Geozone in the specified lizt that is applicable to the specified DeviceID. |
GeoPoint |
getGeoPointAt(int ndx,
GeoPoint dft)
|
GeoPoint[] |
getGeoPoints()
|
static Geozone[] |
getGeozone(Account account,
java.lang.String geozoneID)
|
static Geozone |
getGeozone(Account account,
java.lang.String zoneID,
GeoPoint gp,
boolean reverseGeocodeOnly)
|
static Geozone |
getGeozone(Account account,
java.lang.String geozoneID,
int sortID,
boolean create)
|
static Geozone |
getGeozone(java.lang.String acctID,
java.lang.String zoneID,
GeoPoint gp,
boolean reverseGeocodeOnly)
|
static Geozone |
getGeozone(java.lang.String acctID,
java.lang.String zoneID,
GeoPoint gp,
java.lang.String purposeID,
boolean reverseGeocodeOnly)
|
static Geozone |
getGeozoneForDevice(java.lang.String acctID,
GeoPoint gp,
java.lang.String devID)
Returns the first (highest priority) Geozone in which the point resides that is also applicable for the specified DeviceID. |
static Geozone |
getGeozoneForPurpose(java.lang.String acctID,
GeoPoint gp,
java.lang.String purID)
Returns the first Geozone in which the point resides that is also applicable for the specified Purpose (ie. |
java.lang.String |
getGeozoneID()
Gets the geozoneID key |
static java.lang.String[] |
getGeozoneIDs(DBSelect<Geozone> dsel)
|
static java.lang.String[] |
getGeozoneIDsForAccount(java.lang.String acctId)
|
static Geozone[] |
getGeozones(java.lang.String acctID,
GeoBounds gb)
|
static Geozone[] |
getGeozones(java.lang.String acctID,
GeoPoint gp)
|
static Geozone.GeozoneType |
getGeozoneType(Geozone z)
|
static Geozone.GeozoneType |
getGeozoneType(int zt)
|
java.lang.String |
getGroupID()
|
java.lang.String |
getIconName()
|
boolean |
getIsActive()
Gets the Geozone active state |
double |
getLatitude1()
|
double |
getLatitude2()
|
double |
getLatitude3()
|
double |
getLatitude4()
|
double |
getLatitude5()
|
double |
getLatitude6()
|
double |
getLatitude7()
|
double |
getLatitude8()
|
double |
getLongitude1()
|
double |
getLongitude2()
|
double |
getLongitude3()
|
double |
getLongitude4()
|
double |
getLongitude5()
|
double |
getLongitude6()
|
double |
getLongitude7()
|
double |
getLongitude8()
|
static double |
GetMaximumRadius()
Gets the maximum geozone radius in meters |
static double |
GetMaximumRadius(int gzType)
Gets the maximum geozone radius in meters, for the specified Geozone type. |
double |
getMaxLatitude()
Gets the geozone bounding maximum latitude |
double |
getMaxLongitude()
Gets the geozone bounding maximum longitude |
static int |
GetMaxVerticesCount()
|
static double |
GetMinimumRadius()
Gets the minimum geozone radius in meters |
static double |
GetMinimumRadius(int gzType)
Gets the minimum geozone radius in meters, for the specified Geozone type |
double |
getMinLatitude()
Gets the geozone bounding minimum latitude |
double |
getMinLongitude()
Gets the geozone bounding minimum longitude |
double |
getNorthLatitude()
|
java.lang.String |
getPostalCode()
Gets the postal code for this geozone. |
int |
getPriority()
Gets the geozone overlap priority |
int |
getPushpinIconIndex(OrderedSet<java.lang.String> iconKeys)
Gets the pushpin icon index for the specified pushpin id |
int |
getPushpinIconIndex(OrderedSet<java.lang.String> iconKeys,
int dft)
Gets the pushpin icon index for the specified pushpin id |
int |
getRadius()
|
double |
getRadiusKilometers()
|
double |
getRadiusMeters()
|
double |
getRadiusMeters(double minValue,
double maxValue)
|
boolean |
getReverseGeocode()
Returns true if this instance can be used for reverse-geocoding the location with the Geozone description. |
java.lang.String |
getShapeColor()
|
java.lang.String |
getShapeColor(java.lang.String dftColor)
|
int |
getSortID()
Gets the sort index |
double |
getSouthLatitude()
|
double |
getSpeedLimitKPH()
Gets the geozone speed limit |
java.lang.String |
getStateProvince()
Gets the state/province for this geozone. |
java.lang.String |
getStreetAddress()
Gets the street-address for this geozone. |
java.lang.String |
getSubdivision()
Gets the subdivision-code for this geozone. |
static java.lang.String |
getTableDescription(java.util.Locale loc)
Gets this table description |
java.lang.String |
getVertices()
|
java.util.List<GeoPoint> |
getVerticesList(java.util.List<GeoPoint> gpList)
|
double |
getWestLongitude()
|
static java.lang.String |
getWhereClause(java.lang.String acctId,
long clientId)
|
static java.lang.String |
getWhereClause(java.lang.String acctId,
java.lang.String zoneId,
int sortId,
GeoBounds bounds,
GeoPoint centerGP,
boolean activeOnly,
boolean clientUploadOnly,
boolean reverseGeocodeOnly)
|
java.lang.String |
getZonePurposeID()
|
int |
getZoneType()
Gets the geozone type |
java.lang.String |
getZoneTypeDescription(java.util.Locale loc)
Gets the geozone type description |
boolean |
getZoomRegion()
Gets the zoom-region state. |
boolean |
hasBoundingBox()
|
boolean |
hasCorridorID()
Returns true if a corridor-id has been assigned to this geozone. |
boolean |
hasGroupID()
|
boolean |
hasRadius()
|
void |
insert()
Sets Geozone bounding-box and inserts the GeoZone into the table |
boolean |
isArrivalZone()
Deprecated. |
boolean |
isArrivalZone(java.lang.String deviceID)
Returns true if this instance can be used for arrival detection. |
boolean |
isAutoNotify()
Returns the auto-notification state for this geozone. |
boolean |
isClientUpload()
|
boolean |
isCorridorEnd(EventData ev)
|
boolean |
isCorridorStart(EventData ev)
|
boolean |
isDepartureZone()
Deprecated. |
boolean |
isDepartureZone(java.lang.String deviceID)
Returns true if this instance can be used for departure detection. |
boolean |
isDeviceInGroup(java.lang.String deviceID)
Returns true if the current Geozone is applicable to the specified DeviceID |
static boolean |
IsGeozoneTypeSupported(Geozone.GeozoneType type)
|
static boolean |
IsGeozoneTypeSupported(int type)
|
static boolean |
IsGlobalActive()
Returns true if all Geozones should be considered active (thus ignoring the "getIsActive()" false setting. |
static boolean |
isPointOfInterest(Geozone z)
|
boolean |
isReverseGeocode(java.lang.String deviceID)
Returns true if this instance can be used for reverse-geocoding the location with the Geozone description. |
boolean |
isZonePurposeID(java.lang.String v)
|
boolean |
isZoomRegion()
Returns the zoom-region state for this geozone. |
static void |
listZones(java.lang.String acctId,
boolean update)
|
static void |
main(java.lang.String[] argv)
|
boolean |
resetBoundingBox()
Resets the bounding area for this GeoZone |
void |
setArrivalStatusCode(int v)
Sets the status code to use when generating an "Arrive" event. |
void |
setArrivalZone(boolean v)
Sets whether this instance can be used for arrival detection. |
void |
setAutoNotify(boolean v)
Sets the auto-notification state. |
void |
setCity(java.lang.String v)
Sets the city-address for this geozone. |
void |
setClientID(int v)
|
void |
setClientUpload(boolean v)
|
void |
setContactPhone(java.lang.String v)
Sets the contact-phone of for this geozone. |
void |
setCorrEndSelector(boolean v)
|
void |
setCorridorID(java.lang.String v)
Sets the corridor-id assigned to this geozone. |
void |
setCorrStartSelector(boolean v)
|
void |
setCountry(java.lang.String v)
Sets the country for this geozone. |
void |
setCreationDefaultValues()
Override to set default values |
void |
setDefaultRadius()
|
void |
setDepartureStatusCode(int v)
Sets the status code to use when generating a "Depart" event. |
void |
setDepartureZone(boolean v)
Sets whether this instance can be used for departure detection. |
void |
setGeoPoints(GeoPoint[] gp)
|
void |
setGeoPoints(java.util.List<GeoPoint> gpList)
|
void |
setGeozoneID(java.lang.String v)
Sets the geozoneID key |
void |
setGroupID(java.lang.String v)
|
void |
setIconName(java.lang.String v)
|
void |
setLatitude1(double v)
|
void |
setLatitude2(double v)
|
void |
setLatitude3(double v)
|
void |
setLatitude4(double v)
|
void |
setLatitude5(double v)
|
void |
setLatitude6(double v)
|
void |
setLatitude7(double v)
|
void |
setLatitude8(double v)
|
void |
setLongitude1(double v)
|
void |
setLongitude2(double v)
|
void |
setLongitude3(double v)
|
void |
setLongitude4(double v)
|
void |
setLongitude5(double v)
|
void |
setLongitude6(double v)
|
void |
setLongitude7(double v)
|
void |
setLongitude8(double v)
|
void |
setMaxLatitude(double v)
Sets the geozone bounding maximum latitude |
void |
setMaxLongitude(double v)
Sets the geozone bounding maximum longitude |
void |
setMinLatitude(double v)
Sets the geozone bounding minimum latitude |
void |
setMinLongitude(double v)
Sets the geozone bounding minimum longitude |
void |
setPostalCode(java.lang.String v)
Sets the postal code for this geozone. |
void |
setPriority(int v)
Sets the geozone overlap priority |
void |
setRadius(int v)
|
void |
setReverseGeocode(boolean v)
Sets whether this instance can be used for reverse-geocoding |
void |
setShapeColor(java.lang.String v)
|
void |
setSortID(int v)
Sets the sort index |
void |
setSpeedLimitKPH(double v)
Sets the geozone speed limit |
void |
setStateProvince(java.lang.String v)
Sets the state/province for this geozone. |
void |
setStreetAddress(java.lang.String v)
Sets the street-address for this geozone. |
void |
setSubdivision(java.lang.String v)
Sets the subdivision-code for this geozone. |
void |
setVertices(java.lang.String v)
|
void |
setVerticesList(java.util.List<GeoPoint> gpList)
|
protected void |
setZoneChanged()
Sets the zone changed flag |
void |
setZonePurposeID(java.lang.String v)
|
void |
setZoneType(Geozone.GeozoneType v)
Sets the geozone type |
void |
setZoneType(int v)
Sets the geozone type |
void |
setZoneType(java.lang.String v,
java.util.Locale locale)
Sets the geozone type |
void |
setZoomRegion(boolean v)
Sets the zoom-region state. |
static boolean |
supportsCorridor()
Returns true if this zone supports GeoCorridor information. |
static boolean |
supportsPriority()
Returns true if this table supports overlap priority |
static boolean |
supportsSpeedLimitKPH()
Returns true if this table supports speed limit |
static java.lang.String |
TABLE_NAME()
|
void |
update(java.util.Set<java.lang.String> updFldSet)
Sets Geozone bounding-box and inserts the GeoZone into the table |
void |
update(java.lang.String... updFldArray)
Sets Geozone bounding-box and inserts the GeoZone into the table |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GEOZONE_ALL
public static final double MIN_RADIUS_METERS
public static final double MAX_RADIUS_METERS
public static final double CLIENT_RADIUS_DELTA_METERS
public static final double CLIENT_GEOPOINT_DELTA
public static final java.lang.String _TABLE_NAME
public static final java.lang.String FLD_geozoneID
public static final java.lang.String FLD_sortID
public static final java.lang.String FLD_minLatitude
public static final java.lang.String FLD_maxLatitude
public static final java.lang.String FLD_minLongitude
public static final java.lang.String FLD_maxLongitude
public static final java.lang.String FLD_zonePurposeID
public static final java.lang.String FLD_reverseGeocode
public static final java.lang.String FLD_arrivalZone
public static final java.lang.String FLD_arrivalStatusCode
public static final java.lang.String FLD_departureZone
public static final java.lang.String FLD_departureStatusCode
public static final java.lang.String FLD_autoNotify
public static final java.lang.String FLD_zoomRegion
public static final java.lang.String FLD_shapeColor
public static final java.lang.String FLD_iconName
public static final java.lang.String FLD_zoneType
public static final java.lang.String FLD_radius
public static final java.lang.String FLD_vertices
public static final java.lang.String FLD_latitude1
public static final java.lang.String FLD_longitude1
public static final java.lang.String FLD_latitude2
public static final java.lang.String FLD_longitude2
public static final java.lang.String FLD_latitude3
public static final java.lang.String FLD_longitude3
public static final java.lang.String FLD_latitude4
public static final java.lang.String FLD_longitude4
public static final java.lang.String FLD_latitude5
public static final java.lang.String FLD_longitude5
public static final java.lang.String FLD_latitude6
public static final java.lang.String FLD_longitude6
public static final java.lang.String FLD_latitude7
public static final java.lang.String FLD_longitude7
public static final java.lang.String FLD_latitude8
public static final java.lang.String FLD_longitude8
public static final java.lang.String FLD_latitude9
public static final java.lang.String FLD_longitude9
public static final java.lang.String FLD_latitude10
public static final java.lang.String FLD_longitude10
public static final java.lang.String FLD_clientUpload
public static final java.lang.String FLD_clientID
public static final java.lang.String FLD_groupID
public static final java.lang.String FLD_streetAddress
public static final java.lang.String FLD_city
public static final java.lang.String FLD_stateProvince
public static final java.lang.String FLD_postalCode
public static final java.lang.String FLD_country
public static final java.lang.String FLD_subdivision
public static final java.lang.String FLD_contactPhone
public static final java.lang.String FLD_priority
public static final java.lang.String FLD_speedLimitKPH
public static final DBField[] PriorityFieldInfo
public static final java.lang.String FLD_corrStartSelector
public static final java.lang.String FLD_corrEndSelector
public static final java.lang.String FLD_corridorID
public static final DBField[] CorridorFieldInfo
Constructor Detail |
---|
public Geozone()
public Geozone(Geozone.Key key)
Method Detail |
---|
public static double GetMinimumRadius(int gzType)
public static double GetMinimumRadius()
public static double GetMaximumRadius(int gzType)
public static double GetMaximumRadius()
public static Geozone.GeozoneType getGeozoneType(Geozone z)
public static Geozone.GeozoneType getGeozoneType(int zt)
public static boolean isPointOfInterest(Geozone z)
public static boolean IsGlobalActive()
public boolean getIsActive()
getIsActive
in class AccountRecord<Geozone>
public static java.lang.String TABLE_NAME()
public static DBFactory<Geozone> getFactory()
public static java.lang.String getTableDescription(java.util.Locale loc)
public java.lang.String getGeozoneID()
public void setGeozoneID(java.lang.String v)
public int getSortID()
public void setSortID(int v)
public static boolean supportsPriority()
public int getPriority()
public void setPriority(int v)
public static boolean supportsSpeedLimitKPH()
public double getSpeedLimitKPH()
public void setSpeedLimitKPH(double v)
public double getMinLatitude()
public void setMinLatitude(double v)
public double getMaxLatitude()
public void setMaxLatitude(double v)
public double getMinLongitude()
public void setMinLongitude(double v)
public double getMaxLongitude()
public void setMaxLongitude(double v)
public GeoPoint getCenterGeoPoint()
public int getZoneType()
public void setZoneType(int v)
public void setZoneType(Geozone.GeozoneType v)
public void setZoneType(java.lang.String v, java.util.Locale locale)
public java.lang.String getZoneTypeDescription(java.util.Locale loc)
public boolean hasRadius()
public double getRadiusMeters()
public double getRadiusMeters(double minValue, double maxValue)
public double getRadiusKilometers()
public int getRadius()
public void setRadius(int v)
public void setDefaultRadius()
public java.lang.String getShapeColor(java.lang.String dftColor)
public java.lang.String getShapeColor()
public void setShapeColor(java.lang.String v)
public java.lang.String getIconName()
public void setIconName(java.lang.String v)
public int getPushpinIconIndex(OrderedSet<java.lang.String> iconKeys, int dft)
iconKeys
- The icon pushpinID mapdft
- The default pushpin index if the pushpinID is not found or blank
public int getPushpinIconIndex(OrderedSet<java.lang.String> iconKeys)
iconKeys
- The icon pushpinID map
public double getNorthLatitude()
public double getSouthLatitude()
public double getWestLongitude()
public double getEastLongitude()
public java.lang.String getVertices()
public void setVertices(java.lang.String v)
public java.util.List<GeoPoint> getVerticesList(java.util.List<GeoPoint> gpList)
public void setVerticesList(java.util.List<GeoPoint> gpList)
public double getLatitude1()
public void setLatitude1(double v)
public double getLongitude1()
public void setLongitude1(double v)
public double getLatitude2()
public void setLatitude2(double v)
public double getLongitude2()
public void setLongitude2(double v)
public double getLatitude3()
public void setLatitude3(double v)
public double getLongitude3()
public void setLongitude3(double v)
public double getLatitude4()
public void setLatitude4(double v)
public double getLongitude4()
public void setLongitude4(double v)
public double getLatitude5()
public void setLatitude5(double v)
public double getLongitude5()
public void setLongitude5(double v)
public double getLatitude6()
public void setLatitude6(double v)
public double getLongitude6()
public void setLongitude6(double v)
public double getLatitude7()
public void setLatitude7(double v)
public double getLongitude7()
public void setLongitude7(double v)
public double getLatitude8()
public void setLatitude8(double v)
public double getLongitude8()
public void setLongitude8(double v)
public static int GetMaxVerticesCount()
public GeoPoint[] getGeoPoints()
public GeoPoint getGeoPointAt(int ndx, GeoPoint dft)
public void clearGeoPoints()
public void setGeoPoints(java.util.List<GeoPoint> gpList)
public void setGeoPoints(GeoPoint[] gp)
public boolean getClientUpload()
public void setClientUpload(boolean v)
public boolean isClientUpload()
public int getClientID()
public void setClientID(int v)
public java.lang.String getZonePurposeID()
public void setZonePurposeID(java.lang.String v)
public boolean isZonePurposeID(java.lang.String v)
public boolean hasGroupID()
public java.lang.String getGroupID()
public void setGroupID(java.lang.String v)
public boolean isDeviceInGroup(java.lang.String deviceID)
deviceID
- The DeviceID
public static Geozone getFirstGeozoneForDevice(Geozone[] gza, java.lang.String deviceID)
gza
- The list of GeozonesdeviceID
- The device id.
public static Geozone getGeozoneForDevice(java.lang.String acctID, GeoPoint gp, java.lang.String devID) throws DBException
acctID
- The AccountIDgp
- The GeoPointdevID
- The DeviceID
DBException
public static Geozone getGeozoneForPurpose(java.lang.String acctID, GeoPoint gp, java.lang.String purID) throws DBException
acctID
- The AccountIDgp
- The GeoPointpurID
- The PurposeID
DBException
public boolean getReverseGeocode()
public void setReverseGeocode(boolean v)
public boolean isReverseGeocode(java.lang.String deviceID)
deviceID
- The deviceID to check to see if it is contained within the
device group defined in this instancepublic boolean getArrivalZone()
public void setArrivalZone(boolean v)
public boolean isArrivalZone(java.lang.String deviceID)
deviceID
- The deviceID to check to see if it is contained within the
device group defined in this instance@Deprecated public boolean isArrivalZone()
public int getArrivalStatusCode()
public void setArrivalStatusCode(int v)
public boolean getDepartureZone()
public void setDepartureZone(boolean v)
public boolean isDepartureZone(java.lang.String deviceID)
deviceID
- The deviceID to check to see if it is contained within the
device group defined in this instance@Deprecated public boolean isDepartureZone()
public int getDepartureStatusCode()
public void setDepartureStatusCode(int v)
public boolean getAutoNotify()
public void setAutoNotify(boolean v)
public boolean isAutoNotify()
public boolean getZoomRegion()
public void setZoomRegion(boolean v)
public boolean isZoomRegion()
public java.lang.String getStreetAddress()
public void setStreetAddress(java.lang.String v)
public java.lang.String getCity()
public void setCity(java.lang.String v)
public java.lang.String getStateProvince()
public void setStateProvince(java.lang.String v)
public java.lang.String getPostalCode()
public void setPostalCode(java.lang.String v)
public java.lang.String getCountry()
public void setCountry(java.lang.String v)
public java.lang.String getSubdivision()
public void setSubdivision(java.lang.String v)
public java.lang.String getContactPhone()
public void setContactPhone(java.lang.String v)
public static boolean supportsCorridor()
public java.lang.String getCorridorID()
public void setCorridorID(java.lang.String v)
public boolean hasCorridorID()
public java.lang.String getCorrStartSelector()
public void setCorrStartSelector(boolean v)
public boolean isCorridorStart(EventData ev)
public java.lang.String getCorrEndSelector()
public void setCorrEndSelector(boolean v)
public boolean isCorridorEnd(EventData ev)
public void setCreationDefaultValues()
DBRecord
setCreationDefaultValues
in class DBRecord<Geozone>
public static boolean IsGeozoneTypeSupported(int type)
public static boolean IsGeozoneTypeSupported(Geozone.GeozoneType type)
public boolean containsPoint(GeoPoint gp)
public boolean encodeDMTPZone(Payload payload, int ptCnt, boolean hiRes)
protected void setZoneChanged()
public boolean hasBoundingBox()
public static GeoBounds getBoundingBox(Geozone.GeozoneType zoneType, GeoPoint[] gp, double radiusM)
public GeoBounds getBoundingBox()
public boolean resetBoundingBox()
public void insert() throws DBException
insert
in class DBRecord<Geozone>
DBException
- if a database error occurs.public void update(java.lang.String... updFldArray) throws DBException
update
in class DBRecord<Geozone>
updFldArray
- An array of fields to update.
DBException
- if a database error occurs.public void update(java.util.Set<java.lang.String> updFldSet) throws DBException
update
in class DBRecord<Geozone>
updFldSet
- A Set of fields to update.
DBException
- if a database error occurs.public static java.lang.String getWhereClause(java.lang.String acctId, java.lang.String zoneId, int sortId, GeoBounds bounds, GeoPoint centerGP, boolean activeOnly, boolean clientUploadOnly, boolean reverseGeocodeOnly)
public static java.lang.String getWhereClause(java.lang.String acctId, long clientId)
public static boolean exists(java.lang.String acctID, java.lang.String zoneID, int sortID) throws DBException
DBException
public static java.lang.String getDescription(Account account, GeoPoint gp)
public static java.lang.String getDescription(java.lang.String acctID, GeoPoint gp)
public static Geozone getGeozone(Account account, java.lang.String zoneID, GeoPoint gp, boolean reverseGeocodeOnly)
public static Geozone getGeozone(java.lang.String acctID, java.lang.String zoneID, GeoPoint gp, boolean reverseGeocodeOnly)
public static Geozone getGeozone(java.lang.String acctID, java.lang.String zoneID, GeoPoint gp, java.lang.String purposeID, boolean reverseGeocodeOnly)
public static Geozone[] getGeozones(java.lang.String acctID, GeoPoint gp) throws DBException
DBException
public static Geozone[] getGeozones(java.lang.String acctID, GeoBounds gb) throws DBException
DBException
public static Geozone[] getGeozone(Account account, java.lang.String geozoneID) throws DBException
DBException
public static Geozone getGeozone(Account account, java.lang.String geozoneID, int sortID, boolean create) throws DBException
DBException
public static boolean containsPoint(Account account, java.lang.String zoneId, GeoPoint gp) throws DBNotFoundException
DBNotFoundException
public static boolean containsPoint(java.lang.String acctId, java.lang.String zoneId, GeoPoint gp) throws DBNotFoundException
DBNotFoundException
public static Geozone[] getClientIDZones(java.lang.String acctId, long clientId)
public static Geozone[] getClientUploadZones(java.lang.String acctId)
public static java.lang.String[] getGeozoneIDsForAccount(java.lang.String acctId) throws DBException
DBException
public static java.lang.String[] getGeozoneIDs(DBSelect<Geozone> dsel) throws DBException
DBException
public static void listZones(java.lang.String acctId, boolean update)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |