public class MapCommand extends SQLCommand
MAP [ADDRESS address] | [LATLNG latlng] [UPDATE global_key, field] [GOOGLE_KEY key]Usage
/* get the coordinate of an address */ MAP ADDRESS '268 Burwood Road, Burwood, NSW'; /* get the address for a coordinate which latitude is -33.13232 and longitude is 151.112849 */ MAP LATLNG -33.13232,151.112849; /* get the coordinate of an address and update a field with the coordinate */ MAP ADDRESS '268 Burwood Road, Burwood, NSW' UPDATE 13237@99999~233@2 coordinate;THREAD MODE: SINGLE THREADED command
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_GOOGLE_API_KEY |
CURSOR_SIZE
Constructor and Description |
---|
MapCommand(Connection connection,
Pattern pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser p)
execute the command.
|
java.lang.String |
getColumnName(int col)
Not mandatory to supply a key for the row as well.
|
java.lang.String |
getColumnType(int col)
get the column type
|
java.lang.String |
getRecordID(int row)
We are at the last row when we return null for the record ID.
|
java.lang.Object |
getValue(int row,
int col)
The value for this column/row
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public static final java.lang.String PROPERTY_GOOGLE_API_KEY
public MapCommand(Connection connection, Pattern pattern)
protected void execute(Parser p) throws java.lang.Exception
Command
public java.lang.String getRecordID(int row)
CommandBuildResultsPlugin
row
- The row number ( offset from 1)public java.lang.String getColumnName(int col)
CommandBuildResultsPlugin
col
- The column number ( offset from 1)public java.lang.String getColumnType(int col) throws java.lang.Exception
CommandBuildResultsPlugin
col
- The column number ( offset from 1)java.lang.Exception
- A serious problempublic java.lang.Object getValue(int row, int col) throws java.lang.Exception
CommandBuildResultsPlugin
row
- The row number ( offset from 1)col
- The column number ( offset from 1)java.lang.Exception
- A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.