org.codehaus.modello.generator.database.type
Class Type

java.lang.Object
  extended by org.codehaus.modello.generator.database.type.Type

public class Type
extends java.lang.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(java.lang.String sqlName, long size, short minScale, short maxScale)
          Construct a new Type
 
Method Summary
 short getMaximumScale()
          Returns the maximum scale of the type
 short getMinimumScale()
          Returns the minimum scale of the type
 long getSize()
          Returns the maximum size (or precision) of the type
 java.lang.String getSQLName()
          Returns the SQL name of the type
 void setMaximumScale(short scale)
          Sets the maximum scale of the type
 void setMinimumScale(short scale)
          Sets the minimum scale of the type
 void setSize(long size)
          Sets the maximum size (or precision) of the type
 void setSQLName(java.lang.String name)
          Sets the SQL name of the type
 java.lang.String toString()
          Helper to return a stringified version of the type, for debug purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Type

public Type()
Construct a new Type


Type

public Type(java.lang.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

getSQLName

public java.lang.String getSQLName()
Returns the SQL name of the type


setSQLName

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


getSize

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


setSize

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


getMinimumScale

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


setMinimumScale

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


getMaximumScale

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


setMaximumScale

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


toString

public java.lang.String toString()
Helper to return a stringified version of the type, for debug purposes

Overrides:
toString in class java.lang.Object


Copyright © 2001-2007 Codehaus. All Rights Reserved.