private void specifyingFetchSize(CursorManagerSpecification cursorMngrSpec)
{
println("\nSpecifying a Fetch Size");
// Get the root CursorSpecification.
CursorSpecification rootCursorSpec =
cursorMngrSpec.getRootCursorSpecification();
// Get the default fetch size.
println("The default fetch size is "
+ rootCursorSpec.getDefaultFetchSize() + ".");
CursorManager cursorMngr = dp.createCursorManager(cursorMngrSpec);
Cursor rootCursor = cursorMngr.createCursor();
rootCursor.setFetchSize(10);
println("The fetch size is now " + rootCursor.getFetchSize() + ".");
}