NAME
blx::xsdsql::xml::generic::table - a generic table class
SYNOPSIS
use blx::xsdsql::xml::generic::table
DESCRIPTION
this package is a class - instance it with the method new
FUNCTIONS
this module defined the followed functions
new - contructor
PARAMS:
COLUMNS - a pointer too an array of column objects (default [])
CHILD_TABLES - pointer too an array of table objects (default [])
XSD_SEQ - a XSD_SEQ start number (default 0)
TABLE_IS_TYPE - the table is associated with type (simple or complex) (default false)
SIMPLE_TYPE - the table is associated with a simple type (default false)
MINOCCURS - the table as a minoccurs (default 0)
MAXOCCURS - the table as a maxoccurs (default 1)
PATH - a node path name (default not defined)
TYPE - a internal node type (default not defined)
NAME - a node name (default not defined)
add_columns - add columns to a table
the method return a self object
get_columns - return an array of columns object
add_child_tables - add child tables to a table
the method return a self object
resolve_path_for_table_type - if the table is associated with a type use this method to return the real path associated
the method return a string
find_columns - find columns that match the pairs attributes => value
the method return an array of columns object
get_child_tables - return an array of child table
set_attrs_value - set a value of attributes
the arguments are a pairs NAME => VALUE
the method return a self object
get_attrs_value - return a list of attributes values
the arguments are a list of attributes name
get_sql_name - return the sql name
get_constraint_name - return a constraint name
the first argument must be pk (primary key)
get_path_resolved - return a resolved path name associated
EXPORT
None by default.
EXPORT_OK
none
SEE ALSO
See blx::xsdsql::xml::generic::catalog, it's the base class
See blx:.xsdsql::generator for generate the schema of the database and blx::xsdsql::parser for parse a xsd file (schema file)
AUTHOR
lorenzo.bellotti, <bellzerozerouno@tiscali.it>
COPYRIG
Copyright (C) 2010 by lorenzo.bellotti
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html