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 SELECT clause entries to string values.

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from interface de.fuberlin.wiwiss.d2rq.sql.ResultRow
NO_ATTRIBUTES
 
Constructor Summary
ResultRowMap(Map<ProjectionSpec,String> projectionsToValues)
           
 
Method Summary
static ResultRowMap fromResultSet(ResultSet resultSet, List<ProjectionSpec> projectionSpecs, ConnectedDB database)
           
 String get(ProjectionSpec projection)
           
 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<ProjectionSpec,String> projectionsToValues)
Method Detail

fromResultSet

public static ResultRowMap fromResultSet(ResultSet resultSet,
                                         List<ProjectionSpec> projectionSpecs,
                                         ConnectedDB database)
                                  throws SQLException
Throws:
SQLException

get

public String get(ProjectionSpec projection)
Specified by:
get in interface ResultRow

toString

public String toString()
Overrides:
toString in class Object