static Class resolveType(String type) {
        Class cls = Object.class;
        if ("String".equals(type))
            cls = String.class;
        else if ("Integer".equals(type))
            cls = Integer.class;
        else if ("Long".equals(type))
            cls = Long.class;
        else if ("Float".equals(type))
            cls = Float.class;
        else if ("Double".equals(type))
            cls = Double.class;
        else if ("Boolean".equals(type))
            cls = Boolean.class;
        else if ("BigDecimal".equals(type))
            cls = BigDecimal.class;
        else if ("BigInteger".equals(type))
            cls = BigInteger.class;
        else if ("Date".equals(type))
            cls = Date.class;

        return cls;
    }
static Class resolveType ( String type ) { Class cls = Object . class ; if ( "String" . equals ( type ) ) cls = String . class ; else if ( "Integer" . equals ( type ) ) cls = Integer . class ; else if ( "Long" . equals ( type ) ) cls = Long . class ; else if ( "Float" . equals ( type ) ) cls = Float . class ; else if ( "Double" . equals ( type ) ) cls = Double . class ; else if ( "Boolean" . equals ( type ) ) cls = Boolean . class ; else if ( "BigDecimal" . equals ( type ) ) cls = BigDecimal . class ; else if ( "BigInteger" . equals ( type ) ) cls = BigInteger . class ; else if ( "Date" . equals ( type ) ) cls = Date . class ; return cls ; }
Get class by type name
<p>Supported types are:</p>
<ul>
<li>String</li>
<li>Integer</li>
<li>Float</li>
<li>Long</li>
<li>Double</li>
<li>BigDecimal</li>
<li>BigInteger</li>
<li>Boolean</li>
<li>Date</li>
</ul>

@param type
@return