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:
java.io.Serializable,java.lang.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 java.lang.StringgetPGtype()The Postgres type we have (same construct as getPrefix())java.lang.StringgetPrefix()The Prefix we have in WKT rep.protected PGboxbasenewInstance()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(java.lang.String value) throws java.sql.SQLExceptionConstructs an instance.- Parameters:
value- WKT- Throws:
java.sql.SQLException
-
-
Method Detail
-
getPGtype
public java.lang.String getPGtype()
Description copied from class:PGboxbaseThe Postgres type we have (same construct as getPrefix())
-
getPrefix
public java.lang.String getPrefix()
Description copied from class:PGboxbaseThe 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:PGboxbaseObtain 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:
newInstancein classPGboxbase- Returns:
- a new instance of PGboxbase
-
-