public class PGbox extends PGobject implements org.postgresql.util.PGBinaryObject, java.io.Serializable, java.lang.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(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
This must be overidden to allow the object to be cloned
|
boolean |
equals(java.lang.Object obj)
This must be overidden to allow comparisons of objects
|
java.lang.String |
getValue()
This must be overidden, to return the value of the object, in the
form required by org.postgresql.
|
int |
hashCode()
Compute hash.
|
int |
lengthInBytes() |
void |
setByteValue(byte[] b,
int offset) |
void |
setValue(java.lang.String value)
This method sets the value of this object.
|
void |
toBytes(byte[] bytes,
int offset) |
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(java.lang.String s)
throws java.sql.SQLException
s - Box definition in PostgreSQL syntaxjava.sql.SQLException - if definition is invalidpublic PGbox()
public void setValue(java.lang.String value)
throws java.sql.SQLException
public void setByteValue(byte[] b,
int offset)
setByteValue in interface org.postgresql.util.PGBinaryObjectb - Definition of this point in PostgreSQL's binary syntaxpublic boolean equals(java.lang.Object obj)
PGobjectpublic int hashCode()
PGobjectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PGobjectpublic java.lang.String getValue()
PGobjectpublic int lengthInBytes()
lengthInBytes in interface org.postgresql.util.PGBinaryObjectpublic void toBytes(byte[] bytes,
int offset)
toBytes in interface org.postgresql.util.PGBinaryObject