|
||||||||||
| 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.PGlseg
public class PGlseg
This implements a lseg (line segment) consisting of two points
| Field Summary | |
|---|---|
PGpoint[] |
point
These are the two points. |
| Fields inherited from class org.postgresql.util.PGobject |
|---|
type, value |
| Constructor Summary | |
|---|---|
PGlseg()
reuired by the driver |
|
PGlseg(double x1,
double y1,
double x2,
double y2)
|
|
PGlseg(PGpoint p1,
PGpoint p2)
|
|
PGlseg(String s)
|
|
| Method Summary | |
|---|---|
Object |
clone()
This must be overidden to allow the object to be cloned |
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects |
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(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[] point
| Constructor Detail |
|---|
public PGlseg(double x1,
double y1,
double x2,
double y2)
x1 - coordinate for first pointy1 - coordinate for first pointx2 - coordinate for second pointy2 - coordinate for second point
public PGlseg(PGpoint p1,
PGpoint p2)
p1 - first pointp2 - second point
public PGlseg(String s)
throws SQLException
s - definition of the line segment in PostgreSQL's syntax.
SQLException - on conversion failurepublic PGlseg()
| Method Detail |
|---|
public void setValue(String s)
throws SQLException
PGobject
setValue in class PGobjects - Definition of the line segment 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()
PGobject
getValue in class PGobject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||