Microsoft SDK for Java

getRows

The getRows method of the Recordset class retrieves multiple records of a Recordset object into an array. getRows has the following signatures:

getRows()
getRows(int Rows)
getRows(int Rows, java.lang.Object bmkStart)
getRows(int Rows, Object bmkStart, Object[] fieldList)

getRows()

Retrieves multiple records of a Recordset object into an array.

Syntax

public com.ms.com.Variant getRows();

Return Value

Returns a Variant whose value is a two-dimensional array.

getRows(int Rows)

Retrieves multiple records of a Recordset object into an array.

Syntax

public com.ms.com.Variant getRows(int Rows);

Return Value

Returns a Variant whose value is a two-dimensional array.

Parameters

Rows An AdoEnums.GetRowsOption value that indicates the number of records to retrieve. The default is REST.

getRows(int Rows, java.lang.Object bmkStart)

Retrieves multiple records of a Recordset object into an array.

Syntax

public com.ms.com.Variant getRows(int Rows, java.lang.Object bmkStart);

Return Value

Returns a Variant whose value is a two-dimensional array.

Parameters

Rows An AdoEnums.GetRowsOption value that indicates the number of records to retrieve. The default is REST.
bmkStart A string or Variant that evaluates to the bookmark for the record from which the getRows operation should begin. You can also use a AdoEnums.Bookmark value.

getRows(int Rows, Object bmkStart, Object[] fieldList)

Retrieves multiple records of a Recordset object into an array.

Syntax

public Object[][] getRows(int Rows, Object bmkStart, Object[] fieldList);

Return Value

Returns a Variant whose value is a two-dimensional array.

Parameters

Rows An AdoEnums.GetRowsOption value that indicates the number of records to retrieve. The default is REST.
bmkStart A string or Variant that evaluates to the bookmark for the record from which the getRows operation should begin. You can also use a AdoEnums.Bookmark value.
fieldList A Variant that represents a single field name or ordinal position or an array of field names or ordinal position numbers. ADO returns only the data in these fields.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.