|
|||||||||
| 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.PGpolygon
public class PGpolygon
This implements the polygon datatype within PostgreSQL.
| Field Summary | |
|---|---|
PGpoint[] |
points
The points defining the polygon |
| Fields inherited from class org.postgresql.util.PGobject |
|---|
type, value |
| Constructor Summary | |
|---|---|
PGpolygon()
Required by the driver |
|
PGpolygon(PGpoint[] points)
Creates a polygon using an array of PGpoints |
|
PGpolygon(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[] points
| Constructor Detail |
|---|
public PGpolygon(PGpoint[] points)
points - the points defining the polygon
public PGpolygon(java.lang.String s)
throws java.sql.SQLException
s - definition of the polygon in PostgreSQL's syntax.
java.sql.SQLException - on conversion failurepublic PGpolygon()
| Method Detail |
|---|
public void setValue(java.lang.String s)
throws java.sql.SQLException
PGobject
setValue in class PGobjects - Definition of the polygon 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 | ||||||||