org.codehaus.modello.generator.database.type

Class Type

public class Type extends Object

Describes an SQL type

Version: 1.1 2003/02/05 08:08:37

Author: Tim Anderson

Constructor Summary
Type()
Construct a new Type
Type(String sqlName, long size, short minScale, short maxScale)
Construct a new Type
Method Summary
shortgetMaximumScale()
Returns the maximum scale of the type
shortgetMinimumScale()
Returns the minimum scale of the type
longgetSize()
Returns the maximum size (or precision) of the type
StringgetSQLName()
Returns the SQL name of the type
voidsetMaximumScale(short scale)
Sets the maximum scale of the type
voidsetMinimumScale(short scale)
Sets the minimum scale of the type
voidsetSize(long size)
Sets the maximum size (or precision) of the type
voidsetSQLName(String name)
Sets the SQL name of the type
StringtoString()
Helper to return a stringified version of the type, for debug purposes

Constructor Detail

Type

public Type()
Construct a new Type

Type

public Type(String sqlName, long size, short minScale, short maxScale)
Construct a new Type

Parameters: sqlName the SQL name of the type size the maximum size/precision of the type minScale the minimum scale supported by the type maxScale the maximum scale supported by the type

Method Detail

getMaximumScale

public short getMaximumScale()
Returns the maximum scale of the type

getMinimumScale

public short getMinimumScale()
Returns the minimum scale of the type

getSize

public long getSize()
Returns the maximum size (or precision) of the type

getSQLName

public String getSQLName()
Returns the SQL name of the type

setMaximumScale

public void setMaximumScale(short scale)
Sets the maximum scale of the type

setMinimumScale

public void setMinimumScale(short scale)
Sets the minimum scale of the type

setSize

public void setSize(long size)
Sets the maximum size (or precision) of the type

setSQLName

public void setSQLName(String name)
Sets the SQL name of the type

toString

public String toString()
Helper to return a stringified version of the type, for debug purposes
Copyright © 2001-2007 Codehaus. All Rights Reserved.