Code example for Connection

Methods: setSavepoint

0
 
    public Savepoint setSavepoint(final String name) throws SQLException {
        assertOpened(); 
        assertLocalTx(); 
        try { 
            return physicalConnection_.setSavepoint(name);
        } catch (final SQLException ex) {
            release(); 
            throw ex;
        } 
    } 
 
    public void rollback(final Savepoint savepoint) throws SQLException {
        assertOpened(); 
        assertLocalTx(); 
        try { 
            physicalConnection_.rollback(savepoint);
        } catch (final SQLException ex) {
            release(); 
            throw ex;
        }