org.apache.pivot.sql
Class ResultList.Field

java.lang.Object
  extended by org.apache.pivot.sql.ResultList.Field
Enclosing class:
ResultList

public static final class ResultList.Field
extends Object

Class that maps a result set column to a map key/value pair.


Field Summary
 String columnName
          The source column name.
 String key
          The name of the map key.
 Class<?> type
          The type of the map value.
 
Constructor Summary
ResultList.Field(String columnName)
           
ResultList.Field(String columnName, String key)
           
ResultList.Field(String columnName, String key, Class<?> type)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnName

public final String columnName
The source column name.


key

public final String key
The name of the map key. If null, the column name will be used.


type

public final Class<?> type
The type of the map value. If null, the default SQL type will be used.

Constructor Detail

ResultList.Field

public ResultList.Field(String columnName)

ResultList.Field

public ResultList.Field(String columnName,
                        String key)

ResultList.Field

public ResultList.Field(String columnName,
                        String key,
                        Class<?> type)