-
- All Implemented Interfaces:
-
java.lang.Comparable
public class ValueDom extends Value implements Comparable<ValueDom>
Implementation of the DOM data type.
-
-
Method Summary
Modifier and Type Method Description intgetType()DocumentgetDocument()ElementgetElement()StringgetOuterHtml()TODO: might use lot of memory so memory should be managed StringglobalId()booleanisNil()booleanisNotNil()booleanisDocument()static ValueDomget(Element element)Create a result set value for the given result set.The result set will be wrapped. static ValueDomget(FeaturedDocument doc)static ValueDomgetOrNil(Element element)static ValueDomget(String html)ValueconvertTo(int targetType)longgetPrecision()intgetDisplaySize()intgetMemory()StringgetString()booleanequals(Object other)TODO: We might have a better Element. ObjectgetObject()voidset(PreparedStatement prep, int parameterIndex)StringgetSQL()Array<byte>getBytes()Array<byte>getBytesNoCopy()Used by ValueDataType. inthashCode()StringtoString()intcompareTo(@NotNull() ValueDom o)-
Methods inherited from class org.h2.value.Value
add, checkPrecision, clearCache, compareTo, compareTypeSafe, convertPrecision, convertScale, convertTo, convertToEnum, copy, copyToResult, copyToTemp, divide, equals, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDate, getDisplaySize, getDouble, getFloat, getHigherOrder, getInputStream, getInt, getLong, getMemory, getObject, getPrecision, getReader, getResultSet, getSQL, getScale, getShort, getSignum, getSmall, getString, getTableId, getTime, getTimestamp, getTraceSQL, getType, hashCode, isLinkedToTable, modulus, multiply, negate, remove, set, subtract, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getType
int getType()
-
getDocument
Document getDocument()
-
getElement
Element getElement()
-
getOuterHtml
String getOuterHtml()
TODO: might use lot of memory so memory should be managed
-
isNil
boolean isNil()
-
isNotNil
boolean isNotNil()
-
isDocument
boolean isDocument()
-
get
@Nonnull() static ValueDom get(Element element)
Create a result set value for the given result set.The result set will be wrapped.
- Parameters:
element- the Element
-
convertTo
Value convertTo(int targetType)
-
getPrecision
long getPrecision()
-
getDisplaySize
int getDisplaySize()
-
getMemory
int getMemory()
-
set
void set(PreparedStatement prep, int parameterIndex)
-
getBytesNoCopy
Array<byte> getBytesNoCopy()
Used by ValueDataType.writeValue for serialization
-
hashCode
int hashCode()
-
-
-
-