org.eclipse.datatools.sqltools.editor.contentassist.model
Interface IDatatype


public interface IDatatype

Represents a data type object.

Author:
Dafan Yang

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

isUDT

public boolean isUDT()
To test if this data type is user-defined datatype or not


setUDT

public void setUDT(boolean isUDT)

getBaseType

public 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


setBaseType

public void setBaseType(IDatatype baseType)

getDefaultValue

public java.lang.Object getDefaultValue()
Gets the default value of this data type


setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)

getLength

public int getLength()
Gets the physical lenght of this type


setLength

public void setLength(int length)

allowNull

public boolean allowNull()
To test if this data type can have null value


setAllowNull

public void setAllowNull(boolean allowNull)

getPrecision

public int getPrecision()
Gets the precision of this type, if precision is -1, then no precision defined


setPrecision

public void setPrecision(int precision)

getScale

public int getScale()
Gets the scale of this type, if precision is -1, then no scale defined


setScale

public void setScale(int scale)


Copyright © 2006 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.