summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/PGbox.java
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
commit46fb81636c84ad5fc4007e567f2d82ddb4394567 (patch)
tree1e0068abbbbef6e2bee8098f40e653eae3d31397 /src/interfaces/jdbc/postgresql/PGbox.java
parent09634ebdfe2207eb379ca8566ffe599126125714 (diff)
Remove various files that were moved to various subdirectories...
Requested by: Peter T Mount peter@retep.org.uk
Diffstat (limited to 'src/interfaces/jdbc/postgresql/PGbox.java')
-rw-r--r--src/interfaces/jdbc/postgresql/PGbox.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/interfaces/jdbc/postgresql/PGbox.java b/src/interfaces/jdbc/postgresql/PGbox.java
deleted file mode 100644
index b8edc00846f..00000000000
--- a/src/interfaces/jdbc/postgresql/PGbox.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * @version 6.2
- *
- * This implements a box consisting of two points
- *
- */
-
-package postgresql;
-
-import java.io.*;
-import java.sql.*;
-
-public class PGbox implements Serializable
-{
- /**
- * These are the two points.
- */
- public PGpoint point[] = new PGpoint[2];
-
- public PGbox(double x1,double y1,double x2,double y2)
- {
- this.point[0] = new PGpoint(x1,y1);
- this.point[1] = new PGpoint(x2,y2);
- }
-
- public PGbox(PGpoint p1,PGpoint p2)
- {
- this.point[0] = p1;
- this.point[1] = p2;
- }
-
- /**
- * This constructor is used by the driver.
- */
- public PGbox(String s) throws SQLException
- {
- PGtokenizer t = new PGtokenizer(s,',');
- if(t.getSize() != 2)
- throw new SQLException("conversion of box failed - "+s);
-
- point[0] = new PGpoint(t.getToken(0));
- point[1] = new PGpoint(t.getToken(1));
- }
-
- public boolean equals(Object obj)
- {
- PGbox p = (PGbox)obj;
- return (p.point[0].equals(point[0]) && p.point[1].equals(point[1])) ||
- (p.point[0].equals(point[1]) && p.point[1].equals(point[0]));
- }
-
- /**
- * This returns the lseg in the syntax expected by postgresql
- */
- public String toString()
- {
- return point[0].toString()+","+point[1].toString();
- }
-}