Code example for Connection

Methods: getAutoCommit, setAutoCommit

0
    } 
 
    public void begin() { 
    	if(isSetAutoCommitAllowed) {
	    	try { 
				if(connection.getAutoCommit() != autoCommit) {
					connection.setAutoCommit(autoCommit);
				} 
			} catch (SQLException e) {
				throw new TransactionException("Exception while setting the autoCommit flag of the connection", e);
			} 
    	} 
    } 
 
	public void commit() { 
	} 
 
	public void rollback() { 
	} 
 
}