protected static class ResultImpl.ResultSetReturn extends Object implements ResultSetReturn
| Constructor and Description |
|---|
ResultImpl.ResultSetReturn(ResultImpl storedProcedureOutputs,
ResultSet resultSet) |
| Modifier and Type | Method and Description |
|---|---|
List |
getResultList()
Consume the underlying
ResultSet and return the resulting List. |
Object |
getSingleResult()
Consume the underlying
ResultSet with the expectation that there is just a single level of
root returns. |
boolean |
isResultSet()
Determine if this return is a result (castable to
ResultSetReturn). |
public ResultImpl.ResultSetReturn(ResultImpl storedProcedureOutputs, ResultSet resultSet)
public boolean isResultSet()
ReturnResultSetReturn). The alternative is that it is
an update count (castable to UpdateCountReturn).isResultSet in interface Returntrue indicates that this can be safely cast to ResultSetReturn), other wise
it can be cast to UpdateCountReturn.public List getResultList()
ResultSetReturnResultSet and return the resulting List.getResultList in interface ResultSetReturnpublic Object getSingleResult()
ResultSetReturnResultSet with the expectation that there is just a single level of
root returns.getSingleResult in interface ResultSetReturnCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.