de.fuberlin.wiwiss.d2rq.sql
Class ResultRowMap

java.lang.Object
  extended by 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)

Field Summary
 
Fields inherited from interface de.fuberlin.wiwiss.d2rq.sql.ResultRow
NO_ATTRIBUTES
 
Constructor Summary
ResultRowMap(Map columnsToValues)
           
 
Method Summary
static ResultRowMap fromResultSet(ResultSet resultSet, List columns)
           
 String get(Attribute column)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultRowMap

public ResultRowMap(Map columnsToValues)
Method Detail

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