com.esri.arcgis.geodatabase
Class RowBuffer

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.RowBuffer
All Implemented Interfaces:
IRowBuffer, java.io.Serializable

public class RowBuffer
extends java.lang.Object
implements IRowBuffer

RowBuffer Object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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.

 

See Also:
IRowBuffer, IRow, ITable, Serialized Form

Constructor Summary
RowBuffer(java.lang.Object obj)
          Construct a RowBuffer using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IRowBuffer getAsIRowBuffer()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IFields getFields()
          The fields Collection for this row buffer.
 java.lang.Object getValue(int index)
          The value of the field with the specified index.
 int hashCode()
          the hashcode for this object
 void setValue(int index, java.lang.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
 

Constructor Detail

RowBuffer

public RowBuffer(java.lang.Object obj)
          throws java.io.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 RowBuffer theRowBuffer = (RowBuffer) obj;

Throws:
java.io.IOException - if there are interop problems
Method Detail

getAsIRowBuffer

public IRowBuffer getAsIRowBuffer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


getValue

public java.lang.Object getValue(int index)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IRowBuffer
The value of the field with the specified index.

Supported Platforms

Windows, Solaris, Linux

Remarks

The Index parameter is a zero based index.

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

setValue

public void setValue(int index,
                     java.lang.Object value)
              throws java.io.IOException,
                     AutomationException
Description copied from interface: IRowBuffer
The value of the field with the specified index.

Supported Platforms

Windows, Solaris, Linux

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

getFields

public IFields getFields()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IRowBuffer
The fields Collection for this row buffer.

Supported Platforms

Windows, Solaris, Linux

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