DBIx:: StORM:: Table
Summary
DBIx:: StORM:: Table
An StORM class representing a table. This class inherits from DBIx::StORM::RecordSet, so can be grep’d (filtered), sorted and viewed. You can also insert new rows. Tables can be array dereferenced to iterate over the rows in the table. =end NaturalDocs Summary
_new (private instance)Create a new DBIx::StORM::Table object from a connection. Parameters
Returns
=end NaturalDocs _get_sth (private instance)Actually run the query using the DBI and the SQLDriver and return a result statement handle. This is a simpler, speedier version of that in DBIx::StORM::RecordSet. ParametersNone Returns
=end NaturalDocs foreign_keys (public instance)Fetch a hash of all the foreign keys in this table. The hash key is the string name of the foreign key column in this table, and the value is a table reference to the column in the foreign table. ParametersNone Returns
=end NaturalDocs view (public instance)Create a new DBIx::StORM::RecordSet with derivable columns added. Parameters
Returns
=end NaturalDocs grep_pp (public instance)Filter this DBIx::StORM::RecordSet using a perl filter. This is identical to the <grep> method, but does not attempt to parse the subref and optimise it. Parameters
Returns
=end NaturalDocs _rebuild_record (private instance)This is called by a DBIx::StORM::Record when the content has changed or the column set loaded is incorrect. It causes the object to be rebuilt with a new set of column. The object is modified in-situ. The row is selected from the database by primary key column equality, so it won’t work on tables without a PK. Parameters
ReturnsNone =end NaturalDocs _get_record_for_fk (private instance)When a foreign key column in a Record from this table is access, this method is called to generate the Record record for the foreign key. Parameters
Returns
=end NaturalDocs identity (public instance)Fetch the record that has a given primary key value. For one-column primary keys you can pass in the value directly. Otherwise a hash reference should be passed in of field name => field value mappings. If you incorrectly specify the primary key this function will die. Parameters
Returns
=end NaturalDocs |
sub _build_result_identity