Package io.github.sebasbaumh.postgis
Class PGgeometrybase
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- io.github.sebasbaumh.postgis.PGgeometrybase
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
PGgeography,PGgeometry
@NonNullByDefault public abstract class PGgeometrybase 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPGgeometrybase()Constructs an instance.protectedPGgeometrybase(Geometry geom)Constructs an instance.protectedPGgeometrybase(String value)Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometrygetGeometry()Gets the underlyingGeometry.intgetGeoType()Gets the OGIS geometry type.StringgetValue()voidsetGeometry(Geometry newgeom)Sets the underlyingGeometry.voidsetValue(String value)StringtoString()
-
-
-
Field Detail
-
geometry
protected Geometry geometry
-
-
Constructor Detail
-
PGgeometrybase
protected PGgeometrybase()
Constructs an instance.
-
PGgeometrybase
protected PGgeometrybase(Geometry geom)
Constructs an instance.- Parameters:
geom-Geometry
-
PGgeometrybase
protected PGgeometrybase(String value) throws SQLException
Constructs an instance.- Parameters:
value- geometry- Throws:
SQLException
-
-
Method Detail
-
getGeoType
public int getGeoType()
Gets the OGIS geometry type.- Returns:
- geometry type
-
getValue
public String getValue()
- Overrides:
getValuein classorg.postgresql.util.PGobject
-
setGeometry
public void setGeometry(Geometry newgeom)
Sets the underlyingGeometry.- Parameters:
newgeom-Geometry
-
setValue
public void setValue(@Nonnull String value) throws SQLException
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
toString
public String toString()
- Overrides:
toStringin classorg.postgresql.util.PGobject
-
-