|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.modello.generator.database.type.Type
public class Type
Describes an SQL type
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 |
---|
public Type()
Type
public Type(java.lang.String sqlName, long size, short minScale, short maxScale)
Type
sqlName
- the SQL name of the typesize
- the maximum size/precision of the typeminScale
- the minimum scale supported by the typemaxScale
- the maximum scale supported by the typeMethod Detail |
---|
public java.lang.String getSQLName()
public void setSQLName(java.lang.String name)
public long getSize()
public void setSize(long size)
public short getMinimumScale()
public void setMinimumScale(short scale)
public short getMaximumScale()
public void setMaximumScale(short scale)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |