|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.RelQueryRow
A row defined by a join of the datasets in a RelQueryTable.
A RelQueryRow represents a row of data in a RelQueryTable. A RelQueryRow can be obtained from a RelQueryCursor (ICursor::NextRow) or methods like ITable::GetRow. The ITable::CreateRow method is not supported and will return an error if used.
The IRow, IRowBuffer and IObject interfaces are always implemented by a RelQueryRow. The IFeature, IFeatureBuffer, and IFeatureDraw interfaces are only implemented if the RelQueryTable has a geometry field. See the RowBuffer and Row class topics as well as the Object and Feature class topics for more information on rows in general.
A RelQueryRow is read-only, therefore some of the properties and methods in these interfaces may not be supported. The following table lists the unsupported properties and methods. If any of these are used, an error is returned:
| Interface | Unsupported Property/Method |
|---|---|
| IRowBuffer | Value - Set is unsupported, but Get is supported |
| IRow | Store |
| Delete | |
| IFeature | Shape - Set is unsupported, but Get is supported |
| IFeatureBuffer | Shape - Set is unsupported, but Get is supported |
| Constructor Summary | |
RelQueryRow(java.lang.Object obj)
Construct a RelQueryRow using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
void |
delete()
Deletes the row. |
void |
draw(int drawPhase,
IDisplay display,
ISymbol symbol,
boolean symbolInstalled,
IGeometry geometry,
int drawStyle)
Draws the feature on the display. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IObjectClass |
esri_getClass()
The Object Class for the row. |
IFeature |
getAsIFeature()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IFeatureBuffer |
getAsIFeatureBuffer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IFeatureDraw |
getAsIFeatureDraw()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IFeatureProject |
getAsIFeatureProject()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IObject |
getAsIObject()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IRow |
getAsIRow()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IRowBuffer |
getAsIRowBuffer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IEnvelope |
getExtent()
The extent of the feature. |
int |
getFeatureType()
The type of the feature. |
IFields |
getFields()
The fields Collection for this row buffer. |
IInvalidArea |
getInvalidArea()
The area to be drawn. |
int |
getOID()
The OID for the row. |
IGeometry |
getShape()
A reference to the default shape for the feature. |
IGeometry |
getShapeCopy()
A cloned copy of the default shape for the feature. |
ITable |
getTable()
The Table for the row. |
java.lang.Object |
getValue(int index)
The value of the field with the specified index. |
int |
hashCode()
the hashcode for this object |
boolean |
isHasOID()
Indicates if the row has an OID. |
void |
project(ISpatialReference outputSR)
Project the feature geometry to the provided spatial reference. |
void |
setInvalidAreaByRef(IInvalidArea invalidArea)
The area to be drawn. |
void |
setShapeByRef(IGeometry shape)
A reference to the default shape for the feature. |
void |
setValue(int index,
java.lang.Object value)
The value of the field with the specified index. |
void |
store()
Stores the row. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelQueryRow(java.lang.Object obj)
throws java.io.IOException
obj to RelQueryRow. *
RelQueryRow o = (RelQueryRow)obj; // will not work
RelQueryRow o = new RelQueryRow(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
RelQueryRow theRelQueryRow = (RelQueryRow) obj;
java.io.IOException - if there are interop problems| Method Detail |
public IRow getAsIRow()
public IObject getAsIObject()
public IRowBuffer getAsIRowBuffer()
public IFeature getAsIFeature()
public IFeatureBuffer getAsIFeatureBuffer()
public IFeatureDraw getAsIFeatureDraw()
public IFeatureProject getAsIFeatureProject()
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean isHasOID()
throws java.io.IOException,
AutomationException
IRowIf the table has been registered with the geodatabase it will have unique Object ID, automatically created by the register tool, and the HasOID property will be set to True. Tables not registered with the geodatabase will not have an OID column and the HasOID property will be set to False. See the IClassSchemaEdit::RegisterAsObjectClass method for more information.
isHasOID in interface IRowAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getOID()
throws java.io.IOException,
AutomationException
IRowGets the OID for a row in a table that has a unique Object ID, such as tables registered with the geodatabase.
getOID in interface IRowAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ITable getTable()
throws java.io.IOException,
AutomationException
IRowReturns a pointer to the table the row belongs to.
getTable in interface IRowjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void store()
throws java.io.IOException,
AutomationException
IRowThe Store method is called by an application once it has modified the values of a Row. Once Store is called on a Row object, all subsequent queries within the same edit session, using the Geodatabase API, will reflect the modified state of the Row object.
All edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.
Calling the Store method triggers the following actions:
- The IRowEvents::OnChanged is called for the row being stored. The OnNew is called if this is a newly created row being stored for the first time. A custom row object can implement the OnChanged method and take some special action when it is called - for example; update a special column in the row
- The IRelatedObjectEvents::RelatedObjectChanged method is called for related objects in a related object class if the table for this row is an object class that participates in relationship classes with notification
Store should not be used for batch operations, such as updates or inserts. For performing a number of inserts or updates using cursors, refer to the ITable::Insert, ITable::Update, ITable::UpdateSearchedRows , IFeatureClass::Update andIFeatureClass::Insert. If an insert or update cursor is used on non-simple features (such as network features), the cursor will revert to using Store.
It is not necessary to explicitly call Connect on network features, this is handled polymorphically when Store is called on the feature. This is also the case with features in a Topology, Dirty Area creation is handled internally when Store is called.
Store should not be called inside of edit events, such as OnCreateFeature, OnChangeFeature or OnDeleteFeature. Even if you are modifying the geometry or other field values, Store will be called once the event is complete.
store in interface IRowjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws java.io.IOException,
AutomationException
IRowAll edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.
delete in interface IRowAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.Object getValue(int index)
throws java.io.IOException,
AutomationException
IRowBufferThe Index parameter is a zero based index.
getValue in interface IRowBufferindex - The index (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setValue(int index,
java.lang.Object value)
throws java.io.IOException,
AutomationException
IRowBuffer
setValue in interface IRowBufferindex - The index (in)value - A Variant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFields getFields()
throws java.io.IOException,
AutomationException
IRowBuffer
getFields in interface IRowBufferjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IObjectClass esri_getClass()
throws java.io.IOException,
AutomationException
IObject
esri_getClass in interface IObjectAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGeometry getShapeCopy()
throws java.io.IOException,
AutomationException
IFeature
getShapeCopy in interface IFeaturejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeometry getShape()
throws java.io.IOException,
AutomationException
IFeatureThe basic process to change the shape of a feature is:
1) Get the feature's existing geometry through IFeature.Shape or create a new geometry
2) Modify the geometry
3) Set the feature's geometry using IFeature.Shape
4) Store the feature
All edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.
getShape in interface IFeatureAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setShapeByRef(IGeometry shape)
throws java.io.IOException,
AutomationException
IFeature
setShapeByRef in interface IFeatureshape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getExtent()
throws java.io.IOException,
AutomationException
IFeature
getExtent in interface IFeatureAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getFeatureType()
throws java.io.IOException,
AutomationException
IFeature
getFeatureType in interface IFeatureAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void draw(int drawPhase,
IDisplay display,
ISymbol symbol,
boolean symbolInstalled,
IGeometry geometry,
int drawStyle)
throws java.io.IOException,
AutomationException
IFeatureDraw
draw in interface IFeatureDrawdrawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)symbol - A reference to a com.esri.arcgis.display.ISymbol (in)symbolInstalled - The symbolInstalled (in)geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)drawStyle - A com.esri.arcgis.geodatabase.esriDrawStyle constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setInvalidAreaByRef(IInvalidArea invalidArea)
throws java.io.IOException,
AutomationException
IFeatureDraw
setInvalidAreaByRef in interface IFeatureDrawinvalidArea - A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IInvalidArea getInvalidArea()
throws java.io.IOException,
AutomationException
IFeatureDraw
getInvalidArea in interface IFeatureDrawjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void project(ISpatialReference outputSR)
throws java.io.IOException,
AutomationException
IFeatureProjectProjects the feature from the current spatial reference to the output spatial reference.
project in interface IFeatureProjectoutputSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||