NAME
[% package_name %] - model for [% table_name %] table (stub part)
DESCRIPTION
This model inherits from its generated helper, which inherits from [% base_class || base_class_default %]. It was generated by Bigtop, but is NOT subject to regeneration.
NAME
[% gen_package_name %] - model for [% table_name %] table (generated part)
DESCRIPTION
This model inherits from [% base_class || base_class_default %]. It was generated by Bigtop, and IS subject to regeneration.
METHODS
See Gantry::Utils::Model::Regular for an explanation of the methods of this class. Only the column names are different.
- get_table_name
- get_sequence_name
- get_primary_col
- get_essential_cols
- get_primary_key
- [% primary_key +%]
- set_[% primary_key +%]
- get_[% primary_key +%]
- quote_[% primary_key +%]
-
[% FOREACH col IN accessible_columns.keys.sort %] =item [% col +%]
- set_[% col +%]
- get_[% col +%]
-
[% IF accessible_columns.$col.foreign %] =item get_[% col %]_raw
[% END %] =item quote_[% col +%]
[% END %] =item get_foreign_display_fields
- get_foreign_tables
- foreign_display
NAME
Bigtop::Backend::Model::Gantry - Bigtop backend generating home made model objects
SYNOPSIS
If your bigtop file looks like this:
config {
base_dir `/home/user`;
...
Model Gantry {}
}
app Name {...}
and there are tables in the app block, when you type:
bigtop your.bigtop Model
or bigtop your.bigtop all
this module will make model modules which are subclasses of Gantry::Utils::Model (which is a simplified replacement for Class::DBI::Sweet).
All modules will live in the lib subdirectory of the app's build directory. See Bigtop::Init::Std for an explanation of how base_dir and the build directory are related.
DESCRIPTION
This is a Bigtop backend which generates data model modules which are subclasses of Gantry::Utils::Model.
KEYWORDS
This module does not register any keywords. See Bigtop::Model for a list of keywords models understand.
METHODS
To keep podcoverage tests happy.
- backend_block_keywords
-
Tells tentmaker that I understand these config section backend block keywords:
no_gen model_base_class template - what_do_you_make
-
Tells tentmaker what this module makes. Summary: Gantry native models.
- gen_Model
-
Called by Bigtop::Parser to get me to do my thing.
- setup_template
-
Called by Bigtop::Parser so the user can substitute an alternate template for the hard coded one here.
AUTHOR
Phil Crow <philcrow2000@yahoo.com>
COPYRIGHT and LICENSE
Copyright (C) 2005 by Phil Crow
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.