|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDatatype
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 |
---|
boolean isUDT()
void setUDT(boolean isUDT)
IDatatype getBaseType()
void setBaseType(IDatatype baseType)
java.lang.Object getDefaultValue()
void setDefaultValue(java.lang.Object defaultValue)
int getLength()
void setLength(int length)
boolean allowNull()
void setAllowNull(boolean allowNull)
int getPrecision()
void setPrecision(int precision)
int getScale()
void setScale(int scale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |