单项选择题

关闭自动提交模式的方法是()

A.Connection对象的commit()
B.Connection对象的setAutoCommit()
C.Connection对象的rollback()
D.Connection对象的close()