Source Code Cross Referenced for OQLQuery.java in  » Database-DBMS » Ozone-1.1 » org » odmg » 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 » Ozone 1.1 » org.odmg 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package org.odmg;
02:
03:        /**
04:         * The interface to an OQL query object.
05:         * @author	David Jordan (as Java Editor of the Object Data Management Group)
06:         * @version ODMG 3.0
07:         */
08:
09:        public interface OQLQuery {
10:
11:            /**
12:             * Create an OQL query from the string parameter.
13:             * In order to execute a query, an <code>OQLQuery</code> object must be created
14:             * by calling <code>Implementation.newOQLQuery</code>, then calling the
15:             * <code>create</code> method with the query string.
16:             * The <code>create</code> method might throw <code>QueryInvalidException</code>
17:             * if the query could not be compiled properly. Some implementations may not want
18:             * to compile the query before <code>execute</code> is called. In this case
19:             * <code>QueryInvalidException</code> is thrown when <code>execute</code> is called.
20:             * @param	query	An OQL query.
21:             * @exception	QueryInvalidException	The query syntax is invalid.
22:             */
23:            public void create(String query) throws QueryInvalidException;
24:
25:            /**
26:             * Bind a parameter to the query.
27:             * A parameter is denoted in the query string passed to <code>create</code> by <i>$i</i>,
28:             * where <i>i</i> is the rank of the parameter, beginning with 1.
29:             * The parameters are set consecutively by calling this method <code>bind</code>.
30:             * The <i>ith</i> variable is set by the <i>ith</i> call to the <code>bind</code> method.
31:             * If any of the <i>$i</i> are not set by a call to <code>bind</code> at the point
32:             * <code>execute</code> is called, <code>QueryParameterCountInvalidException</code> is thrown.
33:             * The parameters must be objects, and the result is an <code>Object</code>.
34:             * Objects must be used instead of primitive types (<code>Integer</code> instead
35:             * of <code>int</code>) for passing the parameters.
36:             * <p>
37:             * If the parameter is of the wrong type,
38:             * <code>QueryParameterTypeInvalidException</code> is thrown.
39:             * After executing a query, the parameter list is reset.
40:             * @parameter	A value to be substituted for a query parameter.
41:             * @exception QueryParameterCountInvalidException The number of calls to
42:             * <code>bind</code> has exceeded the number of parameters in the query.
43:             * @exception QueryParameterTypeInvalidException The type of the parameter does
44:             * not correspond with the type of the parameter in the query.
45:             */
46:            public void bind(Object parameter)
47:                    throws QueryParameterCountInvalidException,
48:                    QueryParameterTypeInvalidException;
49:
50:            /**
51:             * Execute the query.
52:             * After executing a query, the parameter list is reset.
53:             * Some implementations may throw additional exceptions that are also derived
54:             * from <code>ODMGException</code>.
55:             * @return	The object that represents the result of the query.
56:             * The returned data, whatever its OQL type, is encapsulated into an object.
57:             * For instance, when OQL returns an integer, the result is put into an
58:             * <code>Integer</code> object. When OQL returns a collection (literal or object),
59:             * the result is always a Java collection object of the same kind
60:             * (for instance, a <code>DList</code>).
61:             * @exception	QueryException	An exception has occurred while executing the query.
62:             */
63:            public Object execute() throws QueryException;
64:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.