|
||||||||
| 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. |
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. |
byte[] |
getBytes()
|
int |
getDisplaySize()
Get the display size in characters. |
static ValueGeometry |
getFromGeometry(java.lang.Object o)
Get or create a geometry value for the given geometry. |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
|
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. |
int |
hashCode()
|
Value |
intersection(ValueGeometry r)
Get the intersection of two values. |
boolean |
intersects(ValueGeometry r)
Check whether two values intersect. |
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement. |
byte[] |
toWKB()
Convert to value to the Well-Known-Binary format. |
java.lang.String |
toWKT()
Convert the value to the Well-Known-Text format. |
Value |
union(ValueGeometry r)
Get the union of two values. |
| Methods inherited from class org.h2.value.Value |
|---|
add, checkPrecision, clearCache, close, compareTo, compareTypeSave, convertPrecision, convertScale, convertTo, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getBytesNoCopy, 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(byte[] bytes)
bytes - the WKB representation of the geometry
public com.vividsolutions.jts.geom.Geometry getGeometry()
public boolean intersects(ValueGeometry r)
r - the second value
public Value intersection(ValueGeometry r)
r - the second value
public Value union(ValueGeometry r)
r - the second value
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 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 toWKT()
public byte[] toWKB()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||