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