SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Old RedHat 7.X perl-SQL-Schema-0.31-8.i386.rpm

SQL::Schema::Package::Body

Section: User Contributed Perl Documentation (3)
Updated: perl v5.6.0
Index 

NAME

SQL::Schema::Package::Body - A package's body stored within the database 

SYNOPSIS

  my $body = SQL::Schema::Package::Body->new(%attr);
  my $sql = $body->create_statement;  print $sql;
  print "$body";
 

DESCRIPTION

`SQL::Schema::Package::Body' is a class for objects representing a package'sbody stored within the database.The methods of an instanciated object do allow to access theinformation within a database's data dictionary and to represent them as SQLcreate statements and the like using the proper SQL dialect. 

Constructors

  $body = SQL::Schema::Package::Body->new(%attr);
The new method instanciates a package body object. The object isan in memory representation of a (possible) database package body.The attributes are given as key value pairs by the hash `%attr'.Possible keys are:

  key               required?   value description
  name              yes         the name of the package                                without preceeding schema name
  text              yes         the concatenation of all the text lines                                forming the packag body's source code
As a package body is basically a piece of source stored within thedatabase, this class inherits all methods from `SQL::Schema::Source'.So please have a look at the new method describet atSQL::Schema::Source(3). Though the new method here overwritesthe new method there, it calls the super class's new methodwith just the key value pair for the source's `type' added.

  $body = SQL::Schema::Package::Body->select($dbh,$name);
The select method fetches the attributes required by newfrom the database and returns the package body object. (It calls newinternally.)

If the package body with the name `$name' could not be found withinthe database, the method returns undef.

The method's arguments are as follows:

`$dbh'
A database handle as defined by DBI(3).
`$name'
The name of the package without preceeding schema name.
 

Methods

The following attribute methods do exist:

  $type = $body->type;
The method `type' always returns the string "`package body'".This package inherits all the other methods from SQL::Schema::Sourceas a database package body basically is a special kind of source withinthe database. For more information, please have a look atSQL::Schema::Source(3). 

AUTHOR AND COPYRIGHT

  SQL::Schema::Package::Body is Copyright (C) 2000,    Torsten Hentschel    Windmuehlenweg 47    44141 Dortmund    Germany
    Email: toddAATTbayleys.ping.de
  All rights reserved.
  You may distribute this package under the terms of either the GNU  General Public License or the Artistic License, as specified in the  Perl README file.
 

SEE ALSO

DBI(3),SQL::Schema(3),SQL::Schema::Source(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
Constructors
Methods
AUTHOR AND COPYRIGHT
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector