|
||||||||||
| 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.PGpath
public class PGpath
This implements a path (a multiple segmented line, which may be closed)
| Field Summary | |
|---|---|
boolean |
open
True if the path is open, false if closed |
PGpoint[] |
points
The points defining this path |
| Fields inherited from class org.postgresql.util.PGobject |
|---|
type, value |
| Constructor Summary | |
|---|---|
PGpath()
Required by the driver |
|
PGpath(PGpoint[] points,
boolean open)
|
|
PGpath(String s)
|
|
| Method Summary | |
|---|---|
Object |
clone()
This must be overidden to allow the object to be cloned |
void |
closePath()
|
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects |
String |
getValue()
This returns the path in the syntax expected by org.postgresql |
int |
hashCode()
Compute hash. |
boolean |
isClosed()
|
boolean |
isOpen()
|
void |
openPath()
|
void |
setValue(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 boolean open
public PGpoint[] points
| Constructor Detail |
|---|
public PGpath(PGpoint[] points,
boolean open)
points - the PGpoints that define the pathopen - True if the path is open, false if closedpublic PGpath()
public PGpath(String s)
throws SQLException
s - definition of the path in PostgreSQL's syntax.
SQLException - on conversion failure| Method Detail |
|---|
public void setValue(String s)
throws SQLException
PGobject
setValue in class PGobjects - Definition of the path in PostgreSQL's syntax
SQLException - on conversion failurepublic boolean equals(Object obj)
PGobject
equals in class PGobjectobj - Object to compare with
public int hashCode()
PGobject
hashCode in class PGobjectObjects
public Object clone()
throws CloneNotSupportedException
PGobject
clone in class PGobjectCloneNotSupportedExceptionpublic String getValue()
getValue in class PGobjectpublic boolean isOpen()
public boolean isClosed()
public void closePath()
public void openPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||