org.melati.poem
Class FieldSet

Package class diagram package FieldSet
java.lang.Object
  extended by org.melati.poem.FieldSet

public class FieldSet
extends Object

A set of Fields accessible in sequence or looked up using an encoding of the table name and column name.


Constructor Summary
FieldSet(Hashtable<String,Integer> table_columnMap, Field[] fields)
          Constructor.
 
Method Summary
 Enumeration<Field> elements()
           
 Field get(String name)
          Return a specified field.
 String toString()
          Used to debug tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldSet

public FieldSet(Hashtable<String,Integer> table_columnMap,
                Field[] fields)
Constructor.

Parameters:
table_columnMap - a Hashtable keyed on tablename underscore fieldname containing indices to fields
fields - an array of fields
Method Detail

elements

public Enumeration<Field> elements()
Returns:
an Enumeration of the fields

get

public Field get(String name)
Return a specified field.

Parameters:
name - The table name and column name separated by "_".
Returns:
a Field with given name or null
See Also:
TailoredResultSetEnumeration.mapped(java.sql.ResultSet)

toString

public String toString()
Used to debug tests.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2000-2010 PanEris. All Rights Reserved.