org.melati.poem.csv
Class CSVColumn

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

public class CSVColumn
extends Object

A bridging object which is both a column in a CSV file and a column in a POEM database.

A CSVColumn can be a primary key for this table, ie unique and used by other tables to refer to this record.

A CSVColumn can also be a foreign key into another CSVTable.


Constructor Summary
CSVColumn(String poemName)
          Simplest case constructor.
CSVColumn(String poemName, boolean isPrimaryKey)
          Constructor for a key value into another table.
CSVColumn(String poemName, CSVTable foreignTable)
          Constructor for a key value into another table.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVColumn

public CSVColumn(String poemName)
Simplest case constructor.

Parameters:
poemName - the name of the POEM column this is to be mapped to.

CSVColumn

public CSVColumn(String poemName,
                 CSVTable foreignTable)
Constructor for a key value into another table.

Parameters:
poemName - the name of the POEM column this is to be mapped to.
foreignTable - another CSVTable in which this value should be found.

CSVColumn

public CSVColumn(String poemName,
                 boolean isPrimaryKey)
Constructor for a key value into another table.

Parameters:
poemName - the name of the POEM column this is to be mapped to.
isPrimaryKey - flag to indicate this is the primary key column.


Copyright © 2000-2010 PanEris. All Rights Reserved.