Source Code Cross Referenced for Connection_2_0.java in  » Database-JDBC-Connection-Pool » octopus » com » internetcds » jdbc » tds » 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 » octopus » com.internetcds.jdbc.tds 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //
002:        // Copyright 1999 Craig Spannring
003:        //
004:        // All rights reserved.
005:        //
006:        // Redistribution and use in source and binary forms, with or without
007:        // modification, are permitted provided that the following conditions are met:
008:        // 1. Redistributions of source code must retain the above copyright
009:        //    notice, this list of conditions and the following disclaimer.
010:        // 2. Redistributions in binary form must reproduce the above copyright
011:        //    notice, this list of conditions and the following disclaimer in the
012:        //    documentation and/or other materials provided with the distribution.
013:        // 3. All advertising materials mentioning features or use of this software
014:        //    must display the following acknowledgement:
015:        //      This product includes software developed by Craig Spannring
016:        // 4. The name of Craig Spannring may not be used to endorse or promote
017:        //    products derived from this software without specific prior
018:        //    written permission.
019:        //
020:        // THIS SOFTWARE IS PROVIDED BY CRAIG SPANNRING ``AS IS'' AND
021:        // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
022:        // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
023:        // ARE DISCLAIMED.  IN NO EVENT SHALL CRAIG SPANNRING BE LIABLE
024:        // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
025:        // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
026:        // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
027:        // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
028:        // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
029:        // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
030:        // SUCH DAMAGE.
031:        //
032:
033:        package com.internetcds.jdbc.tds;
034:
035:        import java.sql.*;
036:        import java.util.Map;
037:        import java.util.Properties;
038:        import java.util.Vector;
039:
040:        public class Connection_2_0 extends
041:                com.internetcds.jdbc.tds.Connection_base implements 
042:                java.sql.Connection {
043:            public static final String cvsVersion = "$Id: Connection_2_0.java,v 1.1 2007-10-19 13:23:55 sinisa Exp $";
044:
045:            public Connection_2_0(java.util.Properties props_)
046:                    throws java.sql.SQLException,
047:                    com.internetcds.jdbc.tds.TdsException {
048:                super (props_);
049:            }
050:
051:            /**
052:             * JDBC 2.0
053:             *
054:             * Gets the type map object associated with this connection.
055:             * Unless the application has added an entry to the type map,
056:             * the map returned will be empty.
057:             *
058:             * @return the <code>java.util.Map</code> object associated 
059:             *         with this <code>Connection</code> object
060:             */
061:            public java.util.Map getTypeMap() throws SQLException {
062:                NotImplemented();
063:                return null;
064:            }
065:
066:            /**
067:             * JDBC 2.0
068:             *
069:             * Installs the given type map as the type map for
070:             * this connection.  The type map will be used for the
071:             * custom mapping of SQL structured types and distinct types.
072:             *
073:             * @param the <code>java.util.Map</code> object to install
074:             *        as the replacement for this <code>Connection</code>
075:             *        object's default type map
076:             */
077:            public void setTypeMap(java.util.Map map) throws SQLException {
078:                NotImplemented();
079:            }
080:
081:            //--------------------------JDBC 3.0-----------------------------
082:            /**
083:             * Changes the holdability of <code>ResultSet</code> objects
084:             * created using this <code>Connection</code> object to the given
085:             * holdability.
086:             *
087:             * @param holdability a <code>ResultSet</code> holdability constant; one of
088:             *        <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
089:             *        <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
090:             * @throws SQLException if a database access occurs, the given parameter
091:             *         is not a <code>ResultSet</code> constant indicating holdability,
092:             *         or the given holdability is not supported
093:             * @since 1.4
094:             * @see #getHoldability
095:             * @see java.sql.ResultSet
096:             */
097:            public void setHoldability(int holdability) throws SQLException {
098:                throw new UnsupportedOperationException(
099:                        "Connection.setHoldability(int) unsupported");
100:            }
101:
102:            /**
103:             * Retrieves the current holdability of ResultSet objects created
104:             * using this Connection object.
105:             *
106:             * @return the holdability, one of <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
107:             * <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
108:             * @throws SQLException if a database access occurs
109:             * @since 1.4
110:             * @see #setHoldability
111:             * @see java.sql.ResultSet
112:             */
113:            public int getHoldability() throws SQLException {
114:                throw new UnsupportedOperationException(
115:                        "Connection.getHoldability() unsupported");
116:            }
117:
118:            //     Removed since this only builds under JDK 1.4
119:            public Savepoint setSavepoint() throws SQLException {
120:                throw new UnsupportedOperationException(
121:                        "Connection.setSavepoint() unsupported");
122:            }
123:
124:            public Savepoint setSavepoint(String name) throws SQLException {
125:                throw new UnsupportedOperationException(
126:                        "Connection.setSavepoint(String) unsupported");
127:            }
128:
129:            public void rollback(Savepoint savepoint) throws SQLException {
130:                throw new UnsupportedOperationException(
131:                        "Connection.rollback(Savepoint) unsupported");
132:            }
133:
134:            public void releaseSavepoint(Savepoint savepoint)
135:                    throws SQLException {
136:                throw new UnsupportedOperationException(
137:                        "Connection.releaseSavepoint(Savepoint) unsupported");
138:            }
139:
140:            public java.sql.Statement createStatement(int resultSetType,
141:                    int resultSetConcurrency, int resultSetHoldability)
142:                    throws SQLException {
143:                throw new UnsupportedOperationException(
144:                        "Connection.createStatement(int,int,int) unsupported");
145:            }
146:
147:            public PreparedStatement prepareStatement(String sql,
148:                    int resultSetType, int resultSetConcurrency,
149:                    int resultSetHoldability) throws SQLException {
150:                throw new UnsupportedOperationException(
151:                        "Connection.prepareStatement(String,int,int,int) unsupported");
152:            }
153:
154:            public CallableStatement prepareCall(String sql, int resultSetType,
155:                    int resultSetConcurrency, int resultSetHoldability)
156:                    throws SQLException {
157:                throw new UnsupportedOperationException(
158:                        "Connection.prepareCall(String,int,int,int) unsupported");
159:            }
160:
161:            public PreparedStatement prepareStatement(String sql,
162:                    int autoGeneratedKeys) throws SQLException {
163:                throw new UnsupportedOperationException(
164:                        "Connection.prepareStatement(String,int) unsupported");
165:            }
166:
167:            public PreparedStatement prepareStatement(String sql,
168:                    int[] columnIndexes) throws SQLException {
169:                throw new UnsupportedOperationException(
170:                        "Connection.prepareStatement(String,int[]) unsupported");
171:            }
172:
173:            public PreparedStatement prepareStatement(String sql,
174:                    String[] columnNames) throws SQLException {
175:                throw new UnsupportedOperationException(
176:                        "Connection.prepareStatement(String,String[]) unsupported");
177:            }
178:
179:            public Array createArrayOf(String typeName, Object[] elements)
180:                    throws SQLException {
181:                // TODO Auto-generated method stub
182:                return null;
183:            }
184:
185:            public Blob createBlob() throws SQLException {
186:                // TODO Auto-generated method stub
187:                return null;
188:            }
189:
190:            public Clob createClob() throws SQLException {
191:                // TODO Auto-generated method stub
192:                return null;
193:            }
194:
195:            public NClob createNClob() throws SQLException {
196:                // TODO Auto-generated method stub
197:                return null;
198:            }
199:
200:            public SQLXML createSQLXML() throws SQLException {
201:                // TODO Auto-generated method stub
202:                return null;
203:            }
204:
205:            public Struct createStruct(String typeName, Object[] attributes)
206:                    throws SQLException {
207:                // TODO Auto-generated method stub
208:                return null;
209:            }
210:
211:            public Properties getClientInfo() throws SQLException {
212:                // TODO Auto-generated method stub
213:                return null;
214:            }
215:
216:            public String getClientInfo(String name) throws SQLException {
217:                // TODO Auto-generated method stub
218:                return null;
219:            }
220:
221:            public boolean isValid(int timeout) throws SQLException {
222:                // TODO Auto-generated method stub
223:                return false;
224:            }
225:
226:            public void setClientInfo(Properties properties)
227:                    throws SQLClientInfoException {
228:                // TODO Auto-generated method stub
229:                throw new UnsupportedOperationException(
230:                        "Connection.setClientInfo(Properties) unsupported");
231:            }
232:
233:            public void setClientInfo(String name, String value)
234:                    throws SQLClientInfoException {
235:                // TODO Auto-generated method stub
236:                throw new UnsupportedOperationException(
237:                        "Connection.setClientInfo(String,String) unsupported");
238:            }
239:
240:            //   public void setTypeMap(Map<String, Class<?>> arg0) throws SQLException {
241:            //      // TODO Auto-generated method stub
242:            //      
243:            //   }
244:
245:            public boolean isWrapperFor(Class<?> iface) throws SQLException {
246:                // TODO Auto-generated method stub
247:                return false;
248:            }
249:
250:            public <T> T unwrap(Class<T> iface) throws SQLException {
251:                // TODO Auto-generated method stub
252:                return null;
253:            }
254:
255:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.