Alceu Rodrigues de Freitas Junior > Win32-SqlServer-DTS > Win32::SqlServer::DTS::AssigmentFactory

Download:
Win32-SqlServer-DTS-0.10.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Win32::SqlServer::DTS::AssigmentFactory - a Perl abstract class to create DynamicPropertiesTaskAssignment objects

SYNOPSIS ^

    use Win32::SqlServer::DTS::Task::DynamicProperty;
    use Win32::SqlServer::DTS::AssignmentFactory;

    my $assignments = $dyn_props->get_sibling->Assignments;
    my @assigments;

    if ( defined($assignments) ) {

        foreach my $assignment ( in($assignments) ) {

            push( @assignments,
                Win32::SqlServer::DTS::AssignmentFactory->create($assignment) );

        }

        return \@assignments;

    } else {

        warn "This dynamic properties does not have any assignment\r\n";

    }

DESCRIPTION ^

Win32::SqlServer::DTS::AssignmentFactory is a simple abstract actory to create Win32::SqlServer::DTS::Assignment objects. This abstract class should be used only if one wants to extend the DTS API.

EXPORT

None by default.

METHODS

create

Expects an DTS Assignment object as a parameter. Returns an Win32::SqlServer::DTS::Assignment object in a polymorphic way, depending on the DTS Assignment type.

SEE ALSO ^

AUTHOR ^

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2006 by Alceu Rodrigues de Freitas Junior

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.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: