Package io.github.sebasbaumh.postgis
Class PGbox3d
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- io.github.sebasbaumh.postgis.PGboxbase
-
- io.github.sebasbaumh.postgis.PGbox3d
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PGbox3d extends PGboxbase
BOX3D representing the maximum extents of the geometry.- Author:
- Sebastian Baumhekel
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPGtype()
The Postgres type we have (same construct as getPrefix())String
getPrefix()
The Prefix we have in WKT rep.protected PGboxbase
newInstance()
Obtain a new instance of a PGboxbase We could have used this.getClass().newInstance() here, but this forces us dealing with InstantiationException and IllegalAccessException.
-
-
-
Constructor Detail
-
PGbox3d
public PGbox3d()
Constructs an instance.
-
PGbox3d
public PGbox3d(Point llb, Point urt)
Constructs an instance.- Parameters:
llb
- lower-left pointurt
- upper-right point
-
PGbox3d
public PGbox3d(String value) throws SQLException
Constructs an instance.- Parameters:
value
- WKT- Throws:
SQLException
-
-
Method Detail
-
getPGtype
public String getPGtype()
Description copied from class:PGboxbase
The Postgres type we have (same construct as getPrefix())
-
getPrefix
public String getPrefix()
Description copied from class:PGboxbase
The Prefix we have in WKT rep. I use an abstract method here so we do not need to replicate the String object in every instance.
-
newInstance
protected PGboxbase newInstance()
Description copied from class:PGboxbase
Obtain a new instance of a PGboxbase We could have used this.getClass().newInstance() here, but this forces us dealing with InstantiationException and IllegalAccessException. Due to the PGObject.clone() brokennes that does not allow clone() to throw CloneNotSupportedException, we cannot even pass this exceptions down to callers in a sane way.- Specified by:
newInstance
in classPGboxbase
- Returns:
- a new instance of PGboxbase
-
-