public class PGpolygon extends PGobject implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint[] |
points
The points defining the polygon
|
Constructor and Description |
---|
PGpolygon()
Required by the driver
|
PGpolygon(PGpoint[] points)
Creates a polygon using an array of PGpoints
|
PGpolygon(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
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.
|
public PGpoint[] points
public PGpolygon(PGpoint[] points)
points
- the points defining the polygonpublic 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()
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
public boolean equals(java.lang.Object obj)
PGobject
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PGobject