|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.sql.SqlQueryResult
public class SqlQueryResult
SQL query result.
| Field Summary | |
|---|---|
protected Query.ResultType |
_resultType
The result type. |
protected List<QueryResultRow> |
_rows
The result rows. |
| Constructor Summary | |
|---|---|
SqlQueryResult(ResultSet resultSet)
Constructs a query result around a ResultSet. |
|
| Method Summary | |
|---|---|
protected void |
_extractResults(ResultSet resultSet)
Extract the column names and results from a JDBC result set. |
void |
close()
Close and cleanup the underlying objects and resources (resultset if SQL, LDAP resources...) if needed. |
Collection<String> |
getColumnNames()
Get the column names. |
Query.ResultType |
getType()
Get the type of the result. |
Iterator<QueryResultRow> |
iterator()
|
void |
setType(Query.ResultType resultType)
Set the result type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Query.ResultType _resultType
protected List<QueryResultRow> _rows
| Constructor Detail |
|---|
public SqlQueryResult(ResultSet resultSet)
resultSet - | Method Detail |
|---|
public Query.ResultType getType()
QueryResult
getType in interface QueryResultpublic void setType(Query.ResultType resultType)
resultType - the result type.
public Collection<String> getColumnNames()
throws DataInclusionException
QueryResult
getColumnNames in interface QueryResultDataInclusionExceptionpublic Iterator<QueryResultRow> iterator()
iterator in interface Iterable<QueryResultRow>public void close()
QueryResult
close in interface QueryResult
protected void _extractResults(ResultSet resultSet)
throws SQLException
resultSet - the JDBC result set.
SQLException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||