Java Reference
In-Depth Information
*
* @param item The DVD to modify.
* @return A boolean indicating the success or failure of the modify
* operation.
* @throws RemoteException Thrown if an exception occurs in the
* <code>DvdDatabaseImpl</code> class.
* @throws IOException Thrown if an <code>IOException</code> is
* encountered in the <code>db</code> class.
* <br>
* For more information, see {@link DvdDatabase}.
*/
public boolean modifyDVD(DVD item) throws
RemoteException,
IOException {
return db.modifyDVD(item);
}
/**
* Removes a DVD database entry specified by a UPC.
*
* @param upc The UPC number of the DVD to remove.
* @return A boolean indicating the success or failure of the removal
* operation.
* @throws RemoteException Thrown if an exception occurs in the
* DvdDatabaseImpl class.
* @throws IOException Thrown if an IOException is
* encountered in the db class.
* <br>
* For more information, see {@link DvdDatabase}.
*/
public boolean removeDVD(String upc) throws
RemoteException,
IOException {
return db.removeDVD(upc);
}
/**
* Lock the requested DVD. This method blocks until the lock succeeds,
* or for a maximum of 5 seconds, whichever comes first.
*
* @param upc The UPC of the DVD to reserve
* @throws InterruptedException Indicates the thread is interrupted.
*/
public boolean reserveDVD(String upc)
throws InterruptedException, IOException {
return db.reserveDVD(upc);
}
Search WWH ::




Custom Search