AR System Java API

com.bmc.arsys.api
Class SQLResult

java.lang.Object
  extended by com.bmc.arsys.api.SQLResult
All Implemented Interfaces:
Serializable, Cloneable

public class SQLResult
extends Object
implements Cloneable, Serializable

The SQLResult class returns a list of result values returned from an SQL query.

See Also:
Serialized Form

Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self
 boolean equals(Object obj)
           
 List<List<Value>> getContents()
          Returns list of zero or more (accessible) rows that match the criteria defined by the sqlCommand value Each item in the list represents one matching row, each of which contains a list of the selected column values.
 String getReturnCommand()
           
 int getTotalNumberOfMatches()
          Returns the total number of (accessible) rows that match the SQL selection criteria.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getTotalNumberOfMatches

public int getTotalNumberOfMatches()
Returns the total number of (accessible) rows that match the SQL selection criteria. This value does not represent the number of rows returned unless the number of matching rows is less than or equal to the maxRetrieve value Specify NULL for this parameter if you do not want to retrieve this count.

Note: Performing this count requires additional search time if the number of matching rows is more than the maxRetrieve value In this case, the cost of completing the search diminishes the performance benefits of retrieving fewer rows.


getContents

public List<List<Value>> getContents()
Returns list of zero or more (accessible) rows that match the criteria defined by the sqlCommand value Each item in the list represents one matching row, each of which contains a list of the selected column values. The system returns a list with zero items if no rows match the specified criteria.


toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getReturnCommand

public String getReturnCommand()
Returns:
the returnCommand

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.