Klasse PGgeometrybase

java.lang.Object
org.postgresql.util.PGobject
io.github.sebasbaumh.postgis.PGgeometrybase
Alle implementierten Schnittstellen:
Serializable, Cloneable, org.postgresql.util.PGBinaryObject
Bekannte direkte Unterklassen:
PGgeography, PGgeometry

@NonNullByDefault({PARAMETER,RETURN_TYPE}) public abstract class PGgeometrybase extends org.postgresql.util.PGobject implements org.postgresql.util.PGBinaryObject
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.
Autor:
Phillip Ross
Siehe auch:
  • Felddetails

    • geometry

      @Nullable protected Geometry geometry
      Underlying geometry.
  • Konstruktordetails

    • PGgeometrybase

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

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

      protected PGgeometrybase(String type, String value) throws SQLException
      Constructs an instance.
      Parameter:
      type - type of this PGobject
      value - geometry
      Löst aus:
      SQLException
  • Methodendetails

    • equals

      public boolean equals(@Nullable Object obj)
      Setzt außer Kraft:
      equals in Klasse org.postgresql.util.PGobject
    • getGeometry

      @Nullable public Geometry getGeometry()
      Gets the underlying Geometry.
      Gibt zurück:
      Geometry on success, else null
    • getValue

      @Nullable public String getValue()
      Setzt außer Kraft:
      getValue in Klasse org.postgresql.util.PGobject
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse org.postgresql.util.PGobject
    • lengthInBytes

      public int lengthInBytes()
      Angegeben von:
      lengthInBytes in Schnittstelle org.postgresql.util.PGBinaryObject
    • setByteValue

      public void setByteValue(byte[] value, int offset) throws SQLException
      Angegeben von:
      setByteValue in Schnittstelle org.postgresql.util.PGBinaryObject
      Löst aus:
      SQLException
    • setGeometry

      public void setGeometry(@Nullable Geometry newgeom)
      Sets the underlying Geometry.
      Parameter:
      newgeom - Geometry (can be null)
    • setValue

      public void setValue(@Nonnull String value) throws SQLException
      Setzt außer Kraft:
      setValue in Klasse org.postgresql.util.PGobject
      Löst aus:
      SQLException
    • toBytes

      public void toBytes(byte[] bytes, int offset)
      Angegeben von:
      toBytes in Schnittstelle org.postgresql.util.PGBinaryObject
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse org.postgresql.util.PGobject