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()
Return
ResultSetReturn
). The alternative is that it is
an update count (castable to UpdateCountReturn
).isResultSet
in interface Return
true
indicates that this
can be safely cast to ResultSetReturn
), other wise
it can be cast to UpdateCountReturn
.public List getResultList()
ResultSetReturn
ResultSet
and return the resulting List.getResultList
in interface ResultSetReturn
public Object getSingleResult()
ResultSetReturn
ResultSet
with the expectation that there is just a single level of
root returns.getSingleResult
in interface ResultSetReturn
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.