Package ai.platon.pulsar.ql.types
Class ValueDom
-
- All Implemented Interfaces:
-
java.lang.Comparable
public class ValueDom extends Value implements Comparable<T>
Implementation of the DOM data type.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DocumentNIL_DOCpublic final static ValueDomNILpublic static inttypepublic final Documentdocumentpublic final Elementelementpublic StringouterHtmlpublic final static intUNKNOWNpublic final static intNULLpublic final static intBOOLEANpublic final static intBYTEpublic final static intSHORTpublic final static intINTpublic final static intLONGpublic final static intDECIMALpublic final static intDOUBLEpublic final static intFLOATpublic final static intTIMEpublic final static intDATEpublic final static intTIMESTAMPpublic final static intBYTESpublic final static intSTRINGpublic final static intSTRING_IGNORECASEpublic final static intBLOBpublic final static intCLOBpublic final static intARRAYpublic final static intRESULT_SETpublic final static intJAVA_OBJECTpublic final static intUUIDpublic final static intSTRING_FIXEDpublic final static intGEOMETRYpublic final static intTIMESTAMP_TZpublic final static intENUMpublic final static intTYPE_COUNT
-
Method Summary
Modifier and Type Method Description 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. static ValueDomget(FeaturedDocument doc)static ValueDomgetOrNil(Element element)static ValueDomget(String html)ValueconvertTo(int targetType)intgetType()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(ValueDom o)-
Methods inherited from class org.h2.value.Value
add, checkPrecision, clearCache, compareTo, compareTypeSafe, convertPrecision, convertScale, convertToEnum, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInt, getLong, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
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
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- Returns:
the value
-
convertTo
Value convertTo(int targetType)
-
getType
int getType()
-
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()
-
-
-
-