Java Doc for XMLDataValue.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » types » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.iapi.types 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.types.XMLDataValue

All known Subclasses:   org.apache.derby.iapi.types.XML,
XMLDataValue
public interface XMLDataValue extends DataValueDescriptor(Code)




Method Summary
public  BooleanDataValueXMLExists(SqlXmlUtil sqlxUtil)
     The SQL/XML XMLExists operator. Checks to see if evaluation of the query expression contained within the received util object against this XML value returns at least one item.
public  XMLDataValueXMLParse(String text, boolean preserveWS, SqlXmlUtil sqlxUtil)
     Method to parse an XML string and, if it's valid, store the _serialized_ version locally and then return this XMLDataValue.
Parameters:
  text - The string value to check.
Parameters:
  preserveWS - Whether or not to preserveignorable whitespace.
Parameters:
  sqlxUtil - Contains SQL/XML objects and utilmethods that facilitate execution of XML-relatedoperations If 'text' constitutes a valid XML document,it has been stored in this XML value and this XMLvalue returned; otherwise, an exception is thrown.
public  XMLDataValueXMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil)
     Evaluate the XML query expression contained within the received util object against this XML value and store the results into the received XMLDataValue "result" param (assuming "result" is non-null; else create a new XMLDataValue).
public  StringDataValueXMLSerialize(StringDataValue result, int targetType, int targetWidth)
     The SQL/XML XMLSerialize operator. Serializes this XML value into a string with a user-specified character 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).
Parameters:
  result - The result of a previous call to this method,null if not called yet.
Parameters:
  targetType - The string type to which we want to serialize.
Parameters:
  targetWidth - The width of the target type.
public  intgetXType()
     Retrieve this XML value's qualified type.
public  booleanhasTopLevelAttr()
     Return whether or not this XML value represents a sequence that has one or more top-level attribute nodes.
public  voidmarkAsHavingTopLevelAttr()
     Take note of the fact this XML value represents an XML sequence that has one or more top-level attribute nodes.
public  voidsetXType(int xtype)
     Set this XML value's qualified type.



Method Detail
XMLExists
public BooleanDataValue XMLExists(SqlXmlUtil sqlxUtil) throws StandardException(Code)
The SQL/XML XMLExists operator. Checks to see if evaluation of the query expression contained within the received util object against this XML value returns at least one item. NOTE: For now, the query expression must be XPath only (XQuery not supported) because that's what Xalan supports.
Parameters:
  sqlxUtil - Contains SQL/XML objects and utilmethods that facilitate execution of XML-relatedoperations True if evaluation of the query expression storedin sqlxUtil returns at least one node for this XML value;unknown if the xml value is NULL; false otherwise.
exception:
  StandardException - Thrown on error



XMLParse
public XMLDataValue XMLParse(String text, boolean preserveWS, SqlXmlUtil sqlxUtil) throws StandardException(Code)
Method to parse an XML string and, if it's valid, store the _serialized_ version locally and then return this XMLDataValue.
Parameters:
  text - The string value to check.
Parameters:
  preserveWS - Whether or not to preserveignorable whitespace.
Parameters:
  sqlxUtil - Contains SQL/XML objects and utilmethods that facilitate execution of XML-relatedoperations If 'text' constitutes a valid XML document,it has been stored in this XML value and this XMLvalue returned; otherwise, an exception is thrown.
exception:
  StandardException - Thrown on error.



XMLQuery
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException(Code)
Evaluate the XML query expression contained within the received util object against this XML value and store the results into the received XMLDataValue "result" param (assuming "result" is non-null; else create a new XMLDataValue).
Parameters:
  result - The result of a previous call to this method; nullif not called yet.
Parameters:
  sqlxUtil - Contains SQL/XML objects and util methods thatfacilitate execution of XML-related operations An XMLDataValue whose content corresponds to the serializedversion of the results from evaluation of the query expression.Note: this XMLDataValue may not be storable into Derby XMLcolumns.
exception:
  Exception - thrown on error (and turned into aStandardException by the caller).



XMLSerialize
public StringDataValue XMLSerialize(StringDataValue result, int targetType, int targetWidth) throws StandardException(Code)
The SQL/XML XMLSerialize operator. Serializes this XML value into a string with a user-specified character 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).
Parameters:
  result - The result of a previous call to this method,null if not called yet.
Parameters:
  targetType - The string type to which we want to serialize.
Parameters:
  targetWidth - The width of the target type. A serialized (to string) version of this XML object,in the form of a StringDataValue object.
exception:
  StandardException - Thrown on error



getXType
public int getXType()(Code)
Retrieve this XML value's qualified type.



hasTopLevelAttr
public boolean hasTopLevelAttr()(Code)
Return whether or not this XML value represents a sequence that has one or more top-level attribute nodes.



markAsHavingTopLevelAttr
public void markAsHavingTopLevelAttr()(Code)
Take note of the fact this XML value represents an XML sequence that has one or more top-level attribute nodes.



setXType
public void setXType(int xtype)(Code)
Set this XML value's qualified type.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.