|
DbFramework::DataType::ANSII - ANSII data type class |
new($dm,$type,$ansii_type,$length)name($name)type($type)ansii_type($ansii_type)length($length)extra($extra)
DbFramework::DataType::ANSII - ANSII data type class
use DbFramework::DataType::ANSII; $dt = new DbFramework::DataType::ANSII($dm,$type,$ansii_type,$length); $name = $dt->name($name); $type = $type($type); $length = $dt->length($length); $extra = $dt->extra($extra); $ansii = $dt->ansii_type;
A DbFramework::DataType::ANSII object represents an ANSII data type.
DbFramework::DefinitionObject
new($dm,$type,$ansii_type,$length)Create a new DbFramework::DataType object. $dm is a
DbFramework::DataModle object. $type is a numeric ANSII type
e.g. a type contained in the array reference returned by $sth->{TYPE}.
This method will die() unless $type is a member of the set of ANSII
types supported by the DBI driver. $ansii_type is the same as
$type. $length is the length of the data type.
name($name)If $name is supplied, sets the name of the ANSII data type. Returns the name of the data type.
type($type)If $type is supplied, sets the number of the ANSII data type. Returns the numeric data type.
ansii_type($ansii_type)Returns the same type as type().
length($length)If $length is supplied, sets the length of the data type. Returns the length of the data type.
extra($extra)If $extra is supplied, sets any extra information which applies to the data type e.g. AUTO_INCREMENT. Returns the extra information which applies to the data type.
the DbFramework::DefinitionObject manpage
Paul Sharpe <paul@miraclefish.com>
Copyright (c) 1999 Paul Sharpe. England. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
DbFramework::DataType::ANSII - ANSII data type class |