package transaction;

public class WriteOnlyLock<T> extends Lock<T> {

	public WriteOnlyLock(T data) {
		super(data);
	}

	/**
	 * Unsupported operation
	 */
	public void readLock() {
		throw new UnsupportedOperationException();
	}
	
	
	/**
	 * Unsupported operation
	 */
	public void readUnlock() {
		throw new UnsupportedOperationException();
	}

	/**
	 * Unsupported operation
	 */
	public T getReadable() {
		throw new UnsupportedOperationException();
	}
}

Add WriteOnlyLock (required for Transaction(Commit|Execute)Protocols)