de.fuberlin.wiwiss.d2rq.sql
Class ResultRowMap
java.lang.Object
de.fuberlin.wiwiss.d2rq.sql.ResultRowMap
- All Implemented Interfaces:
- ResultRow
public class ResultRowMap
- extends Object
- implements ResultRow
A result row returned by a database query, presented as a
map from columns to string values.
- Version:
- $Id: ResultRowMap.java,v 1.2 2006/09/11 23:02:50 cyganiak Exp $
- Author:
- Richard Cyganiak (richard@cyganiak.de)
ResultRowMap
public ResultRowMap(Map columnsToValues)
fromResultSet
public static ResultRowMap fromResultSet(ResultSet resultSet,
List columns)
throws SQLException
- Throws:
SQLException
get
public String get(Attribute column)
- Specified by:
get
in interface ResultRow
toString
public String toString()
- Overrides:
toString
in class Object