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
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
ConstructorsConstructorDescriptionExtTypeInfoGeometry(int type, Integer srid) Creates new instance of extended parameters of the GEOMETRY data type. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSQL(StringBuilder builder, int sqlFlags) Appends the SQL statement of this object to the specified builder.getSrid()Returns the SRID of geometries.intgetType()Returns the type and dimension system of geometries.inthashCode()Methods inherited from class org.h2.value.ExtTypeInfo
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
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, ornullif not constrained
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getSQL
Description copied from interface:HasSQLAppends 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
nullif not constrained
-