|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.value.Value
org.h2.value.ValueGeometry
public class ValueGeometry
Implementation of the GEOMETRY data type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.h2.value.Value |
|---|
Value.ValueBlob, Value.ValueClob |
| Field Summary |
|---|
| Fields inherited from class org.h2.value.Value |
|---|
ARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, GEOMETRY, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TYPE_COUNT, UNKNOWN, UUID |
| Method Summary | |
|---|---|
protected int |
compareSecure(Value v,
CompareMode mode)
Compare the value with another value of the same type. |
Value |
convertTo(int targetType)
Compare a value to the specified type. |
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code. |
static ValueGeometry |
get(byte[] bytes)
Get or create a geometry value for the given geometry. |
static ValueGeometry |
get(java.lang.String s)
Get or create a geometry value for the given geometry. |
static ValueGeometry |
get(java.lang.String s,
int srid)
Get or create a geometry value for the given geometry. |
byte[] |
getBytes()
|
byte[] |
getBytesNoCopy()
|
int |
getDisplaySize()
Get the display size in characters. |
ValueGeometry |
getEnvelopeIntersection(ValueGeometry r)
Get the intersection. |
Value |
getEnvelopeUnion(ValueGeometry r)
Get the union. |
static ValueGeometry |
getFromGeometry(java.lang.Object o)
Get or create a geometry value for the given geometry. |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Get a copy of geometry object. |
com.vividsolutions.jts.geom.Geometry |
getGeometryNoCopy()
|
int |
getMemory()
Get the memory used by this object. |
java.lang.Object |
getObject()
Get the value as an object. |
long |
getPrecision()
Get the precision. |
java.lang.String |
getSQL()
Get the SQL expression for this value. |
java.lang.String |
getString()
Get the value as a string. |
int |
getType()
Get the value type. |
byte[] |
getWKB()
Get the value in Well-Known-Binary format. |
java.lang.String |
getWKT()
Get the value in Well-Known-Text format. |
int |
hashCode()
|
boolean |
intersectsBoundingBox(ValueGeometry r)
Test if this geometry envelope intersects with the other geometry envelope. |
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement. |
| Methods inherited from class org.h2.value.Value |
|---|
add, checkPrecision, clearCache, close, compareTo, compareTypeSave, convertPrecision, convertScale, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInt, getLong, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinked, link, modulus, multiply, negate, subtract, throwUnsupportedExceptionForType, toString, unlink |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ValueGeometry getFromGeometry(java.lang.Object o)
o - the geometry object (of type
com.vividsolutions.jts.geom.Geometry)
public static ValueGeometry get(java.lang.String s)
s - the WKT representation of the geometry
public static ValueGeometry get(java.lang.String s,
int srid)
s - the WKT representation of the geometrysrid - the srid of the object
public static ValueGeometry get(byte[] bytes)
bytes - the WKB representation of the geometry
public com.vividsolutions.jts.geom.Geometry getGeometry()
public com.vividsolutions.jts.geom.Geometry getGeometryNoCopy()
public boolean intersectsBoundingBox(ValueGeometry r)
r - the other geometry
public Value getEnvelopeUnion(ValueGeometry r)
r - the other geometry
public ValueGeometry getEnvelopeIntersection(ValueGeometry r)
r - the other geometry
public int getType()
Value
getType in class Valuepublic java.lang.String getSQL()
Value
getSQL in class Value
protected int compareSecure(Value v,
CompareMode mode)
Value
compareSecure in class Valuev - the other valuemode - the compare mode
public java.lang.String getString()
Value
getString in class Valuepublic long getPrecision()
Value
getPrecision in class Valuepublic int hashCode()
hashCode in class Valuepublic java.lang.Object getObject()
Value
getObject in class Valuepublic byte[] getBytes()
getBytes in class Valuepublic byte[] getBytesNoCopy()
getBytesNoCopy in class Value
public void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Value
set in class Valueprep - the prepared statementparameterIndex - the parameter index
java.sql.SQLExceptionpublic int getDisplaySize()
Value
getDisplaySize in class Valuepublic int getMemory()
Value
getMemory in class Valuepublic boolean equals(java.lang.Object other)
Value
equals in class Valueother - the other value
public java.lang.String getWKT()
public byte[] getWKB()
public Value convertTo(int targetType)
Value
convertTo in class ValuetargetType - the type of the returned value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||