Package org.h2.value
Class ExtTypeInfoGeometry
java.lang.Object
org.h2.value.ExtTypeInfo
org.h2.value.ExtTypeInfoGeometry
- All Implemented Interfaces:
HasSQL
Extended parameters of the GEOMETRY data type.
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionExtTypeInfoGeometry
(int type, Integer srid) Creates new instance of extended parameters of the GEOMETRY data type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getSQL
(StringBuilder builder, int sqlFlags) Appends the SQL statement of this object to the specified builder.getSrid()
Returns the SRID of geometries.int
getType()
Returns the type and dimension system of geometries.int
hashCode()
(package private) static StringBuilder
toSQL
(StringBuilder builder, int type, 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
-
Field Details
-
type
private final int type -
srid
-
-
Constructor Details
-
ExtTypeInfoGeometry
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 Details
-
toSQL
-
hashCode
public int hashCode() -
equals
-
getSQL
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
Returns the SRID of geometries.- Returns:
- the SRID of geometries, or
null
if not constrained
-