Source Code Cross Referenced for ProtocolConnection.java in  » Database-JDBC-Connection-Pool » postgresql » org » postgresql » core » 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 JDBC Connection Pool » postgresql » org.postgresql.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*-------------------------------------------------------------------------
002:         *
003:         * Copyright (c) 2004-2005, PostgreSQL Global Development Group
004:         * Copyright (c) 2004, Open Cloud Limited.
005:         *
006:         * IDENTIFICATION
007:         *   $PostgreSQL: pgjdbc/org/postgresql/core/ProtocolConnection.java,v 1.7 2006/12/01 08:53:45 jurka Exp $
008:         *
009:         *-------------------------------------------------------------------------
010:         */
011:        package org.postgresql.core;
012:
013:        import org.postgresql.PGNotification;
014:        import java.sql.*;
015:
016:        /**
017:         * Provides access to protocol-level connection operations.
018:         *
019:         * @author Oliver Jowett (oliver@opencloud.com)
020:         */
021:        public interface ProtocolConnection {
022:            /**
023:             * Constant returned by {@link #getTransactionState} indicating that no
024:             * transaction is currently open.
025:             */
026:            static final int TRANSACTION_IDLE = 0;
027:
028:            /**
029:             * Constant returned by {@link #getTransactionState} indicating that a
030:             * transaction is currently open.
031:             */
032:            static final int TRANSACTION_OPEN = 1;
033:
034:            /**
035:             * Constant returned by {@link #getTransactionState} indicating that a
036:             * transaction is currently open, but it has seen errors and will
037:             * refuse subsequent queries until a ROLLBACK.
038:             */
039:            static final int TRANSACTION_FAILED = 2;
040:
041:            /**
042:             * @return the hostname this connection is connected to.
043:             */
044:            String getHost();
045:
046:            /**
047:             * @return the port number this connection is connected to.
048:             */
049:            int getPort();
050:
051:            /**
052:             * @return the user this connection authenticated as.
053:             */
054:            String getUser();
055:
056:            /**
057:             * @return the database this connection is connected to.
058:             */
059:            String getDatabase();
060:
061:            /**
062:             * @return the server version of the connected server, formatted as X.Y.Z.
063:             */
064:            String getServerVersion();
065:
066:            /**
067:             * @return the current encoding in use by this connection
068:             */
069:            Encoding getEncoding();
070:
071:            /**
072:             * Returns whether the server treats string-literals according to the SQL
073:             * standard or if it uses traditional PostgreSQL escaping rules. Versions
074:             * up to 8.1 always treated backslashes as escape characters in
075:             * string-literals. Since 8.2, this depends on the value of the
076:             * <tt>standard_conforming_strings<tt> server variable.
077:             * 
078:             * @return true if the server treats string literals according to the SQL
079:             *   standard
080:             */
081:            boolean getStandardConformingStrings();
082:
083:            /**
084:             * Get the current transaction state of this connection.
085:             * 
086:             * @return a ProtocolConnection.TRANSACTION_* constant.
087:             */
088:            int getTransactionState();
089:
090:            /**
091:             * Retrieve and clear the set of asynchronous notifications pending on this
092:             * connection.
093:             *
094:             * @return an array of notifications; if there are no notifications, an empty
095:             *   array is returned.
096:             */
097:            PGNotification[] getNotifications() throws SQLException;
098:
099:            /**
100:             * Retrieve and clear the chain of warnings accumulated on this connection.
101:             *
102:             * @return the first SQLWarning in the chain; subsequent warnings can be
103:             *   found via SQLWarning.getNextWarning().
104:             */
105:            SQLWarning getWarnings();
106:
107:            /**
108:             * @return the QueryExecutor instance for this connection.
109:             */
110:            QueryExecutor getQueryExecutor();
111:
112:            /**
113:             * Sends a query cancellation for this connection.
114:             * @throws SQLException if something goes wrong.
115:             */
116:            void sendQueryCancel() throws SQLException;
117:
118:            /**
119:             * Close this connection cleanly.
120:             */
121:            void close();
122:
123:            /**
124:             * Check if this connection is closed.
125:             *
126:             * @return true iff the connection is closed.
127:             */
128:            boolean isClosed();
129:
130:            /**
131:             * 
132:             * @return the version of the implementation
133:             */
134:            public int getProtocolVersion();
135:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.