NAME

DBD::iPod::row - a song record from the iPod.

SYNOPSIS

#construct an object with a hashref
$row = DBD::iPod::row->new( { field1 => 'value1' } ); #...

#call column() to get data back out
$row->column('field1'); #returns 'value1'

#compare the columns to a SQL::Statement's WHERE clause
$boolean = $row->is_match($statement->where());

DESCRIPTION

This class implements just enough to use the SQL::Statement::Op datastructure to perform recursive boolean matching on an iPod song record. "is_match()".

AUTHOR

Author <allenday@ucla.edu>

SEE ALSO

SQL::Statement.

COPYRIGHT AND LICENSE

GPL

APPENDIX

The rest of the documentation details each of the object methods. Internal methods are usually preceded with a '_'. Methods are in alphabetical order for the most part.

new()

Usage   : DBD::iPod::row->new({});
Function: make a new row record
Returns : a DBD::iPod::row object
Args    : a hashref of attribute/value pairs

column()

Usage   : $row->column('bitrate'); #might return "256"
Function: get row attributes (columns)
Returns : value of attribute or undef if attribute
          does not exist.
Args    : attribute name to retrieve value of

is_match()

Usage   : $boolean = $row->is_match($where);
Function: match row's contents (i.e. the column values) to
          a SQL SELECT statement's WHERE clause.
Returns : 1 on true, 0 on false, undef on failure
Args    : a SQL::Statement::Op object.  you can get it
          by calling ->where() on a SQL::Statement object