org.postgresql.geometric
public class PGbox extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint[] |
point
These are the two points.
|
Constructor and Description |
---|
PGbox()
Required constructor
|
PGbox(double x1,
double y1,
double x2,
double y2) |
PGbox(PGpoint p1,
PGpoint p2) |
PGbox(String s) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
This must be overidden to allow the object to be cloned
|
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects
|
String |
getValue()
This must be overidden, to return the value of the object, in the
form required by org.postgresql.
|
int |
hashCode() |
void |
setValue(String value)
This method sets the value of this object.
|
public PGpoint[] point
public PGbox(double x1, double y1, double x2, double y2)
x1
- first x coordinatey1
- first y coordinatex2
- second x coordinatey2
- second y coordinatepublic PGbox(String s) throws SQLException
s
- Box definition in PostgreSQL syntaxSQLException
- if definition is invalidpublic PGbox()
public void setValue(String value) throws SQLException
setValue
in class PGobject
value
- a string representation of the value of the objectSQLException
- thrown if value is invalid for this typepublic boolean equals(Object obj)
PGobject
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException