Class PGgeometrybase

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

    @NonNullByDefault({PARAMETER,RETURN_TYPE})
    public abstract class PGgeometrybase
    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
    • Field Detail

    • Constructor Detail

      • PGgeometrybase

        protected PGgeometrybase​(String type)
        Constructs an instance.
        Parameters:
        type - type of this PGobject
      • PGgeometrybase

        protected PGgeometrybase​(String type,
                                 Geometry geom)
        Constructs an instance.
        Parameters:
        type - type of this PGobject
        geom - Geometry
      • PGgeometrybase

        protected PGgeometrybase​(String type,
                                 String value)
                          throws SQLException
        Constructs an instance.
        Parameters:
        type - type of this PGobject
        value - geometry
        Throws:
        SQLException
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class org.postgresql.util.PGobject
      • getValue

        public String getValue()
        Overrides:
        getValue in class org.postgresql.util.PGobject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.postgresql.util.PGobject
      • setGeometry

        public void setGeometry​(Geometry newgeom)
        Sets the underlying Geometry.
        Parameters:
        newgeom - Geometry
      • setValue

        public void setValue​(@Nonnull
                             String value)
                      throws SQLException
        Overrides:
        setValue in class org.postgresql.util.PGobject
        Throws:
        SQLException
      • toString

        public String toString()
        Overrides:
        toString in class org.postgresql.util.PGobject