APISonar


org.h2.engine.Session.log

> org > h2 > engine > Session > log
org APIs h2 APIs engine APIs Session APIs log APIs

Example 1
protected Session session;

    public void lockRows(ArrayList<Row> forUpdateRows) {
        for (Row row : forUpdateRows) {
            Row newRow = row.getCopy();
            table.removeRow(session, row);
            session.log(table, UndoLogRecord.DELETE, row);
            table.addRow(session, newRow);
            session.log(table, UndoLogRecord.INSERT, newRow);
        }
    }