{ int odaType = Types.CHAR;  if( odiTypeClass == null ) odaType = Types.CHAR; else if( odiTypeClass == String.class ) odaType = Types.CHAR; else if( odiTypeClass == Integer.class ) odaType = Types.INTEGER; else if( odiTypeClass == Double.class ) odaType = Types.DOUBLE; else if( odiTypeClass == BigDecimal.class ) odaType = Types.DECIMAL; else if( odiTypeClass == Date.class ) odaType = Types.DATE; else if( odiTypeClass == Time.class ) odaType = Types.TIME; else if( odiTypeClass == Timestamp.class ) odaType = Types.TIMESTAMP; else if( odiTypeClass == Blob.class ) odaType = Types.BLOB; else if( odiTypeClass == Clob.class ) odaType = Types.CLOB;
{ int odaType = Types.CHAR;
    public static int toOdaDataType( Class odiTypeClass )    {        int odaType = Types.CHAR;   // default                if( odiTypeClass == null )            odaType = Types.CHAR;               else if( odiTypeClass == String.class )            odaType = Types.CHAR;        else if( odiTypeClass == Integer.class )            odaType = Types.INTEGER;        else if( odiTypeClass == Double.class )            odaType = Types.DOUBLE;        else if( odiTypeClass == BigDecimal.class )            odaType = Types.DECIMAL;        else if( odiTypeClass == Date.class )            odaType = Types.DATE;        else if( odiTypeClass == Time.class )            odaType = Types.TIME;        else if( odiTypeClass == Timestamp.class )            odaType = Types.TIMESTAMP;        else if( odiTypeClass == Blob.class )            odaType = Types.BLOB;        else if( odiTypeClass == Clob.class )            odaType = Types.CLOB;        return odaType;    }