com.mapquest
Class DBLayerQuery

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.DBLayerQuery
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DBLayerCatToDTMapQuery

public class DBLayerQuery
extends MQObject

Adds points of interest (such as banks, hotels, etc.) to a map. The DBLayerQuery object consists of a layer name and a query string. A DBLayerQuery object uniquely specifies a database table to be used by the server when drawing maps or performing searches. It contains the information necessary to connect to a table within a RDBMS.


Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
DBLayerQuery()
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 java.lang.String getDBLayerName()
          Returns the database layer name of this object.
 java.lang.String getExtraCriteria()
          Contains Secondary SQL Query.
 int hashCode()
          Returns a hash code for this DBLayerQuery.
 void init()
          Initializes object.
 void setDBLayerName(java.lang.String strName)
          Contains Secondary SQL Query.
 void setExtraCriteria(java.lang.String strQuery)
          Sets the query string to the specified string.
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

DBLayerQuery

public DBLayerQuery()
Default constructor.

Method Detail

init

public void init()
Initializes object.

Overrides:
init in class MQObject

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

setExtraCriteria

public void setExtraCriteria(java.lang.String strQuery)
Sets the query string to the specified string.

Parameters:
strQuery - The query string which is to be stored in this object.

setDBLayerName

public void setDBLayerName(java.lang.String strName)
Contains Secondary SQL Query. Remarks: Optional Secondary SQL query (used in conjunction with spatial search criteria) Allows user to add further SQL restrictions on the results that would have been returned. This SQL fragment will be appended to the WHERE clause with an "AND" operator.

Parameters:
strName - The string which is to be stored as the database layer name in this object.

getExtraCriteria

public java.lang.String getExtraCriteria()
Contains Secondary SQL Query. Remarks: Optional Secondary SQL query (used in conjunction with spatial search criteria) Allows user to add further SQL restrictions on the results that would have been returned. This SQL fragment will be appended to the WHERE clause with an "AND" operator.

Returns:
The query string of this object.

getDBLayerName

public java.lang.String getDBLayerName()
Returns the database layer name of this object.

Returns:
The database layer name of this object.

equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a DBLayerQuery object that has same attributes as this object.

Overrides:
equals in class MQObject
Parameters:
otherObject - the object to compare this DBLayerQuery against.
Returns:
true if the DBLayerQuery objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this DBLayerQuery.

Overrides:
hashCode in class MQObject
Returns:
a hash code value for this DBLayerQuery.