forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
11 KiB
11 KiB
java.sql.Connection
This section describes java.sql.Connection, the interface for connecting to a database.
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 |
Parent topic: JDBC Interface Reference