|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsRecordset
The AimsRecordset class is associated to AimsFeatureLayer objects to contain data associated with the features. When initialized, the recordset is empty, but records are added when the feature layer is queried or identified. The recordset can be queried using a text query, a spatial filter, or a combination of both. The recordset contains two important collections, a FIELDS collection that contains details about each field, and a FEATURES collection which contains the actual records returned by the query filters. However, in most cases, the programmer can perform all recordset operations using the methods contained in this class.
| Constructor Summary | |
AimsRecordset()
Creates a new AimsRecordset. |
|
| Method Summary | |
protected boolean |
addFeature(AimsFeature feature)
Adds a feature to the features collection. |
boolean |
addField(AimsField fld)
Adds a field to the fields collection. |
boolean |
BOF()
Returns true if the recordset is at the beginning (before the first record). |
boolean |
bufferedEOF()
Returns true if the recordset is at the end of the buffered response (after the last record). |
boolean |
bufferedMoveNext()
Moves the recordset pointer to the next record. |
void |
clear()
Clears the recordset (removes all features) |
void |
clearFilter()
Clears the filter associated with a recordset |
java.lang.Object |
clone()
Creates a copy of this recordset. |
boolean |
EOF()
Returns true if the recordset is at the end (after the last record). |
java.lang.String |
getAxlError()
Sets the error message received from ArcIMS that is related to the most recent recordset query. |
int |
getBufferSize()
Gets the buffer size used when retrieving features from the server. |
AimsRecordset |
getCopy()
|
AimsEnvelope |
getFeatureExtent()
Returns the extent of the specified field for the current recordset record. |
AimsFeatures |
getFeatures()
Returns the features collection. |
AimsField |
getField(int index)
Gets the field at the specified index of the collection. |
AimsField |
getField(java.lang.String name)
Gets the field matching the specified name. |
java.util.Vector |
getFields()
Gets the fields collection associated with the recordset. |
AimsFilter |
getFilter()
Gets the filter used to query this recordset. |
int |
getIdentifyMaximumResults()
Returns the number of maximum results that can be returned by a query. |
protected AimsFeatureLayer |
getLayer()
|
AimsRecordset |
getLayerManagerCopy(AimsMap map,
AimsFeatureLayer lyr)
Creates a copy of this recordset for use in another map. |
java.util.ArrayList |
getMapTipFields()
|
int |
getMaximumResults()
Returns the number of maximum results that can be returned by a query. |
java.lang.String |
getRequestAxl()
|
java.lang.String |
getResponseAxl()
|
AimsField |
getRowIdField()
Gets the rowid field from the recordset's field collection. |
java.util.HashSet |
getSelectedSet()
|
int |
getSelectedSetCount()
|
AimsField |
getSelectedSetField()
|
java.util.HashSet |
getSelectedSetSelection()
|
int |
getSelectMaximumResults()
Returns the number of maximum results that can be returned by a query. |
AimsShapeObject |
getShape()
|
AimsField |
getSortField()
|
boolean |
hasMapTipFields()
Returns an indicator of whether the recordset has any fields that can be used as map tips. |
boolean |
hasMoreRecords()
Returns a boolean value indicating whether there are more records to be loaded from the server. |
boolean |
hasSelectedSet()
|
boolean |
hasSelection()
|
void |
moveField(AimsField fld,
int toIndex)
Moves a field to the specified position in the fields list. |
void |
moveField(int fromIndex,
int toIndex)
Moves a field to a new position. |
boolean |
moveFirst()
Moves the recordset pointer to the first record. |
boolean |
moveNext()
Moves the recordset pointer to the next record. |
boolean |
moveNextGeometry()
Moves the recordset pointer to the next record. |
boolean |
movePrevious()
Moves the recordset pointer to the previous record. |
boolean |
query()
Submits a query to refresh the recordset based on the filter. |
boolean |
query(boolean clearRecordset,
boolean getAttributes,
boolean getGeometry,
int beginRecord)
Submits a query to refresh the recordset based on the filter. |
boolean |
queryGeometry()
Submits a query to refresh the recordset based on the filter. |
void |
removeField(int index)
Removes the specified field from the fields list. |
void |
removeField(java.lang.String name)
Removes the specified field from the fields list. |
void |
removeNonServiceFields()
Removes the fields in the recordset that are not service fields. |
protected void |
setAxlError(java.lang.String errorMsg)
Sets the error message related to the recordset query. |
void |
setBufferSize(int bufferSize)
|
protected void |
setFeatures(AimsFeatures features)
|
void |
setFilter(AimsFilter filter)
|
void |
setIdentifyMaximumResults(int maximumResults)
Sets the maximum results that can be returned by a query. |
protected void |
setLayer(AimsFeatureLayer layer)
|
protected void |
setMap(AimsMap map)
|
void |
setMaximumResults(int maximumResults)
Sets the maximum results that can be returned by a query. |
void |
setSelectedSet(java.util.HashSet set)
|
void |
setSelectedSetField(AimsField fld)
|
void |
setSelectedSetSelection(java.util.HashSet set)
|
void |
setSelectMaximumResults(int maximumResults)
Sets the maximum results that can be returned by a query. |
void |
setSortField(AimsField field)
|
void |
sort()
|
void |
sort(AimsField field)
Sorts the elements by the specified field. |
java.lang.String |
toString()
Returns a text representation of of this class. |
boolean |
usesSelectedSet()
|
void |
usesSelectedSet(boolean usesSelectedSet)
|
java.lang.String |
valueAsString(AimsField field)
Returns the contents of the specified field for the current recordset record as a string value. |
java.lang.String |
valueAsString(java.lang.String fieldName)
Returns the contents of the specified field for the current recordset record as a string value. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsRecordset()
| Method Detail |
public AimsField getSortField()
public void setSortField(AimsField field)
public void sort(AimsField field)
field - The field to sort by.public void sort()
public AimsRecordset getLayerManagerCopy(AimsMap map,
AimsFeatureLayer lyr)
map - The map where this layer will be used.lyr - The layer that uses this recordset.
public java.lang.Object clone()
public AimsRecordset getCopy()
public void setSelectedSetSelection(java.util.HashSet set)
public java.util.HashSet getSelectedSetSelection()
public boolean usesSelectedSet()
public void usesSelectedSet(boolean usesSelectedSet)
public boolean hasSelectedSet()
public boolean hasSelection()
public void setSelectedSetField(AimsField fld)
public AimsField getSelectedSetField()
public int getSelectedSetCount()
public java.util.HashSet getSelectedSet()
public void setSelectedSet(java.util.HashSet set)
protected void setFeatures(AimsFeatures features)
public int getMaximumResults()
public void setMaximumResults(int maximumResults)
maximumResults - The maximum records to return.public int getIdentifyMaximumResults()
public void setIdentifyMaximumResults(int maximumResults)
maximumResults - The maximum records to return.public int getSelectMaximumResults()
public void setSelectMaximumResults(int maximumResults)
maximumResults - The maximum records to return.public java.lang.String getRequestAxl()
public java.lang.String getResponseAxl()
protected void setMap(AimsMap map)
protected void setLayer(AimsFeatureLayer layer)
protected AimsFeatureLayer getLayer()
public AimsFilter getFilter()
public void setFilter(AimsFilter filter)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public boolean BOF()
public boolean EOF()
public boolean bufferedEOF()
public boolean query()
public boolean queryGeometry()
public boolean query(boolean clearRecordset,
boolean getAttributes,
boolean getGeometry,
int beginRecord)
clearRecordset - True if the recordset should be cleared.beginRecord - 1 to start at the first record, otherwise a positive
number. This is used to get more records when the cache routine only sends
a partial recordset.
public boolean moveNext()
public boolean moveNextGeometry()
public boolean bufferedMoveNext()
public boolean movePrevious()
public boolean moveFirst()
public java.lang.String valueAsString(java.lang.String fieldName)
fieldName - The name of the field that contents are requested.
public java.lang.String valueAsString(AimsField field)
field - The field that contents are requested.
public AimsShapeObject getShape()
public AimsEnvelope getFeatureExtent()
public boolean hasMapTipFields()
public java.util.ArrayList getMapTipFields()
public boolean hasMoreRecords()
public void clear()
public void clearFilter()
public AimsFeatures getFeatures()
protected boolean addFeature(AimsFeature feature)
feature - A feature to add to the feature collection.
public boolean addField(AimsField fld)
fld - A field to add to the fields collection.
public java.util.Vector getFields()
public AimsField getRowIdField()
public AimsField getField(int index)
public AimsField getField(java.lang.String name)
public void removeNonServiceFields()
public void removeField(int index)
index - The index number of the field.public void removeField(java.lang.String name)
name - The name of the field.
public void moveField(AimsField fld,
int toIndex)
fld - The field to move.toIndex - The location to move to.
public void moveField(int fromIndex,
int toIndex)
fromIndex - The original position.toIndex - The new position.public java.lang.String toString()
protected void setAxlError(java.lang.String errorMsg)
errorMsg - The error received from ArcIMS.public java.lang.String getAxlError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||