Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.types
Interface XMLDataValue  view XMLDataValue download XMLDataValue.java

All Superinterfaces:
DataValueDescriptor, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, Orderable, java.io.Serializable, org.apache.derby.iapi.services.io.Storable, org.apache.derby.iapi.services.io.TypedFormat
All Known Implementing Classes:
XML

public interface XMLDataValue
extends DataValueDescriptor


Field Summary
 
Fields inherited from interface org.apache.derby.iapi.types.Orderable
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN
 
Method Summary
 boolean exists(java.lang.String xExpr)
          Helper method for XMLExists.
 void parseAndLoadXML(java.lang.String xmlText, boolean preserveWS)
          Parse the received string value as XML.
 BooleanDataValue XMLExists(StringDataValue xExpr, XMLDataValue xml)
          The SQL/XML XMLExists operator.
 StringDataValue XMLSerialize(StringDataValue result, int targetType, int targetWidth)
          The SQL/XML XMLSerialize operator.
 
Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor
checkHostVariable, coalesce, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getClone, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTypeName, greaterOrEquals, greaterThan, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, typePrecedence, typeToBigDecimal
 
Methods inherited from interface org.apache.derby.iapi.services.io.Storable
isNull, restoreToNull
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat
getTypeFormatId
 

Method Detail

parseAndLoadXML

public void parseAndLoadXML(java.lang.String xmlText,
                            boolean preserveWS)
                     throws org.apache.derby.iapi.error.StandardException
Parse the received string value as XML. If the parse succeeds, store the string value as the contents of this XML value.


XMLSerialize

public StringDataValue XMLSerialize(StringDataValue result,
                                    int targetType,
                                    int targetWidth)
                             throws org.apache.derby.iapi.error.StandardException
The SQL/XML XMLSerialize operator. Converts this XML value into a string with a user-specified type, and returns that string via the received StringDataValue. (if the received StringDataValue is non-null and of the correct type; else, a new StringDataValue is returned).


XMLExists

public BooleanDataValue XMLExists(StringDataValue xExpr,
                                  XMLDataValue xml)
                           throws org.apache.derby.iapi.error.StandardException
The SQL/XML XMLExists operator. Takes an XML query expression (as a string) and an XML value and checks if at least one node in the XML value matches the query expression. NOTE: For now, the query expression must be XPath only (XQuery not supported).


exists

public boolean exists(java.lang.String xExpr)
               throws org.apache.derby.iapi.error.StandardException
Helper method for XMLExists. See if the received XPath expression returns at least one node when evaluated against _this_ XML value.