NAME

cs::DBI::Table::RowObject - base class for objects wrapping a table row.


SYNOPSIS

use cs::DBI::Table::RowObject;


DESCRIPTION

The cs::DBI::Table::RowObject module provides a base class for objects which embody a row from a table.


OBJECT CREATION

fetch cs::DBI::Table::RowObject (keyvalue,dbh,table,keyfield,where,preload)

Return a cs::DBI::Table::RowObject representing the row whose keyfield matches keyvalue from the table specified by dbh, table and where as for the cs::DBI::hashtable function. This object is suitable for subclassing by a table specific module.


OBJECT METHODS

_Data()

Return the hashref to the actual row data (tied to a cs::DBI::Table::Row object).

Fields()

Return the field names in this row.

Flags()

Return a cs::Flags object containing the project's flags. Changes made to this object are not reflected in the database until the SaveFlags method (below) is called.

SaveFlags()

Bring the database into sync with the flags stored in the user object.

GetSet(field,value)

If value is omitted, return the current value of the field. If supplied, set the value of the field.


SEE ALSO

cs::DBI(3), cs::DBI::Table::Hash(3)


AUTHOR

Cameron Simpson <cs@zip.com.au>