Package io.github.sebasbaumh.postgis
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:
-
Feldübersicht
FelderVon Klasse geerbte Felder org.postgresql.util.PGobject
type, value
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
PGgeometrybase
(String type) Constructs an instance.protected
PGgeometrybase
(String type, Geometry geom) Constructs an instance.protected
PGgeometrybase
(String type, String value) Constructs an instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Gets the underlyingGeometry
.getValue()
int
hashCode()
int
void
setByteValue
(byte[] value, int offset) void
setGeometry
(Geometry newgeom) Sets the underlyingGeometry
.void
void
toBytes
(byte[] bytes, int offset) toString()
Von Klasse geerbte Methoden org.postgresql.util.PGobject
clone, equals, getType, isNull, setType
-
Felddetails
-
geometry
Underlying geometry.
-
-
Konstruktordetails
-
PGgeometrybase
Constructs an instance.- Parameter:
type
- type of thisPGobject
-
PGgeometrybase
Constructs an instance.- Parameter:
type
- type of thisPGobject
geom
-Geometry
-
PGgeometrybase
Constructs an instance.- Parameter:
type
- type of thisPGobject
value
- geometry- Löst aus:
SQLException
-
-
Methodendetails
-
equals
- Setzt außer Kraft:
equals
in Klasseorg.postgresql.util.PGobject
-
getGeometry
Gets the underlyingGeometry
.- Gibt zurück:
Geometry
on success, else null
-
getValue
- Setzt außer Kraft:
getValue
in Klasseorg.postgresql.util.PGobject
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCode
in Klasseorg.postgresql.util.PGobject
-
lengthInBytes
public int lengthInBytes()- Angegeben von:
lengthInBytes
in Schnittstelleorg.postgresql.util.PGBinaryObject
-
setByteValue
- Angegeben von:
setByteValue
in Schnittstelleorg.postgresql.util.PGBinaryObject
- Löst aus:
SQLException
-
setGeometry
Sets the underlyingGeometry
.- Parameter:
newgeom
-Geometry
(can be null)
-
setValue
- Setzt außer Kraft:
setValue
in Klasseorg.postgresql.util.PGobject
- Löst aus:
SQLException
-
toBytes
public void toBytes(byte[] bytes, int offset) - Angegeben von:
toBytes
in Schnittstelleorg.postgresql.util.PGBinaryObject
-
toString
- Setzt außer Kraft:
toString
in Klasseorg.postgresql.util.PGobject
-