Connection Object
Methods |
Version Introduced |
Supported |
Comments |
| void close () |
1.0 |
Yes |
When a connection is closed while there is an active transaction, that transaction is rolled-back. |
| void commit () |
1.0 |
Yes |
|
| Statement createStatement () |
1.0 |
Yes |
|
| Statement createStatement (int, int) |
2.0 Core |
Yes |
ResultSet.TYPE_SCROLL_SENSITIVE downgraded to TYPE_SCROLL_INSENSITIVE |
| boolean getAutoCommit () |
1.0 |
Yes |
|
| String getCatalog () |
1.0 |
Yes |
Support is driver-specific. |
| DatabaseMetaData getMetaData () |
1.0 |
Yes |
|
| int getTransactionIsolation () |
1.0 |
Yes |
|
| Map getTypeMap () |
2.0 Core |
Yes |
Always returns empty java.util.HashMap. |
| SQLWarning getWarnings () |
1.0 |
Yes |
|
| boolean isClosed () |
1.0 |
Yes |
|
| boolean isReadOnly () |
1.0 |
Yes |
|
| String nativeSQL (String) |
1.0 |
Yes |
Always returns same String as passed in. |
| CallableStatement prepareCall (String) |
1.0 |
Yes |
|
| CallableStatement prepareCall (String, int, int) |
2.0 Core |
Yes |
ResultSet.TYPE_SCROLL_SENSITIVE downgraded to TYPE_SCROLL_INSENSITIVE |
| PreparedStatement prepareStatement (String) |
1.0 |
Yes |
|
| PreparedStatement prepareStatement (String, int, int) |
2.0 Core |
Yes |
ResultSet.TYPE_SCROLL_SENSITIVE downgraded to TYPE_SCROLL_INSENSITIVE |
| void rollback () |
1.0 |
Yes |
|
| void setAutoCommit (boolean) |
1.0 |
Yes |
|
| void setCatalog (String) |
1.0 |
Yes |
Support is driver-specific. |
| void setReadOnly (boolean) |
1.0 |
Yes |
|
| void setTransactionIsolation (int) |
1.0 |
Yes |
|
| void setTypeMap (Map) |
2.0 Core |
Yes |
Ignored. |