⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatablevtitemplate.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/*   Derby - Class org.apache.derby.vti.UpdatableVTITemplate   Copyright 2000, 2004 The Apache Software Foundation or its licensors, as applicable.   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. */package org.apache.derby.vti;import org.apache.derby.iapi.reference.JDBC20Translation;import java.sql.Connection;import java.sql.Date;import java.sql.Statement;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.ResultSetMetaData;import java.sql.Statement;import java.sql.SQLException;import java.sql.SQLWarning;import java.sql.Time;import java.sql.Timestamp;import java.math.BigDecimal;import java.sql.Blob;import java.sql.Ref;import java.sql.Clob;import java.sql.Array;import java.io.Reader;import java.util.Calendar;import java.io.InputStream;/**   An abstract implementation of PreparedStatement (JDK1.1/JDBC 1.2) that is useful	when writing a read-write (updatable) virtual table interface (VTI).		This class implements	the methods of the JDBC1.2 version of PreparedStatement plus the 	JDBC2.0 getMetaData() method, each one throwing a SQLException	with the name of the method. A concrete subclass can then just implement	the methods not implemented here and override any methods it needs	to implement for correct functionality. */public abstract class UpdatableVTITemplate implements PreparedStatement {    //    // java.sql.Statement calls, passed through to our preparedStatement.    //	/**		@deprecated Cloudscape 5.1 no longer supports read-write VTI's with JDBC 1.2. Applications		can use the UpdatableVTITemplate to implement a read-write VTI.	*/	public UpdatableVTITemplate() {}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public ResultSet executeQuery(String sql) throws SQLException	{        throw new SQLException("executeQuery");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int executeUpdate(String sql) throws SQLException	{        throw new SQLException("executeUpdate");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void close() throws SQLException	{        throw new SQLException("close");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public SQLWarning getWarnings() throws SQLException	{        throw new SQLException("getWarnings");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void clearWarnings() throws SQLException	{        throw new SQLException("clearWarnings");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int getMaxFieldSize() throws SQLException	{        throw new SQLException("getMaxFieldSize");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setMaxFieldSize(int max) throws SQLException	{        throw new SQLException("setMaxFieldSize");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int getMaxRows() throws SQLException	{        throw new SQLException("getMaxRows");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setMaxRows(int max) throws SQLException	{        throw new SQLException("setMaxRows");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setEscapeProcessing(boolean enable) throws SQLException	{        throw new SQLException("setEscapeProcessing");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int getQueryTimeout() throws SQLException	{        throw new SQLException("getQueryTimeout");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setQueryTimeout(int seconds) throws SQLException	{        throw new SQLException("setQueryTimeout");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void addBatch(String sql) throws SQLException	{        throw new SQLException("addBatch");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void clearBatch() throws SQLException	{        throw new SQLException("clearBatch");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int[] executeBatch() throws SQLException	{        throw new SQLException("executeBatch");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void cancel() throws SQLException	{        throw new SQLException("cancel");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setCursorName(String name) throws SQLException	{        throw new SQLException("setCursorName");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public boolean execute(String sql) throws SQLException	{        throw new SQLException("execute");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public ResultSet getResultSet() throws SQLException	{        throw new SQLException("getResultSet");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int getUpdateCount() throws SQLException	{        throw new SQLException("getUpdateCount");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public boolean getMoreResults() throws SQLException	{        throw new SQLException("getMoreResults");	}	/**	 * @see java.sql.Statement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int getResultSetConcurrency() throws SQLException	{        return JDBC20Translation.CONCUR_UPDATABLE;	}    //    // java.sql.PreparedStatement calls, passed through to our preparedStatement.    //	/**	 * @see java.sql.PreparedStatement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public ResultSet executeQuery() throws SQLException	{        throw new SQLException("executeQuery");	}	/**	 * @see java.sql.PreparedStatement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public int executeUpdate() throws SQLException	{        throw new SQLException("executeUpdate");	}	/**	 * @see java.sql.PreparedStatement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setNull(int parameterIndex, int jdbcType) throws SQLException	{        throw new SQLException("setNull");	}	/**	 * @see java.sql.PreparedStatement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setNull(int parameterIndex, int jdbcType, String typeName) throws SQLException	{        throw new SQLException("setNull");	}	/**	 * @see java.sql.PreparedStatement	 * 	 * @exception SQLException on unexpected JDBC error	 */	public void setBoolean(int parameterIndex, boolean x) throws SQLException	{        throw new SQLException("setBoolean");	}	/**	 * @see java.sql.PreparedStatement	 *

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -