public class PGlseg extends PGobject implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint[] |
point
These are the two points.
|
Constructor and Description |
---|
PGlseg()
reuired by the driver
|
PGlseg(double x1,
double y1,
double x2,
double y2) |
PGlseg(PGpoint p1,
PGpoint p2) |
PGlseg(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
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.
|
public PGpoint[] point
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 pointpublic PGlseg(java.lang.String s) throws java.sql.SQLException
s
- definition of the line segment in PostgreSQL's syntax.java.sql.SQLException
- on conversion failurepublic PGlseg()
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
public boolean equals(java.lang.Object obj)
PGobject
public int hashCode()
PGobject
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PGobject