com.esri.arcgis.geodatabase
Class RowBuffer

java.lang.Object
  extended by com.esri.arcgis.geodatabase.RowBuffer
All Implemented Interfaces:
IRowBuffer, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RowBuffer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRowBuffer

Esri Row Buffer object.

Remarks

A RowBuffer is a transient object that is capable of holding the state of a row, but has no object identity. It is used primarily during data loading as the argument to the InsertRow method on an insert cursor. A RowBuffer is obtained from a Table using the CreateRowBuffer method.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RowBuffer(Object obj)
          Construct a RowBuffer using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IFields getFields()
          The fields Collection for this row buffer.
 Object getValue(int index)
          The value of the field with the specified index.
 int hashCode()
          the hashcode for this object
 void setValue(int index, Object value)
          The value of the field with the specified index.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RowBuffer

public RowBuffer(Object obj)
          throws IOException
Construct a RowBuffer using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RowBuffer.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
RowBuffer o = (RowBuffer)obj; // will not work

RowBuffer o = new RowBuffer(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems RowBuffer theRowBuffer = (RowBuffer) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getValue

public Object getValue(int index)
                throws IOException,
                       AutomationException
The value of the field with the specified index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getValue in interface IRowBuffer
Parameters:
index - The index (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setValue

public void setValue(int index,
                     Object value)
              throws IOException,
                     AutomationException
The value of the field with the specified index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setValue in interface IRowBuffer
Parameters:
index - The index (in)
value - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFields

public IFields getFields()
                  throws IOException,
                         AutomationException
The fields Collection for this row buffer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFields in interface IRowBuffer
Returns:
A reference to a com.esri.arcgis.geodatabase.IFields
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.