public static SqlType getSqlTypeForTypeVal ( int typeVal ) { // iterate through to save on the extra HashMap since only for errors for ( Map . Entry < SqlType , int [ ] > entry : typeToValMap . entrySet ( ) ) { for ( int val : entry . getValue ( ) ) { if ( val == typeVal ) { return entry . getKey ( ) ; } } } return SqlType . UNKNOWN ; }
Returns the SqlType value associated with the typeVal argument . Can be slow - er .