org.melati.poem.csv
Class CSVRecord

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

public class CSVRecord
extends Object

A record within a CSV File.


Constructor Summary
CSVRecord(Table table)
          Constructor.
 
Method Summary
 void addField(CSVField field)
          Add a field to this record.
 Vector getFields()
           
 int getLineNo()
           
 Persistent getPersistent()
          Retreive the Persistent corresponding to this CSVRecord, if there is one.
 int getRecordNo()
           
 void setLineNo(int lineNo)
           
 void setRecordNo(int recordNo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVRecord

public CSVRecord(Table table)
Constructor.

Method Detail

addField

public void addField(CSVField field)
Add a field to this record.


getPersistent

public Persistent getPersistent()
                         throws NoPrimaryKeyInCSVTableException,
                                CSVWriteDownException
Retreive the Persistent corresponding to this CSVRecord, if there is one.

Returns:
the existing or newly created Poem Persistent
Throws:
NoPrimaryKeyInCSVTableException
CSVWriteDownException

setRecordNo

public void setRecordNo(int recordNo)
Parameters:
recordNo - The recordNo to set.

getRecordNo

public int getRecordNo()
Returns:
Returns the recordNo.

setLineNo

public void setLineNo(int lineNo)
Parameters:
lineNo - The lineNo to set.

getLineNo

public int getLineNo()
Returns:
Returns the lineNo.

getFields

public Vector getFields()
Returns:
the fields


Copyright © 2000-2010 PanEris. All Rights Reserved.