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

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

Annotate this POD

View/Report Bugs
Source  

NAME ^

Win32::SqlServer::DTS::AssigmentTypes - a Perl abstract class that knows all DynamicPropertiesTaskAssignment objects types.

SYNOPSIS ^

    use Win32::SqlServer::DTS::AssignmentTypes;

        # assuming that $assignment is a DTS Dynamic Property assignment object
        my $type = Win32::SqlServer::DTS::AssignmentTypes->get_class_name($assignment->SourceType);

DESCRIPTION ^

Win32::SqlServer::DTS::AssignmentTypes is a simple abstract class that knows all existing types of DTS Dynamic Properties assignments types and how to convert those types to Win32::SqlServer::DTS::Assignment subclasses names.

This abstract class should be used only if one wants to extend the DTS API.

EXPORT

None by default.

METHODS

get_class_name

get_class_name is an abstract method that converts the numeric type code from DTS API constant DynamicPropertiesTaskSourceType to a proper string that represents a subclass of Win32::SqlServer::DTS::Assignment class. Returns one of the following strings, depending on the numeric code received as a parameter:

The valid types are:

SymbolValueDescription
DTSDynamicPropertiesSourceType_Constant 4 Source is a constant
DTSDynamicPropertiesSourceType_DataFile 5 Source is the contents of a data file
DTSDynamicPropertiesSourceType_EnvironmentVariable 3 Source is the value of a system environment variable
DTSDynamicPropertiesSourceType_GlobalVariable 2 Source is the value of a DTS global variable within the package
DTSDynamicPropertiesSourceType_IniFile 0 Source is the value of a key within an .ini file
DTSDynamicPropertiesSourceType_Query 1 Source is a value returned by an SQL query

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: