- COPYRIGHT AND LICENSE
DBIx::Table::TestDataGenerator::ForeignKey - foreign key constraint information
This class serves to determine information about foreign keys defined on the target table.
Accessor for the DBIx::Class schema for the target database, required constructor argument.
Accessor for target table, required constructor argument.
Accessor for flag telling if the user wants a self-reference to be handled, required constructor argument.
Accessor for name of the primary key column which should be incremented for the new records, required constructor argument.
Accessor for names of the primary key columns, required constructor argument.
Accessor for option controlling whether root nodes are identified by "parent pkey = NULL" or "parent pkey = pkey". If true, the first case holds.
Accessor for a list of all names of columns involved in foreign key constraints, externally read-only.
Accessor for a reference to a hash having as keys the names of foreign key constraints and as values the names of the referenced tables, externally read-only.
Accessor for the name of the foreign key being a self-reference if it exists, undef otherwise, externally read-only.
Accessor for a reference to a hash where the keys are the names of the foreign keys and for each foreign key, the value is a hash reference having as keys the names of the referenced columns and as values the names of the referencing columns, externally read-only.
Accessor for a reference to a hash where the keys are the names of the foreign keys and for each foreign key, the value is a reference to an array containing the column names of the referenced columns, externally read-only.
Accessor for a flag which is set to true only if the caller wants to handle a self-reference (i.e. if handle_self_ref_wanted is true) and it has been determined that a self-reference exists, externally read-only.
Accessor for a reference to a hash where, assuming there is a self-reference, each keys is the id of a parent record and the corresponding value a reference to an array containing the list of client node ids. If no self-reference exists, the value is undef. This accessor is externally read-only.
Accessor for the root of the self-reference tree, taken directly from the Tree class.
Accessor for the name of the column containing parent ids in case of a self-reference, undef otherwise, externally read-only.
Determines foreign key constraint information with the help of the other internal methods.
Internal method. Returns a hash where the keys are the names of the foreign keys on the target table and the values the names of the corresponding referenced tables.
Internal method. Returns a reference to a dictionary having as keys the fkey names and for each key as value a dictionary where the keys are the names of the referenced column names and the values the names of the corresponding referencing column names.
Internal method. Returns a reference to a hash having the fkey names as keys and a comma-separated list of the column names of the referenced columns of the fkey as values.
Jose Diaz Seng,
<josediazseng at gmx.de>
Copyright (C) 2012-2013, Jose Diaz Seng.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.