Understanding SQL & Java Together: A Guide to SQLJ, JDBC, and Related Technologies

A comprehensive guide to how the marriage of SQL and Java is forging a new era in object-oriented databases.
This appendix contains the Movie, Vote, and VoteOutOfRange classes that were developed piecemeal in Chapter 6 and Chapter 8. The comments that introduce the variables and methods may seem verbose. They are structured comments used by the javadoc tool to generate HTML documentation for these classes.
package Cinema;import java.util.*;import java.io.*;import java.sql.*;/** * This class represents a movie object. It allows votes to * be registered, which are used in the ordering of movies * to one another. * * @author Andrew Eisenberg * @version 1.0 * @since JDK 1.1.6 */<a name="1087"></a><a name="IDX-440"></a>public class Movie implements java.io.Serializable { public String title; public int length; public String description; private Hashtable votes = new Hashtable (); /** * Constructor for a Movie * * @param title The title of the movie. ...