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 overridden to allow the object to be cloned.
|
boolean |
equals(java.lang.Object obj)
This must be overridden to allow comparisons of objects.
|
java.lang.String |
getValue()
This must be overridden, 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.
|
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
PGobjectpublic boolean equals(java.lang.Object obj)
PGobjectpublic int hashCode()
PGobjectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PGobjectCopyright © 2025 PostgreSQL Global Development Group. All rights reserved.