public class ResultSet extends Object
The ResultSet can also be used in conjunction with the MessageManager class that provide Locale independent messaging. The ResultSet has an associated Locale that users of the class can use to generate the appropriate messages dependent on the Locale.
| Constructor and Description |
|---|
ResultSet()
Creates a new Results container.
|
ResultSet(Locale l)
Creates a new Results container with the specified Locale.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
addResult(int sev,
String message)
Returns a Result container that can be populated with further information
if required.
|
Result |
addResult(Result r)
Makes a copy of the specified result and adds it to this result set.
|
void |
addResults(ResultSet rs)
Adds copies of the results in the specified result set to this result set.
|
int |
errors()
Returns the number of errors encountered.
|
Iterator<Result> |
iterator()
Returns an iterator over the current set of results.
|
Result |
lastResult()
Provides access to the last result that was added to the set.
|
Locale |
locale()
Returns the number of results in the set.
|
void |
reset()
Resets the result to have no results.
|
int |
resultCount()
Returns the number of results in the set.
|
String |
toString()
Returns the entire set of results as a string.
|
int |
warnings()
Returns the number of warnings encountered.
|
int |
worst()
Returns the worst severity that's been added to the set.
|
public ResultSet()
public ResultSet(Locale l)
public void reset()
public Locale locale()
public int resultCount()
public int errors()
public int warnings()
public Result addResult(int sev, String message)
public Result addResult(Result r)
public Result lastResult()
public int worst()
public String toString()
public void addResults(ResultSet rs)
Copyright © 2023. All rights reserved.