You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2008/09/28 10:19:22 UTC
svn commit: r699778 -
/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java
Author: aadamchik
Date: Sun Sep 28 01:19:21 2008
New Revision: 699778
URL: http://svn.apache.org/viewvc?rev=699778&view=rev
Log:
CAY-1107 Support JDBC 4
(adding JDBC 4 methods to JDBC 3 classes that do not require new JDBC interfaces)
Modified:
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java
Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java?rev=699778&r1=699777&r2=699778&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java (original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java Sun Sep 28 01:19:21 2008
@@ -228,32 +228,60 @@
connection.setTypeMap(map);
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public Blob createBlob() throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public Clob createClob() throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public Properties getClientInfo() throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public String getClientInfo(String name) throws SQLException {
- return null;
+ throw new UnsupportedOperationException();
}
+ /**
+ * @since 3.0
+ */
+ // JDBC 4 compatibility under Java 1.5
public boolean isValid(int timeout) throws SQLException {
- return false;
+ throw new UnsupportedOperationException();
}
/**