|
||||||||||
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.PGcircle
public class PGcircle
This represents org.postgresql's circle datatype, consisting of a point and a radius
Field Summary | |
---|---|
PGpoint |
center
This is the center point |
double |
radius
This is the radius |
Fields inherited from class org.postgresql.util.PGobject |
---|
type, value |
Constructor Summary | |
---|---|
PGcircle()
This constructor is used by the driver. |
|
PGcircle(double x,
double y,
double r)
|
|
PGcircle(PGpoint c,
double r)
|
|
PGcircle(String s)
|
Method Summary | |
---|---|
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()
Compute hash. |
void |
setValue(String s)
This method sets the value of this object. |
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 center
public double radius
Constructor Detail |
---|
public PGcircle(double x, double y, double r)
x
- coordinate of centery
- coordinate of centerr
- radius of circlepublic PGcircle(PGpoint c, double r)
c
- PGpoint describing the circle's centerr
- radius of circlepublic PGcircle(String s) throws SQLException
s
- definition of the circle in PostgreSQL's syntax.
SQLException
- on conversion failurepublic PGcircle()
Method Detail |
---|
public void setValue(String s) throws SQLException
PGobject
setValue
in class PGobject
s
- definition of the circle in PostgreSQL's syntax.
SQLException
- on conversion failurepublic boolean equals(Object obj)
PGobject
equals
in class PGobject
obj
- Object to compare with
public int hashCode()
PGobject
hashCode
in class PGobject
Objects
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
public String getValue()
PGobject
getValue
in class PGobject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |