public static Type toType ( String columnDef ) { if ( "BIGINT" . equalsIgnoreCase ( columnDef ) ) return Type . BIGINT ; if ( "BINARY" . equalsIgnoreCase ( columnDef ) ) return Type . BINARY ; if ( "BIT" . equalsIgnoreCase ( columnDef ) ) return Type . BIT ; if ( "BLOB" . equalsIgnoreCase ( columnDef ) ) return Type . BLOB ; if ( "BOOLEAN" . equalsIgnoreCase ( columnDef ) ) return Type . BOOLEAN ; if ( "CHAR" . equalsIgnoreCase ( columnDef ) ) return Type . CHAR ; if ( "CLOB" . equalsIgnoreCase ( columnDef ) ) return Type . CLOB ; if ( "DATE" . equalsIgnoreCase ( columnDef ) ) return Type . DATE ; if ( "DECIMAL" . equalsIgnoreCase ( columnDef ) ) return Type . DECIMAL ; if ( "DOUBLE" . equalsIgnoreCase ( columnDef ) ) return Type . DOUBLE ; if ( "FLOAT" . equalsIgnoreCase ( columnDef ) ) return Type . FLOAT ; if ( "INTEGER" . equalsIgnoreCase ( columnDef ) ) return Type . INTEGER ; if ( "JAVA_OBJECT" . equalsIgnoreCase ( columnDef ) ) return Type . JAVA_OBJECT ; if ( "LONGNVARCHAR" . equalsIgnoreCase ( columnDef ) ) return Type . LONGNVARCHAR ; if ( "LONGVARBINARY" . equalsIgnoreCase ( columnDef ) ) return Type . LONGVARBINARY ; if ( "LONGVARCHAR" . equalsIgnoreCase ( columnDef ) ) return Type . LONGVARCHAR ; if ( "NCHAR" . equalsIgnoreCase ( columnDef ) ) return Type . NCHAR ; if ( "NCLOB" . equalsIgnoreCase ( columnDef ) ) return Type . NCLOB ; if ( "NUMERIC" . equalsIgnoreCase ( columnDef ) ) return Type . NUMERIC ; if ( "NVARCHAR" . equalsIgnoreCase ( columnDef ) ) return Type . NVARCHAR ; if ( "OTHER" . equalsIgnoreCase ( columnDef ) ) return Type . OTHER ; if ( "REAL" . equalsIgnoreCase ( columnDef ) ) return Type . REAL ; if ( "SMALLINT" . equalsIgnoreCase ( columnDef ) ) return Type . SMALLINT ; if ( "TIME" . equalsIgnoreCase ( columnDef ) ) return Type . TIME ; if ( "TIMESTAMP" . equalsIgnoreCase ( columnDef ) ) return Type . TIMESTAMP ; if ( "TINYINT" . equalsIgnoreCase ( columnDef ) ) return Type . TINYINT ; if ( "VARBINARY" . equalsIgnoreCase ( columnDef ) ) return Type . VARBINARY ; if ( "VARCHAR" . equalsIgnoreCase ( columnDef ) ) return Type . VARCHAR ; // @formatter:on throw new DialectException ( "'" + columnDef + "' is not a legal SQL column definition name" ) ; }
Convert column definition String to Dialect s Type