public void addLock(Table table){
  if (SysProperties.CHECK) {
    if (locks.contains(table)) {
      DbException.throwInternalError();
    }
  }
  locks.add(table);
}

public void addLock ( Table table ) { if ( SysProperties . CHECK ) { if ( locks . contains ( table ) ) { DbException . throwInternalError ( ) ; } } locks . add ( table ) ; }
add a lock for the given table . the object is unlocked on commit or rollback .
