org.postgis
Class PGbox2d
java.lang.Object
org.postgresql.util.PGobject
org.postgis.PGboxbase
org.postgis.PGbox2d
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class PGbox2d
- extends PGboxbase
- See Also:
- Serialized Form
Fields inherited from class org.postgresql.util.PGobject |
type, value |
Method Summary |
java.lang.String |
getPGtype()
The Postgres type we have (same construct as getPrefix()) |
java.lang.String |
getPrefix()
The Prefix we have in WKT rep. |
protected PGboxbase |
newInstance()
We could have used this.getClass().newInstance() here, but this forces us
dealing with InstantiationException and IllegalAccessException. |
void |
setValue(java.lang.String value)
|
Methods inherited from class org.postgresql.util.PGobject |
getType, setType |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PGbox2d
public PGbox2d()
PGbox2d
public PGbox2d(Point llb,
Point urt)
PGbox2d
public PGbox2d(java.lang.String value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setValue
public void setValue(java.lang.String value)
throws java.sql.SQLException
- Overrides:
setValue
in class PGboxbase
- Throws:
java.sql.SQLException
getPrefix
public java.lang.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.
- Specified by:
getPrefix
in class PGboxbase
getPGtype
public java.lang.String getPGtype()
- Description copied from class:
PGboxbase
- The Postgres type we have (same construct as getPrefix())
- Specified by:
getPGtype
in class PGboxbase
newInstance
protected PGboxbase newInstance()
- Description copied from class:
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 class PGboxbase