Class PGgeo

  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    PGgeography, PGgeometry

    public class PGgeo
    extends org.postgresql.util.PGobject
    A 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 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:
        getValue in class org.postgresql.util.PGobject
      • setValue

        public void setValue​(String value)
                      throws SQLException
        Overrides:
        setValue in class org.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:
        toString in class org.postgresql.util.PGobject
      • clone

        public Object clone()
        Overrides:
        clone in class org.postgresql.util.PGobject