org.utgenome.gwt.utgb.client.db.datatype
Class DataTypeBase

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.db.datatype.DataTypeBase
All Implemented Interfaces:
DataType
Direct Known Subclasses:
BooleanType, ColorType, DispType, DoubleType, FloatType, GradationType, IntegerType, LowerBoundType, PasswordType, SelectType, StringListType, StringType, TextType, UpperBoundType

public abstract class DataTypeBase
extends Object
implements DataType


Field Summary
protected  boolean isNotNull
           
protected  boolean isPrimaryKey
           
protected  String name
           
 
Constructor Summary
DataTypeBase(String name)
           
DataTypeBase(String name, boolean isPrimaryKey)
           
DataTypeBase(String name, boolean isPrimaryKey, boolean isNotNull)
           
 
Method Summary
 String getName()
          parameter name of this type
 boolean isNotNull()
           
 boolean isPrimaryKey()
           
 void setAsPrimaryKey()
           
 void setNotNull()
           
 String toString(com.google.gwt.json.client.JSONValue value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.utgenome.gwt.utgb.client.db.datatype.DataType
getInputForm, getTypeName
 

Field Detail

name

protected String name

isPrimaryKey

protected boolean isPrimaryKey

isNotNull

protected boolean isNotNull
Constructor Detail

DataTypeBase

public DataTypeBase(String name)

DataTypeBase

public DataTypeBase(String name,
                    boolean isPrimaryKey)

DataTypeBase

public DataTypeBase(String name,
                    boolean isPrimaryKey,
                    boolean isNotNull)
Method Detail

getName

public String getName()
Description copied from interface: DataType
parameter name of this type

Specified by:
getName in interface DataType
Returns:

toString

public String toString(com.google.gwt.json.client.JSONValue value)
Specified by:
toString in interface DataType
Returns:

setAsPrimaryKey

public void setAsPrimaryKey()

isPrimaryKey

public boolean isPrimaryKey()
Specified by:
isPrimaryKey in interface DataType

setNotNull

public void setNotNull()

isNotNull

public boolean isNotNull()
Specified by:
isNotNull in interface DataType


Copyright © 2007-2012 utgenome.org. All Rights Reserved.