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

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

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

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

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