Alceu Rodrigues de Freitas Junior

NAME

Win32::SqlServer::DTS::TaskFactory - a Perl abstract class to create DTS Package Tasks in a polymorphic way

SYNOPSIS

    use Win32::SqlServer::DTS::TaskFactory;

        # $task is a unknow DTS Task object
    my $new_task = Win32::SqlServer::DTS::TaskFactory::create($task);
    print $new_task->to_string, "\n";

DESCRIPTION

Win32::SqlServer::DTS::TaskFactory creates Win32::SqlServer::DTS::Task subclasses objects depending on the type of the DTS Package Task object passed as a reference.

EXPORT

Nothing.

METHODS

create

Expects a DTSTask object passed as a parameter.

Returns a object from a subclass of Win32::SqlServer::DTS::Task depending on the CustomTaskID property from the Task object passed as a parameter.

SEE ALSO

  • MSDN on Microsoft website and MS SQL Server 2000 Books Online are a reference about using DTS' object hierarchy, but you will need to convert examples written in VBScript to Perl code.

  • Win32::SqlServer::DTS::Task and it's subclasses modules at perldoc.

  • Win32::SqlServer::DTS::TaskTypes at perldoc.

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.