You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2007/03/09 05:40:25 UTC
svn commit: r516296 -
/db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java
Author: djd
Date: Thu Mar 8 20:40:24 2007
New Revision: 516296
URL: http://svn.apache.org/viewvc?view=rev&rev=516296
Log:
DERBY-1983 (partial) Add some of the new methods added in JDBC 3.0 to UpdateableVTITemplate
which is the base class for the trigger transition table virtual tables.
Don't add the getParameterMetaData method yet as it will cause issues on JSR169
since ParameterMetaData is not part of JSR169.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java?view=diff&rev=516296&r1=516295&r2=516296
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/vti/UpdatableVTITemplate.java Thu Mar 8 20:40:24 2007
@@ -21,39 +21,35 @@
package org.apache.derby.vti;
-import org.apache.derby.iapi.reference.JDBC20Translation;
-
+import java.io.InputStream;
+import java.io.Reader;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
-import java.sql.Statement;
import java.sql.PreparedStatement;
+import java.sql.Ref;
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;
+import org.apache.derby.iapi.reference.JDBC20Translation;
/**
- An abstract implementation of PreparedStatement (JDK1.1/JDBC 1.2) that is useful
+ An abstract implementation of PreparedStatement (JDBC 3.0) 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
+ the methods of the JDBC3.0 version of PreparedStatement
+ 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.
@@ -686,4 +682,44 @@
public void setArray(int i, Array x) throws SQLException {
throw new SQLException("setArray");
}
+
+ public void setURL(int arg0, URL arg1) throws SQLException {
+ throw new SQLException("setURL");
+ }
+
+ public boolean getMoreResults(int arg0) throws SQLException {
+ throw new SQLException("getMoreResults");
+ }
+
+ public ResultSet getGeneratedKeys() throws SQLException {
+ throw new SQLException("getGeneratedKeys");
+ }
+
+ public int executeUpdate(String arg0, int arg1) throws SQLException {
+ throw new SQLException("executeUpdate");
+ }
+
+ public int executeUpdate(String arg0, int[] arg1) throws SQLException {
+ throw new SQLException("executeUpdate");
+ }
+
+ public int executeUpdate(String arg0, String[] arg1) throws SQLException {
+ throw new SQLException("executeUpdate");
+ }
+
+ public boolean execute(String arg0, int arg1) throws SQLException {
+ throw new SQLException("execute");
+ }
+
+ public boolean execute(String arg0, int[] arg1) throws SQLException {
+ throw new SQLException("execute");
+ }
+
+ public boolean execute(String arg0, String[] arg1) throws SQLException {
+ throw new SQLException("execute");
+ }
+
+ public int getResultSetHoldability() throws SQLException {
+ throw new SQLException("getResultSetHoldability");
+ }
}