public class PGline 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 |
|---|
PGline()
reuired by the driver
|
PGline(double x1,
double y1,
double x2,
double y2) |
PGline(PGpoint p1,
PGpoint p2) |
PGline(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() |
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()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PGobject