Package org.h2.value
Class ExtTypeInfoGeometry
- java.lang.Object
-
- org.h2.value.ExtTypeInfo
-
- org.h2.value.ExtTypeInfoGeometry
-
- All Implemented Interfaces:
HasSQL
public final class ExtTypeInfoGeometry extends ExtTypeInfo
Extended parameters of the GEOMETRY data type.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
srid
private int
type
-
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
-
-
Constructor Summary
Constructors Constructor Description ExtTypeInfoGeometry(int type, java.lang.Integer srid)
Creates new instance of extended parameters of the GEOMETRY data type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.StringBuilder
getSQL(java.lang.StringBuilder builder, int sqlFlags)
Appends the SQL statement of this object to the specified builder.java.lang.Integer
getSrid()
Returns the SRID of geometries.int
getType()
Returns the type and dimension system of geometries.int
hashCode()
(package private) static java.lang.StringBuilder
toSQL(java.lang.StringBuilder builder, int type, java.lang.Integer srid)
-
Methods inherited from class org.h2.value.ExtTypeInfo
toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
-
-
-
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 constrainedsrid
- the SRID of geometries, ornull
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.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 buildersqlFlags
- 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
-
-