NAME

DbFramework::DataType::ANSII - ANSII data type class

SYNOPSIS

use DbFramework::DataType::ANSII;
$dt     = new DbFramework::DataType::ANSII($dbh,$type,$length);
$name   = $dt->name($name);
$type   = $type($type);
$length = $dt->length($length);
$extra  = $dt->extra($extra);

DESCRIPTION

A DbFramework::DataType::ANSII object represents an ANSII data type.

SUPERCLASSES

DbFramework::DefinitionObject

CLASS METHODS

new($dbh,$type,$length)

Create a new DbFramework::DataType object. $dbh is a DBI database handle. $type is a numeric ANSII type e.g. a type containd in the array reference returned by $sth->{TYPE}. This method will die() unless $type is a member of the set of ANSII types returned by $dbh. $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.

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

DbFramework::DefinitionObject

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.