Sun StorageTek 5800 System Client API Reference Guide

query

Returns a ResultSet of SystemRecord instances containing MetadataRecord OIDs.

Synopsis

     public QueryResultSet 
         query(java.lang.String query,int resultsPerFetch) 
         throws ArchiveException, java.io.IOException

Description

Takes a where clause and returns a QueryResultSet of SystemRecord instances containing MetadataRecord OIDs.

The query parameter is a where clause in the 5800 system query syntax, which is a subset of SQL.

Returns a QueryResultSet. The results are stepped through by calling the next method and using the typed getXXX accessor methods.


Note –

For more information on the 5800 system query language, refer to Chapter 4, Sun StorageTek 5800 System Query Language.