|
|||||||||
| 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()
|
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 circle
public PGcircle(PGpoint c,
double r)
c - PGpoint describing the circle's centerr - radius of circle
public 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 PGobjects - definition of the circle in PostgreSQL's syntax.
java.sql.SQLException - on conversion failurepublic boolean equals(java.lang.Object obj)
PGobject
equals in class PGobjectobj - Object to compare with
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
PGobject
clone in class PGobjectpublic 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 | ||||||||