com.mapquest
Class DBLayerCatToDTMapQuery

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

public class DBLayerCatToDTMapQuery
extends DBLayerQuery

Adds points of interest (such as banks, hotels, etc.) to a map. The DBLayerCatToDTMapQuery object consists of a layer name and a query string. A DBLayerCatToDTMapQuery 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.

See Also:
DBFieldType, CatToDTMapCollection

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
DBLayerCatToDTMapQuery()
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 java.lang.String getCategoryField()
          Get the name of the category field in the database.
 DBFieldType getCategoryFieldType()
          Get the data type of the Category field.
 CatToDTMapCollection getCatToDTMapCollection()
          Get the collection that stores the name-value pairs for the category-DT pairs
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 int hashCode()
          Returns a hash code for this DBLayerCatToDTMapQuery.
 void init()
          Initializes object.
 void setCategoryField(java.lang.String strCategoryField)
          Set the name of the category field in the database.
 void setCategoryFieldType(DBFieldType lCategoryFieldType)
          Set the data type of the Category field.
 
Methods inherited from class com.mapquest.DBLayerQuery
getDBLayerName, getExtraCriteria, setDBLayerName, setExtraCriteria
 
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

DBLayerCatToDTMapQuery

public DBLayerCatToDTMapQuery()
Default constructor.

Method Detail

init

public void init()
Initializes object.

Overrides:
init in class DBLayerQuery

getClassId

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

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

getClassName

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

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

setCategoryField

public void setCategoryField(java.lang.String strCategoryField)
Set the name of the category field in the database.

Parameters:
strCategoryField - the FieldName

getCategoryField

public java.lang.String getCategoryField()
Get the name of the category field in the database.

Returns:
The category field

setCategoryFieldType

public void setCategoryFieldType(DBFieldType lCategoryFieldType)
Set the data type of the Category field.

Parameters:
lCategoryFieldType - the field type

getCategoryFieldType

public DBFieldType getCategoryFieldType()
Get the data type of the Category field.

Returns:
The field type

getCatToDTMapCollection

public CatToDTMapCollection getCatToDTMapCollection()
Get the collection that stores the name-value pairs for the category-DT pairs

Returns:
The collection

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 DBLayerCatToDTMapQuery object that has same attributes as this object.

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

hashCode

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

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