private Map<String, Class<?>> loadSqlTypeMappings(Dbms dbms, Set<TypeInfoMetaData> preSet) {
        final Map<String, Class<?>> sqlTypeMapping;

        try {
            sqlTypeMapping = !preSet.isEmpty()
                ? readTypeMapFromSet(preSet)
                : readTypeMapFromDB(dbms);
        } catch (final SQLException ex) {
            throw new SpeedmentException(
                "Error loading type map from database.", ex
            );
        }

        return sqlTypeMapping;
    }
@author  Emil Forslund
@author  Per Minborg
@since   3.0.0
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/abstracts/AbstractDbmsMetadataHandler.java