\begin{verbatim}
import java.sql.*;

public class GeoCoordJ implements java.sql.SQLData {
 private double latitude, longitude;

  public String getSQLTypeName() {
    return "SCOTT.GEOCOORD";
 }

 public void readSQL(SQLInput stream, String typeName)
   throws SQLException {
     latitude = stream.readDouble();
     longitude = stream.readDouble();
 }

 public void writeSQL(SQLOutput stream)
   throws SQLException {
     stream.writeDouble(latitude);
     stream.writeDouble(longitude);
 } //... to be continued
\end{verbatim}
