net.sf.imageCave.database
Class DataRow

java.lang.Object
  |
  +--net.sf.imageCave.database.DataRow

public class DataRow
extends java.lang.Object

An object that represents a row in a DataTable in the Database.

Since:
13 March, 2004
Version:
%I%, %G%
Author:
Stuart T. Tett, disc0stu@sf.net
See Also:
Database, DataTable, DataTableBuilder

Field Summary
 java.util.LinkedList fields
          Holds all the values of the fields in this DataRow
 
Constructor Summary
DataRow()
          Constructor
 
Method Summary
 void appendField(java.lang.String value)
          Add another field to the end of this DataRow.
 boolean equals(DataRow row)
           
 boolean fieldMatches(int index, java.lang.String value)
           
 boolean update(int fieldToUpdate, java.lang.String newValue)
          Update this DataRow.
 int width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fields

public java.util.LinkedList fields
Holds all the values of the fields in this DataRow

Constructor Detail

DataRow

public DataRow()
Constructor

Method Detail

update

public boolean update(int fieldToUpdate,
                      java.lang.String newValue)

Update this DataRow. String arrays of field names and their new values should line up, repectively.

Parameters:
fieldToUpdate -
Returns:
true if successful, false otherwise

equals

public boolean equals(DataRow row)

appendField

public void appendField(java.lang.String value)

Add another field to the end of this DataRow.

Parameters:
value - the string value of the field.

width

public int width()

fieldMatches

public boolean fieldMatches(int index,
                            java.lang.String value)


Copyright 2004 Brian Lund, Justin Rasmussen, & Stuart Tett. All Rights Reserved.