Source Code Cross Referenced for Statement.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » sql » 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.sql 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:           Derby - Class org.apache.derby.iapi.sql.Statement
004:
005:           Licensed to the Apache Software Foundation (ASF) under one or more
006:           contributor license agreements.  See the NOTICE file distributed with
007:           this work for additional information regarding copyright ownership.
008:           The ASF licenses this file to you under the Apache License, Version 2.0
009:           (the "License"); you may not use this file except in compliance with
010:           the License.  You may obtain a copy of the License at
011:
012:              http://www.apache.org/licenses/LICENSE-2.0
013:
014:           Unless required by applicable law or agreed to in writing, software
015:           distributed under the License is distributed on an "AS IS" BASIS,
016:           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017:           See the License for the specific language governing permissions and
018:           limitations under the License.
019:
020:         */
021:
022:        package org.apache.derby.iapi.sql;
023:
024:        import org.apache.derby.iapi.error.StandardException;
025:        import org.apache.derby.iapi.sql.dictionary.SchemaDescriptor;
026:        import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;
027:
028:        /**
029:         * The Statement interface provides a way of giving a statement to the
030:         * language module, preparing the statement, and executing it. It also
031:         * provides some support for stored statements. Simple, non-stored,
032:         * non-parameterized statements can be executed with the execute() method.
033:         * Parameterized statements must use prepare(). To get the stored query
034:         * plan for a statement, use get().
035:         * <p>
036:         * This interface will have different implementations for the execution-only
037:         * and compile-and-execute versions of the product. In the execution-only
038:         * version, some of the methods will do nothing but raise exceptions to
039:         * indicate that they are not implemented.
040:         * <p>
041:         * There is a Statement factory in the Connection interface in the Database
042:         * module, which uses the one provided in LanguageFactory.
043:         *
044:         *	@author Jeff Lichtman
045:         */
046:        public interface Statement {
047:
048:            /**
049:             * Generates an execution plan without executing it.
050:             *
051:             * @return A PreparedStatement that allows execution of the execution
052:             *	   plan.
053:             * @exception StandardException	Thrown if this is an
054:             *	   execution-only version of the module (the prepare() method
055:             *	   relies on compilation).
056:             */
057:            PreparedStatement prepare(LanguageConnectionContext lcc)
058:                    throws StandardException;
059:
060:            /**
061:             * Generates an execution plan without executing it.
062:             *
063:             * @param 	lcc			the language connection context
064:             * @param 	allowInternalSyntax	If this statement is for a metadata call then 
065:             *	   we will allow internal sql syntax on such statement. This internal
066:             *	   sql syntax is not available to a user sql statement.
067:             *
068:             * @return A PreparedStatement that allows execution of the execution
069:             *	   plan.
070:             * @exception StandardException	Thrown if this is an
071:             *	   execution-only version of the module (the prepare() method
072:             *	   relies on compilation).
073:             */
074:            PreparedStatement prepare(LanguageConnectionContext lcc,
075:                    boolean allowInternalSyntax) throws StandardException;
076:
077:            /**
078:             * Generates an execution plan given a set of named parameters.
079:             * For generating a storable prepared statement (which
080:             * has some extensions over a standard prepared statement).
081:             *
082:             * @param 	lcc					Compiler state variable.
083:             * @param 	ps					Prepared statement
084:             * @param	paramDefaults		Default parameter values to use for
085:             *								optimization
086:             * @param	spsSchema schema of the stored prepared statement
087:             *
088:             * @return A Storable PreparedStatement that allows execution of the execution
089:             *	   plan.
090:             * @exception StandardException	Thrown if this is an
091:             *	   execution-only version of the module (the prepare() method
092:             *	   relies on compilation).
093:             */
094:            public PreparedStatement prepareStorable(
095:                    LanguageConnectionContext lcc, PreparedStatement ps,
096:                    Object[] paramDefaults, SchemaDescriptor spsSchema,
097:                    boolean internalSQL) throws StandardException;
098:
099:            /**
100:             *	Return the SQL string that this statement is for.
101:             *
102:             *	@return the SQL string this statement is for.
103:             */
104:            String getSource();
105:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.