NAME
DbFramework::DataType::ANSII - ANSII data type class
SYNOPSIS
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;
DESCRIPTION
A DbFramework::DataType::ANSII object represents an ANSII data type.
SUPERCLASSES
DbFramework::DefinitionObject
CLASS METHODS
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.
SEE ALSO
AUTHOR
Paul Sharpe <paul@miraclefish.com>
COPYRIGHT
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.