|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a data type object.
Method Summary | |
boolean |
allowNull()
To test if this data type can have null value |
IDatatype |
getBaseType()
Gets the base type of this data type,if this type is UDT,then return it's base type otherwise(it is system type),return itself |
java.lang.Object |
getDefaultValue()
Gets the default value of this data type |
int |
getLength()
Gets the physical lenght of this type |
int |
getPrecision()
Gets the precision of this type, if precision is -1, then no precision defined |
int |
getScale()
Gets the scale of this type, if precision is -1, then no scale defined |
boolean |
isUDT()
To test if this data type is user-defined datatype or not |
void |
setAllowNull(boolean allowNull)
|
void |
setBaseType(IDatatype baseType)
|
void |
setDefaultValue(java.lang.Object defaultValue)
|
void |
setLength(int length)
|
void |
setPrecision(int precision)
|
void |
setScale(int scale)
|
void |
setUDT(boolean isUDT)
|
Method Detail |
public boolean isUDT()
public void setUDT(boolean isUDT)
public IDatatype getBaseType()
public void setBaseType(IDatatype baseType)
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object defaultValue)
public int getLength()
public void setLength(int length)
public boolean allowNull()
public void setAllowNull(boolean allowNull)
public int getPrecision()
public void setPrecision(int precision)
public int getScale()
public void setScale(int scale)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |