public class PGpath extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
boolean |
open
True if the path is open, false if closed.
|
PGpoint[] |
points
The points defining this path.
|
Constructor and Description |
---|
PGpath()
Required by the driver.
|
PGpath(PGpoint[] points,
boolean open) |
PGpath(String s) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
This must be overidden to allow the object to be cloned.
|
void |
closePath() |
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects.
|
String |
getValue()
This returns the path in the syntax expected by org.postgresql.
|
int |
hashCode()
Compute hash.
|
boolean |
isClosed() |
boolean |
isOpen() |
void |
openPath() |
void |
setValue(String s)
This method sets the value of this object.
|
public boolean open
public PGpoint[] points
public PGpath(PGpoint[] points, boolean open)
points
- the PGpoints that define the pathopen
- True if the path is open, false if closedpublic PGpath()
public PGpath(String s) throws SQLException
s
- definition of the path in PostgreSQL's syntax.SQLException
- on conversion failurepublic void setValue(String s) throws SQLException
PGobject
setValue
in class PGobject
s
- Definition of the path in PostgreSQL's syntaxSQLException
- on conversion failurepublic boolean equals(Object obj)
PGobject
equals
in class PGobject
obj
- Object to compare withObject.hashCode()
,
HashMap
public int hashCode()
PGobject
hashCode
in class PGobject
Objects.hashCode(Object)
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable
public String getValue()
public boolean isOpen()
public boolean isClosed()
public void closePath()
public void openPath()
Copyright © 2019 PostgreSQL Global Development Group. All rights reserved.