|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.postgresql.util.PGobject
org.postgresql.geometric.PGbox
public class PGbox
This represents the box datatype within org.postgresql.
| Field Summary | |
|---|---|
PGpoint[] |
point
These are the two points. |
| Fields inherited from class org.postgresql.util.PGobject |
|---|
type, value |
| Constructor Summary | |
|---|---|
PGbox()
Required constructor |
|
PGbox(double x1,
double y1,
double x2,
double y2)
|
|
PGbox(PGpoint p1,
PGpoint p2)
|
|
PGbox(java.lang.String s)
|
|
| Method Summary | |
|---|---|
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()
|
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)
|
| Methods inherited from class org.postgresql.util.PGobject |
|---|
getType, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public PGpoint[] point
| Constructor Detail |
|---|
public PGbox(double x1,
double y1,
double x2,
double y2)
x1 - first x coordinatey1 - first y coordinatex2 - second x coordinatey2 - second y coordinate
public PGbox(PGpoint p1,
PGpoint p2)
p1 - first pointp2 - second point
public PGbox(java.lang.String s)
throws java.sql.SQLException
s - Box definition in PostgreSQL syntax
java.sql.SQLException - if definition is invalidpublic PGbox()
| Method Detail |
|---|
public void setValue(java.lang.String value)
throws java.sql.SQLException
setValue in class PGobjectvalue - a string representation of the value of the object
java.sql.SQLException - thrown if value is invalid for this type
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)
PGobject
equals in class PGobjectobj - Object to compare with
public int hashCode()
hashCode in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PGobject
clone in class PGobjectjava.lang.CloneNotSupportedExceptionpublic java.lang.String getValue()
PGobject
getValue in class PGobjectpublic int lengthInBytes()
lengthInBytes in interface org.postgresql.util.PGBinaryObject
public void toBytes(byte[] bytes,
int offset)
toBytes in interface org.postgresql.util.PGBinaryObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||