net.sf.saffron.runtime
Class IteratorResultSet.FieldGetter

java.lang.Object
  |
  +--net.sf.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

emptyFieldArray

private static final Field[] emptyFieldArray

clazz

private final Class clazz

fields

private final Field[] fields
Constructor Detail

IteratorResultSet.FieldGetter

public IteratorResultSet.FieldGetter(Class clazz)
Method Detail

getColumnNames

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

get

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

getFields

private Field[] getFields()

SourceForge.net_Logo