|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.layer.query.Recordset
public class Recordset
Contains a collections of Records, Geometry, and
Envelope objects associated with a specific query against a layer. The
Recordset object get instantiated after a filter has been applied to a
FeatureLayer. Before applying a different Filter, call clearRecordset()
method to remove records from previous Filter operation.
Constructor Summary | |
---|---|
Recordset()
Creates an instance of a Recordset object. |
Method Summary | |
---|---|
boolean |
addEnvelope(Envelope object)
Adds the given Envelope objects to an envelope collection in this Recordset. |
boolean |
addGeometry(Geometry object)
Adds the given Geometry objects to the Geometry collection. |
boolean |
addRecords(Records object)
Adds the given Records objects to a records object collection in this Recordset. |
void |
clearEnvelope()
Clears all Envelope objects from the envelopes collection. |
void |
clearGeometry()
Clears all Geometry objects from the geometry object collection. |
void |
clearRecordset()
Clears all Records, Envelope, and Geometry objects from the Recordset object. |
int |
getCount()
Returns the number of records that are actually in the Recordset at a certain time. |
Envelope |
getEnvelope(int index)
Returns the Envelope associated with this Recordset. |
int |
getEnvelopeCount()
Returns a count of the Envelope objects in the envelope collection. |
long |
getFeaturesCount()
Returns the value of attributes "count" in the ArcXML Response <FEATURECOUNT>. |
Collection |
getGeometry()
Returns the collection of geometry objects. |
Geometry |
getGeometry(int index)
Returns the Geometry object associated with this Recordset. |
int |
getGeometryCount()
Returns the count of the Geometry objects in the Geometry objects collection. |
Records |
getRecords(int index)
Returns the Records object at given index in this Recordset. |
TableDesc |
getTableDesc()
Returns the TableDesc associated with this Recordset object. |
boolean |
isHasMore()
Returns the value of ArcXML attribute "hasmore". |
void |
setFeaturesCount(long value)
Sets the value of ArcXML attribute "count" from the Response |
void |
setGeometry(Collection geometry)
Sets the collection of geometry objects. |
void |
setHasMore(boolean value)
Sets the value of ArcXML attribute "hasmore" from the Response |
void |
setTableDesc(TableDesc object)
Sets the TableDesc object of the Recordset object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Recordset()
Recordset recordset = new Recordset();
Method Detail |
---|
public int getCount()
filter.setWhereExpression="POP1990>1000";
filter.setSkipFeatures(true);
layer.setFilterObject(filter);
map.refresh();
int count = layer.getRecordset.getCount();
int featurecount=layer.getRecordset.getFeaturesCount();
featurecount is the number of records that satisfy the WhereExpression,
while count is 0 since no records are actually returned.
filter.setCheckesc(true);
See KB article 23879 for more information.
public Records getRecords(int index)
Records records = recordset.getRecords(0);
index
- the Records object to return.
public TableDesc getTableDesc()
TableDesc tabledesc = recordset.getTableDesc();
public int getEnvelopeCount()
int envCount = recordset.getEnvelopeCount();
public Envelope getEnvelope(int index)
Envelope env = recordset.getEnvelope(0);
index
- the Envelope to return.
public int getGeometryCount()
int geometryCount = recordset.getGeometryCount();
getGeometry(int)
,
addGeometry(com.esri.aims.mtier.model.map.layer.query.Geometry)
public boolean addGeometry(Geometry object)
object
- the Geometry object
getGeometry(int)
,
getGeometryCount()
public Geometry getGeometry(int index)
Geometry geom = recordset.getGeometry(0);
index
- the Geometry item to return from the Geometry collection.
getGeometryCount()
,
addGeometry(com.esri.aims.mtier.model.map.layer.query.Geometry)
public void clearGeometry()
recordset.clearGeometry();
addGeometry(com.esri.aims.mtier.model.map.layer.query.Geometry)
,
getGeometry(int)
,
getGeometryCount()
public void clearEnvelope()
recordset.clearEnvelope();
addEnvelope(com.esri.aims.mtier.model.envelope.Envelope)
,
getEnvelope(int)
,
getEnvelopeCount()
public boolean addEnvelope(Envelope object)
object
- the Envelope object. Is used after FEATURES response is received
and parsed.
getEnvelope(int)
,
clearEnvelope()
,
getEnvelopeCount()
public boolean addRecords(Records object)
object
- the Records object. Is used after FEATURES response is received
and parsed.
public void setTableDesc(TableDesc object)
object
- the TableDesc object.public void clearRecordset()
recordset.clearRecordset();
public void setHasMore(boolean value)
isHasMore()
public boolean isHasMore()
long fl = 5;
filter.setFeatureLimit(fl);
filter.setBeginRecord(0);
if (recordset.isHasMore()){
filter.setFeatureLimit(fl);
filter.setBeginRecord(fl+1);
}
public void setFeaturesCount(long value)
getFeaturesCount()
public long getFeaturesCount()
long fCount = recordset.getFeaturesCount();
public void setGeometry(Collection geometry)
geometry
- the geometry collectionpublic Collection getGeometry()
Polygon
, Polyline
or Points
Collection
- the collection of geometry objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |