NAME
DTS::Assignment - a Perl base class to represent a DTS Dynamic Properties task Assignment object
SYNOPSIS
package DTS::Assignment::SomethingWeird;
use base (DTS::Assignment);
#and goes on defining the child class
DESCRIPTION
DTS::Assignment
is a base class that should be inherited by a specialized class that defines one type of Assignment object that is part of a DTS Dynamic Property task.
This class defines some common attributes that a subclass of DTS::Assignment
. Some methods must be override too, and are explained in the next sections.
EXPORT
None by default.
METHODS
new
Instantiates a new DTS::Assigment
object. Expects as parameter a DynamicPropertiesTaskAssignment
object. Unless you want to extend the DTS::Assignment
class, you will want to fetch DTS::Assignment
objects using the get_properties
method from DTS::Task::DynamicProperty class.
get_type
Returns the type as a numeric code for a instantied object of a subclass of DTS::Assignment
.
get_type_name
Returns a type as a string converted from the original numeric code using DTS::AssignmentTypes abstract class to make the convertion.
get_source
This method should be override by any subclass of DTS::Assignment
. If invoked but not override, it will abort with an error message.
get_destination
Returns a string with the destination property of an assignment object.
get_properties
Returns all properties from an assignment object as a hash reference, having the following keys:
type
source
destination
Since the method get_source
must be overrided by subclasses of DTS::Assingment
this method will failed unless invoked thru one of those subclasses.
to_string
Returns a string with the type, source and destination of an assignment. Useful for debugging or reporting.
SEE ALSO
Win32::OLE at
perldoc
.DTS::AssignmentFactory at
perldoc
.MSDN on Microsoft website and MS SQL Server 2000 Books Online are a reference about using DTS' object hierarchy, but one will need to convert examples written in VBScript to Perl code.
AUTHOR
Alceu Rodrigues de Freitas Junior, <glasswalk3r@yahoo.com.br>
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.