NAME
DbFramework::DataType - Data type class
SYNOPSIS
use DbFramework::DataType;
my $dt = new DbFramework::DataType($name,$length,$extra);
$dt->name($name);
$dt->length($length);
$dt->extra($extra);
DESCRIPTION
A DbFramework::DataType object represents a data type associated with a DbFramework::Attribute object.
SUPERCLASSES
DbFramework::DefinitionObject
CLASS METHODS
new($name,$length,$extra)
Create a new DbFramework::DataType object. $name is the name of the data type. $length is the length of the data type. $extra is any extra information which applies to the data type e.g. AUTO_INCREMENT in they case of a Mysql INTEGER data type.
name($name)
If $name is supplied, sets the name of the data type. Valid data types are CHAR DATE DATETIME INT INTEGER TEXT TIMESTAMP VARCHAR. Returns the name of the 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 in they case of a Mysql INTEGER data type. Returns the extra information which applies to the data type.
SEE ALSO
AUTHOR
Paul Sharpe <paul@miraclefish.com>
COPYRIGHT
Copyright (c) 1998 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.