HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

java.sql.Connection

This section describes java.sql.Connection, the interface for connecting to a database.

Table 1 Support status for java.sql.Connection

Method Name Return Type Support JDBC 4
close() void Yes
commit() void Yes
createStatement() Statement Yes
getAutoCommit() Boolean Yes
getClientInfo() Properties Yes
getClientInfo(String name) String Yes
getTransactionIsolation() int Yes
isClosed() Boolean Yes
isReadOnly() Boolean Yes
prepareStatement(String sql) PreparedStatement Yes
rollback() void Yes
setAutoCommit(boolean autoCommit) void Yes
setClientInfo(Properties properties) void Yes
setClientInfo(String name,String value) void Yes

img NOTICE: The AutoCommit mode is used by default within the interface. If you disable it by running setAutoCommit(false), all the statements executed later will be packaged in explicit transactions, and you cannot execute statements that cannot be executed within transactions.

Copyright © 2011-2024 www.enmotech.com All rights reserved.