|
|||||||||
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.PGline
public class PGline
This implements a line consisting of two points. Currently line is not yet implemented in the backend, but this class ensures that when it's done were ready for it.
Field Summary | |
---|---|
PGpoint[] |
point
These are the two points. |
Fields inherited from class org.postgresql.util.PGobject |
---|
type, value |
Constructor Summary | |
---|---|
PGline()
reuired by the driver |
|
PGline(double x1,
double y1,
double x2,
double y2)
|
|
PGline(PGpoint p1,
PGpoint p2)
|
|
PGline(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()
|
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[] point
Constructor Detail |
---|
public PGline(double x1, double y1, double x2, double y2)
x1
- coordinate for first pointy1
- coordinate for first pointx2
- coordinate for second pointy2
- coordinate for second pointpublic PGline(PGpoint p1, PGpoint p2)
p1
- first pointp2
- second pointpublic PGline(java.lang.String s) throws java.sql.SQLException
s
- definition of the line in PostgreSQL's syntax.
java.sql.SQLException
- on conversion failurepublic PGline()
Method Detail |
---|
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
setValue
in class PGobject
s
- Definition of the line 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()
hashCode
in class java.lang.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 |