|
|||||||||
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()
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[] points
Constructor Detail |
---|
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()
Method Detail |
---|
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
setValue
in class PGobject
s
- Definition of the polygon 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 |