saffron.runtime
Class IteratorResultSet.FieldGetter

java.lang.Object
  |
  +--saffron.runtime.IteratorResultSet.FieldGetter
All Implemented Interfaces:
IteratorResultSet.ColumnGetter
Enclosing class:
IteratorResultSet

public static class IteratorResultSet.FieldGetter
extends Object
implements IteratorResultSet.ColumnGetter

A FieldGetter retrieves each public field as a separate column.


Field Summary
private  Class clazz
           
private static Field[] emptyFieldArray
           
private  Field[] fields
           
 
Constructor Summary
IteratorResultSet.FieldGetter(Class clazz)
           
 
Method Summary
 Object get(Object o, int columnIndex)
           
 String[] getColumnNames()
           
private  Field[] getFields()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private final Class clazz

emptyFieldArray

private static final Field[] emptyFieldArray

fields

private final Field[] fields
Constructor Detail

IteratorResultSet.FieldGetter

public IteratorResultSet.FieldGetter(Class clazz)
Method Detail

get

public Object get(Object o,
                  int columnIndex)
Specified by:
get in interface IteratorResultSet.ColumnGetter

getColumnNames

public String[] getColumnNames()
Specified by:
getColumnNames in interface IteratorResultSet.ColumnGetter

getFields

private Field[] getFields()

SourceForge.net_Logo