planetj.database
Interface IRowCreator

All Known Implementing Classes:
Row

public interface IRowCreator

Classes implement this Interface to indicate that they can create a Row of a particular type based on the information in a default Row.


Method Summary
 Row createRow(Row pDefaultRow)
          Creates a new Row.
 

Method Detail

createRow

public Row createRow(Row pDefaultRow)
              throws CMException
Creates a new Row. Information from the database is read into a default Row by the DataEngine; this method is then invoked to get a Row of the correct type based on the information in the default Row. Typically the data in the Row is examined by this method, a Row of the appropriate type is created, and then the transferDataTo() method is used to move the data from the default Row to the newly created Row.

Parameters:
pDefaultRow - A Row containing data read from the database.
Returns:
A Row which the DataEngine will add to a RowCollection
CMException