NAME
blx::xsdsql::xml::generic::column - a generic colum class
SYNOPSIS
use blx::xsdsql::xml::generic::column
DESCRIPTION
this package is a class - instance it with the method new
FUNCTIONS
this module defined the followed functions
new - constructor
PARAMS:
XSD_SEQ - a sequence number into a choise or sequence of a xsd file
MIN_OCCURS - default 1
MAX_OCCURS - default 1
NAME - a basename of xml node
PATH_NAME - a path name of xml node
INTERNAL_REFERENCE - true if the column is an array of simple types
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_type - return the sql type of the column
get_sql_name - return the name of the column
is_internal_reference - return true if the column is an array of simple types
factory_column - factory a generic column object
the first argument must be ID|SEQ|VALUE
ID: - factory the first column of a primary key
SEQ - factory the second column of a primary key
VALUE - factory a generic value column
the method return an object of the same type of the self object
factory_sql_type - factory a generic sql type
the first argument must be VARCHAR|CHAR|NUMBER|DOUBLE
the method return a string
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