|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--DMCQueryControl
DMCQueryControl is a class that is used to query for information
Defined in APIJS.js
| Constructor Summary | |
DMCQueryControl(<string> queryServiceUrl, dataSourceName)
Creates a new DMCQueryControl instance that will be used to query for information |
|
| Method Summary | |
void
|
execute(<object> observer, <string> onSuccessMethod, <string> onErrorMethod, <string> queryId )
Executes the query and notifies the observer success or error method when the results are returned. |
void
|
geocode( <object> observer, <string> onSuccessMethod, <string> onErrorMethod, location, <string> address, <string> city, <string> state, <string> zip, minScore, includeGeo)
Executes the query and notifies the observer success or error method when the results are returned. |
string
|
getDataSource()
Returns the name of the DataSource being queried on. |
String
|
getKeyField()
Returns the primary key field for the records |
Object
|
getQuery()
Returns the query that will be sent. |
string
|
getQueryServiceUrl()
Returns the url that will be queried on. |
string
|
getResourceName()
Returns the name of the DataSource being queried on. |
string
|
getSelectAttributes()
Returns the selected attributes. |
void
|
setAPNFilter(apn, fips)
Sets the APN and FIPS filter. |
string
|
setDataSource(d)
Sets the DataSource |
void
|
setGeometryBufferDistance(geometryBufferDistance)
Sets the buffer distance around the geometry. |
void
|
setGeometryFilter(geometryFilter)
Sets the geometry filter. |
void
|
setID(id)
Sets the ID filter. |
String
|
setKeyField(k)
Sets the the primary key field for the records. |
void
|
setMaxOutputRecords(maxOutputRecords)
Sets the maximum number of records the query will return. |
void
|
setOutputType(outputType)
Sets the type of the returned data. |
void
|
setReturnGeometryType(returnGeometryType)
Sets the type of the geometries returned. |
void
|
setSelectAttributes(selectAttributes)
Sets the selected attributes. |
| Constructor Detail |
DMCQueryControl(<string> queryServiceUrl, dataSourceName)
queryServiceUrl - queryServiceUrl is an optional paramter for the url to send parameters to.
DataSourceName - Optional parameter that specifies the data source to query.
| Method Detail |
void execute(<object> observer, <string> onSuccessMethod, <string> onErrorMethod, <string> queryId )
observer - The object that will be notified when the query returns
onSuccessMethod - The success method name in the observer to call
onErrorMethod - The error method name in the observer to call
queryId - An Id to give the query. Optional
void geocode( <object> observer, <string> onSuccessMethod, <string> onErrorMethod, location, <string> address, <string> city, <string> state, <string> zip, minScore, includeGeo)
observer - The object that will be notified when the query returns
onSuccessMethod - The success method name in the observer to call
onErrorMethod - The error method name in the observer to call
address - The address line which include . Optional
city - The city name of the address. Optional
state - The state of the address. Optional
zip - The zipcode of the addres Optional
Deprecated - parameter. Pass NULL.
string getDataSource()
String getKeyField()
Object getQuery()
string getQueryServiceUrl()
string getResourceName()
string getSelectAttributes()
void setAPNFilter(apn, fips)
string setDataSource(d)
void setGeometryBufferDistance(geometryBufferDistance)
void setGeometryFilter(geometryFilter)
void setID(id)
String setKeyField(k)
void setMaxOutputRecords(maxOutputRecords)
void setOutputType(outputType)
void setReturnGeometryType(returnGeometryType)
void setSelectAttributes(selectAttributes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||