- 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
| 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 |
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.