Package org.postgis
Class PGbox2d
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- org.postgis.PGboxbase
-
- org.postgis.PGbox2d
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PGbox2d extends PGboxbase
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPGtype()The Postgres type we have (same construct as getPrefix())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.voidsetValue(String value)
-
-
-
Constructor Detail
-
PGbox2d
public PGbox2d()
-
PGbox2d
public PGbox2d(String value) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
setValue
public void setValue(String value) throws SQLException
- Overrides:
setValuein classPGboxbase- Throws:
SQLException
-
getPrefix
public 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.
-
getPGtype
public String getPGtype()
Description copied from class:PGboxbaseThe Postgres type we have (same construct as getPrefix())
-
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
-
-