|
|||||||||
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(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()
Compute hash. |
void |
setValue(java.lang.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(java.lang.String s) throws java.sql.SQLException
s
- definition of the circle in PostgreSQL's syntax.
java.sql.SQLException
- on conversion failurepublic PGcircle()
Method Detail |
---|
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
setValue
in class PGobject
s
- definition of the circle in PostgreSQL's syntax.
java.sql.SQLException
- on conversion failurepublic boolean equals(java.lang.Object obj)
PGobject
equals
in class PGobject
obj
- Object to compare with
public int hashCode()
PGobject
hashCode
in class PGobject
java.util.Objects#hashCode(Object)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PGobject
clone
in class PGobject
java.lang.CloneNotSupportedException
public java.lang.String getValue()
PGobject
getValue
in class PGobject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |