org.d2rq.db
Class ResultRow

java.lang.Object
  extended by org.d2rq.db.ResultRow

public class ResultRow
extends Object

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
static ResultRow NO_ATTRIBUTES
           
 
Constructor Summary
ResultRow(Map<ProjectionSpec,String> projectionsToValues)
           
 
Method Summary
static ResultRow createOne(ProjectionSpec column, String value)
           
static ResultRow fromResultSet(ResultSet resultSet, List<ProjectionSpec> projectionSpecs, SQLConnection database)
           
 String get(ProjectionSpec projection)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ATTRIBUTES

public static final ResultRow NO_ATTRIBUTES
Constructor Detail

ResultRow

public ResultRow(Map<ProjectionSpec,String> projectionsToValues)
Method Detail

createOne

public static ResultRow createOne(ProjectionSpec column,
                                  String value)

fromResultSet

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

get

public String get(ProjectionSpec projection)

toString

public String toString()
Overrides:
toString in class Object