public abstract class PGboxbase
extends org.postgresql.util.PGobject
Modifier and Type | Field and Description |
---|---|
protected Point |
llb
The lower left bottom corner of the box.
|
protected Point |
urt
The upper right top corner of the box.
|
Constructor and Description |
---|
PGboxbase() |
PGboxbase(Point llb,
Point urt) |
PGboxbase(String value) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected static boolean |
compareLazyDim(Point first,
Point second)
Compare two coordinates with lazy dimension checking.
|
boolean |
equals(Object other) |
Point |
getLLB()
Returns the lower left bottom corner of the box as a Point object
|
abstract String |
getPGtype()
The Postgres type we have (same construct as getPrefix())
|
abstract String |
getPrefix()
The Prefix we have in WKT rep.
|
Point |
getURT()
Returns the upper right top corner of the box as a Point object
|
String |
getValue() |
protected abstract PGboxbase |
newInstance()
We could have used this.getClass().newInstance() here, but this forces us
dealing with InstantiationException and IllegalAccessException.
|
void |
setValue(String value) |
String |
toString()
Unlike geometries, toString() does _not_ contain the srid, as server-side
PostGIS cannot parse this.
|
protected Point llb
protected Point urt
public PGboxbase()
public PGboxbase(String value) throws SQLException
SQLException
public abstract String getPrefix()
public abstract String getPGtype()
public void setValue(String value) throws SQLException
setValue
in class org.postgresql.util.PGobject
SQLException
public String getValue()
getValue
in class org.postgresql.util.PGobject
public String toString()
toString
in class org.postgresql.util.PGobject
public Point getLLB()
public Point getURT()
public boolean equals(Object other)
equals
in class org.postgresql.util.PGobject
protected static boolean compareLazyDim(Point first, Point second)
public Object clone()
clone
in class org.postgresql.util.PGobject
protected abstract PGboxbase newInstance()
Copyright © 2014. All rights reserved.