Package net.postgis.jdbc
Class PGgeo
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- net.postgis.jdbc.PGgeo
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
PGgeography,PGgeometry
public class PGgeo extends org.postgresql.util.PGobjectA PostgreSQL JDBC PGobject extension data type modeling a "geo" type. This class serves as a common superclass for classes such as PGgeometry and PGgeography which model more specific type semantics.- Author:
- Phillip Ross
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()GeometrygetGeometry()Get the encapsulated geometry.intgetGeoType()Get the type of the encapsulated geometry.StringgetValue()voidsetGeometry(Geometry geometry)Set the encapsulated geometry.voidsetValue(String value)StringtoString()
-
-
-
Constructor Detail
-
PGgeo
protected PGgeo()
Instantiate with default state.
-
PGgeo
public PGgeo(Geometry geometry)
Instantiate with the specified state.- Parameters:
geometry- the geometry to instantiate with
-
PGgeo
public PGgeo(String value) throws SQLException
Instantiate with the specified state.- Parameters:
value- the value to instantiate with- Throws:
SQLException
-
-
Method Detail
-
getValue
public String getValue()
- Overrides:
getValuein classorg.postgresql.util.PGobject
-
setValue
public void setValue(String value) throws SQLException
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
getGeometry
public Geometry getGeometry()
Get the encapsulated geometry.- Returns:
- the encapsulated geomtery
-
setGeometry
public void setGeometry(Geometry geometry)
Set the encapsulated geometry.- Parameters:
geometry- the encapsulated geometry
-
getGeoType
public int getGeoType()
Get the type of the encapsulated geometry.- Returns:
- the type of the encapsulated geometry
-
toString
public String toString()
- Overrides:
toStringin classorg.postgresql.util.PGobject
-
clone
public Object clone()
- Overrides:
clonein classorg.postgresql.util.PGobject
-
-