Microsoft SDK for Java

getCacheSize

The getCacheSize and setCacheSize methods of the Recordset class indicate how many records to retrieve at one time into local memory, or control how many records the provider keeps in its buffer, respectively.

Syntax

public int getCacheSize();
public void setCacheSize(int size);

Return Value

Sets or returns a value that must be greater than 0. Default is 1.

Parameters

size An integer that sets the number of records for the provider to keep in its buffer.

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