Description
Takesa where clause and a select clause and returns a QueryResultSet of NameValueRecord
instancescontaining the selected values.
selectKeysidenties the values to be returned, functioning as an SQL select clause.
Thequery parameter is a where clause in the 5800 system query syntax, which is a subset of SQL.
Returnsa QueryResultSet. The results are stepped through by calling the next method and
usingthe getObjectIdentifier accessor.
Note– For more information on the 5800 system query language, refer to Chapter 4, “Sun
StorageTek5800 System Query Language.”
query(with PreparedStatement)
Returnsthe OIDs of metadata records matching the query as a QueryResultSet instance.
Synopsis
public QueryResultSet query(PreparedStatement query,
int resultsPerFetch)
Description
Takesa PreparedStatement and returns a QueryResultSet of SystemRecord instances
containingMetadataRecord OIDs.
ThePreparedStatement parameter enables queries with dynamic parameters to pass typed
dataitems to the query.
Returnsa QueryResultSet. The results are stepped through by calling the next method and
usingthe typed getXXX accessor methods.
Note– For more information on the 5800 system query language, refer to Chapter 4, “Sun
StorageTek5800 System Query Language.”
query(with PreparedStatement and selectKeys)
Returnsspecied elds from metadata records matching the query as a QueryResultSet
instance.
JavaAPI
Chapter2 • Sun StorageTek 5800 System Java Client API 35