754755756757758759760761762763764
} @Override public void lock() throws LockException { if (isLocked()) { throw new LockException("Already locked"); } else { super.lock(); this.lock.enterCriticalSection(com.hp.hpl.jena.shared.Lock.WRITE); }
512513514515516517518519
this.locked = true; // flush everything that has not been commited yet this.connection.commit(); } catch(RepositoryException e) { throw new LockException(e); } }
358359360361362363364365
/* subclasses should overwrite this method for better performance */ @Override public void lock() throws LockException { if (isLocked()) throw new LockException("Already locked"); this.locked = true; }