com.nec.tdd.tools.dbMapper
Class ORFieldInfo.BasicTypeInfo

java.lang.Object
  |
  +--com.nec.tdd.tools.dbMapper.ORFieldInfo.BasicTypeInfo
Enclosing class:
ORFieldInfo

public static class ORFieldInfo.BasicTypeInfo
extends java.lang.Object

Stores additional information for an ORFieldInfo of basic type.


Constructor Summary
ORFieldInfo.BasicTypeInfo(java.lang.String fieldTypeStr, java.lang.String colName)
          Constructs a BasicTypeInfo with given field type string and SQL coulumn name.
 
Method Summary
 java.lang.String getColName()
          Returns the database table column name that will be used to store this field.
 java.lang.Class getFieldClass()
          Returns the class associated with field's type.
 java.lang.Class getFieldWrapperClass()
          Returns the wrapper class associated with field's type code.
 int getType()
          Returns the "Type Code" for the basic field.
 java.lang.String getTypeStr()
          Returns string representation of field's type code.
 java.lang.String toString()
          Returns string representation of BasicTypeInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ORFieldInfo.BasicTypeInfo

public ORFieldInfo.BasicTypeInfo(java.lang.String fieldTypeStr,
                                 java.lang.String colName)
                          throws java.lang.Exception
Constructs a BasicTypeInfo with given field type string and SQL coulumn name. BasicTypeInfo converts the given field type string to closet matching "Type code" specified in Constants.java.
Parameters:
fieldTypeStr - the field type string
colName - Database table column name that will be used to store this field.
Throws:
java.lang.Exception - if fieldTypeStr is not of basic type.
Method Detail

getType

public int getType()
Returns the "Type Code" for the basic field.

getTypeStr

public java.lang.String getTypeStr()
Returns string representation of field's type code.

getFieldClass

public java.lang.Class getFieldClass()
Returns the class associated with field's type.

getFieldWrapperClass

public java.lang.Class getFieldWrapperClass()
                                     throws java.lang.Exception
Returns the wrapper class associated with field's type code.

getColName

public java.lang.String getColName()
Returns the database table column name that will be used to store this field.

toString

public java.lang.String toString()
Returns string representation of BasicTypeInfo.
Overrides:
toString in class java.lang.Object