easik.sketch.datatype
Class DataType

java.lang.Object
  extended by easik.sketch.datatype.DataType

public class DataType
extends java.lang.Object

Class to store individual data type information

Version:
2006-06-28 Kevin Green
Author:
Kevin Green 2006

Field Summary
private  java.lang.String _DB2_type
          The DB2 type used to represent this data type
private  java.lang.String _MySQL_type
          The MySQL type used to represent this data type
private  java.lang.String _Oracle_type
          The Oracle type used to represent this data type
private  java.lang.String _typeDesc
          The description of the data type
private  java.lang.String _typeName
          The name of the data type
private  java.lang.String _user_type
          The user defined type used to represent this data type
private  java.lang.String _XML_type
          The XML type used to represent this data type
 
Constructor Summary
DataType(java.lang.String inTypeName)
          Defaul Constructor (No Description) Sets data types to defaults.
DataType(java.lang.String inTypeName, java.lang.String inTypeDesc)
          Default Constructor (Including Description) Sets data types to defaults.
DataType(java.lang.String inName, java.lang.String inDesc, java.lang.String inMySQL, java.lang.String inOracle, java.lang.String inDB2, java.lang.String inXML, java.lang.String inUser)
          Default constructor (All varibales)
 
Method Summary
 java.lang.String get_DB2_type()
           
 java.lang.String get_MySQL_type()
           
 java.lang.String get_Oracle_type()
           
 java.lang.String get_user_type()
           
 java.lang.String get_XML_type()
           
 java.lang.String getTypeDesc()
          Return the description of the data type
 java.lang.String getTypeName()
          Returns the name of the data type
 void set_DB2_type(java.lang.String _db2_type)
           
 void set_MySQL_type(java.lang.String mySQL_type)
           
 void set_Oracle_type(java.lang.String oracle_type)
           
 void set_user_type(java.lang.String _user_type)
           
 void set_XML_type(java.lang.String _xml_type)
           
 void setTypeDesc(java.lang.String inTypeDesc)
          Sets the description of the data type
 void setTypeName(java.lang.String inTypeName)
          Sets the name of the data type
 java.lang.String toString()
          Overloaded method to return data type name when used as a strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_typeName

private java.lang.String _typeName
The name of the data type


_typeDesc

private java.lang.String _typeDesc
The description of the data type


_MySQL_type

private java.lang.String _MySQL_type
The MySQL type used to represent this data type


_Oracle_type

private java.lang.String _Oracle_type
The Oracle type used to represent this data type


_DB2_type

private java.lang.String _DB2_type
The DB2 type used to represent this data type


_XML_type

private java.lang.String _XML_type
The XML type used to represent this data type


_user_type

private java.lang.String _user_type
The user defined type used to represent this data type

Constructor Detail

DataType

public DataType(java.lang.String inName,
                java.lang.String inDesc,
                java.lang.String inMySQL,
                java.lang.String inOracle,
                java.lang.String inDB2,
                java.lang.String inXML,
                java.lang.String inUser)
Default constructor (All varibales)

Parameters:
inName - The name of the data type
inDesc - The description of the data type
inMySQL - The MySQL type associated with the data type
inOracle - The Oracle type associated with the data type
inDB2 - The DB2 type associated with the data type
inXML - The XML type associated with the data type
inUser - The User Defined type associated with the data type

DataType

public DataType(java.lang.String inTypeName)
Defaul Constructor (No Description) Sets data types to defaults.

Parameters:
inTypeName - Name of the datatype

DataType

public DataType(java.lang.String inTypeName,
                java.lang.String inTypeDesc)
Default Constructor (Including Description) Sets data types to defaults.

Parameters:
inTypeName - Name of the datatype
inTypeDesc - Description of the datatype
Method Detail

toString

public java.lang.String toString()
Overloaded method to return data type name when used as a strings

Overrides:
toString in class java.lang.Object
Returns:
The type name

getTypeName

public java.lang.String getTypeName()
Returns the name of the data type

Returns:
The name of the data type

setTypeName

public void setTypeName(java.lang.String inTypeName)
Sets the name of the data type

Parameters:
inTypeName - The new name of the data type

getTypeDesc

public java.lang.String getTypeDesc()
Return the description of the data type

Returns:
The description of the data type

setTypeDesc

public void setTypeDesc(java.lang.String inTypeDesc)
Sets the description of the data type

Parameters:
inTypeDesc - The new description of the data type

get_DB2_type

public java.lang.String get_DB2_type()
Returns:
Returns the _DB2_type.

set_DB2_type

public void set_DB2_type(java.lang.String _db2_type)
Parameters:
_db2_type - The _DB2_type to set.

get_MySQL_type

public java.lang.String get_MySQL_type()
Returns:
Returns the _MySQL_type.

set_MySQL_type

public void set_MySQL_type(java.lang.String mySQL_type)
Parameters:
mySQL_type - The _MySQL_type to set.

get_Oracle_type

public java.lang.String get_Oracle_type()
Returns:
Returns the _Oracle_type.

set_Oracle_type

public void set_Oracle_type(java.lang.String oracle_type)
Parameters:
oracle_type - The _Oracle_type to set.

get_user_type

public java.lang.String get_user_type()
Returns:
Returns the _user_type.

set_user_type

public void set_user_type(java.lang.String _user_type)
Parameters:
_user_type - The _user_type to set.

get_XML_type

public java.lang.String get_XML_type()
Returns:
Returns the _XML_type.

set_XML_type

public void set_XML_type(java.lang.String _xml_type)
Parameters:
_xml_type - The _XML_type to set.