public class JdlConnection extends Object
Constructor and Description |
---|
JdlConnection(JdbcType jdbc) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection()
Releases this Connection object's database.
|
void |
commitConnection()
Makes all changes made since the previous commit/rollback permanent and
releases any database locks currently held by this Connection object.
|
Connection |
getOpenConnection() |
boolean |
isAutoCommit() |
boolean |
isConnected() |
void |
rollbackConnection()
Undoes all changes made in the current transaction and releases any
database locks currently held by this Connection object.
|
void |
setAutoCommit(boolean autoCommit) |
public JdlConnection(JdbcType jdbc)
jdbc
- the jdbcpublic final boolean isConnected() throws SQLException
SQLException
- exceptionpublic final Connection getOpenConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
InstantiationException
- exceptionIllegalAccessException
- exceptionClassNotFoundException
- exceptionSQLException
- exceptionpublic final void commitConnection() throws SQLException
SQLException
- exceptionpublic final void rollbackConnection() throws SQLException
SQLException
- exceptionpublic final void closeConnection() throws SQLException
SQLException
- exceptionpublic final boolean isAutoCommit() throws SQLException
SQLException
- exceptionpublic final void setAutoCommit(boolean autoCommit) throws SQLException
autoCommit
- the autoCommit to setSQLException
- exceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.