Package org.h2.value

Class ExtTypeInfoGeometry

  • All Implemented Interfaces:
    HasSQL

    public final class ExtTypeInfoGeometry
    extends ExtTypeInfo
    Extended parameters of the GEOMETRY data type.
    • Field Detail

      • type

        private final int type
      • srid

        private final java.lang.Integer srid
    • Constructor Detail

      • ExtTypeInfoGeometry

        public ExtTypeInfoGeometry​(int type,
                                   java.lang.Integer srid)
        Creates new instance of extended parameters of the GEOMETRY data type.
        Parameters:
        type - the type and dimension system of geometries, or 0 if not constrained
        srid - the SRID of geometries, or null if not constrained
    • Method Detail

      • toSQL

        static java.lang.StringBuilder toSQL​(java.lang.StringBuilder builder,
                                             int type,
                                             java.lang.Integer srid)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder
      • getType

        public int getType()
        Returns the type and dimension system of geometries.
        Returns:
        the type and dimension system of geometries, or 0 if not constrained
      • getSrid

        public java.lang.Integer getSrid()
        Returns the SRID of geometries.
        Returns:
        the SRID of geometries, or null if not constrained