📄 connection_2_0.java
字号:
//
// Copyright 1999 Craig Spannring
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by Craig Spannring
// 4. The name of Craig Spannring may not be used to endorse or promote
// products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY CRAIG SPANNRING ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL CRAIG SPANNRING BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
package com.internetcds.jdbc.tds;
import java.sql.*;
import java.util.Properties;
import java.util.Vector;
public class Connection_2_0
extends com.internetcds.jdbc.tds.Connection_base
implements java.sql.Connection
{
public static final String cvsVersion = "$Id: Connection_2_0.java,v 1.1 2003/04/29 18:07:50 sinisa Exp $";
public Connection_2_0(
java.util.Properties props_)
throws java.sql.SQLException, com.internetcds.jdbc.tds.TdsException
{
super(props_);
}
/**
* JDBC 2.0
*
* Gets the type map object associated with this connection.
* Unless the application has added an entry to the type map,
* the map returned will be empty.
*
* @return the <code>java.util.Map</code> object associated
* with this <code>Connection</code> object
*/
public java.util.Map getTypeMap() throws SQLException
{
NotImplemented();
return null;
}
/**
* JDBC 2.0
*
* Installs the given type map as the type map for
* this connection. The type map will be used for the
* custom mapping of SQL structured types and distinct types.
*
* @param the <code>java.util.Map</code> object to install
* as the replacement for this <code>Connection</code>
* object's default type map
*/
public void setTypeMap(java.util.Map map) throws SQLException
{
NotImplemented();
}
//--------------------------JDBC 3.0-----------------------------
/**
* Changes the holdability of <code>ResultSet</code> objects
* created using this <code>Connection</code> object to the given
* holdability.
*
* @param holdability a <code>ResultSet</code> holdability constant; one of
* <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
* <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
* @throws SQLException if a database access occurs, the given parameter
* is not a <code>ResultSet</code> constant indicating holdability,
* or the given holdability is not supported
* @since 1.4
* @see #getHoldability
* @see java.sql.ResultSet
*/
public void setHoldability(int holdability) throws SQLException {
throw new UnsupportedOperationException("Connection.setHoldability(int) unsupported");
}
/**
* Retrieves the current holdability of ResultSet objects created
* using this Connection object.
*
* @return the holdability, one of <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
* <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
* @throws SQLException if a database access occurs
* @since 1.4
* @see #setHoldability
* @see java.sql.ResultSet
*/
public int getHoldability() throws SQLException {
throw new UnsupportedOperationException("Connection.getHoldability() unsupported");
}
// Removed since this only builds under JDK 1.4
public Savepoint setSavepoint() throws SQLException {
throw new UnsupportedOperationException("Connection.setSavepoint() unsupported");
}
public Savepoint setSavepoint(String name) throws SQLException {
throw new UnsupportedOperationException("Connection.setSavepoint(String) unsupported");
}
public void rollback(Savepoint savepoint) throws SQLException {
throw new UnsupportedOperationException("Connection.rollback(Savepoint) unsupported");
}
public void releaseSavepoint(Savepoint savepoint) throws SQLException {
throw new UnsupportedOperationException("Connection.releaseSavepoint(Savepoint) unsupported");
}
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) throws SQLException {
throw new UnsupportedOperationException("Connection.createStatement(int,int,int) unsupported");
}
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) throws SQLException {
throw new UnsupportedOperationException("Connection.prepareStatement(String,int,int,int) unsupported");
}
public CallableStatement prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) throws SQLException {
throw new UnsupportedOperationException("Connection.prepareCall(String,int,int,int) unsupported");
}
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
throw new UnsupportedOperationException("Connection.prepareStatement(String,int) unsupported");
}
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
throw new UnsupportedOperationException("Connection.prepareStatement(String,int[]) unsupported");
}
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
throw new UnsupportedOperationException("Connection.prepareStatement(String,String[]) unsupported");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -