Update of /var/cvs/src/org/mmbase/module/database In directory james.mmbase.org:/tmp/cvs-serv3922
Modified Files: Tag: MMBase-1_8 ConnectionWrapper.java Log Message: made it compile against java 1.6 as far as possible See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/database Index: ConnectionWrapper.java =================================================================== RCS file: /var/cvs/src/org/mmbase/module/database/ConnectionWrapper.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -b -r1.2 -r1.2.2.1 --- ConnectionWrapper.java 24 Dec 2005 11:35:45 -0000 1.2 +++ ConnectionWrapper.java 7 Mar 2008 14:40:16 -0000 1.2.2.1 @@ -10,13 +10,13 @@ package org.mmbase.module.database; import java.sql.*; -import java.util.Map; +import java.util.*; /** * Wraps a java.sql.Connection object. Extendsing this makes it possible to intercept calls. * * @author Michiel Meeuwissen - * @version $Id: ConnectionWrapper.java,v 1.2 2005/12/24 11:35:45 michiel Exp $ + * @version $Id: ConnectionWrapper.java,v 1.2.2.1 2008/03/07 14:40:16 michiel Exp $ * @since MMBase-1.8 */ public abstract class ConnectionWrapper implements Connection { @@ -291,6 +291,64 @@ } + public Clob createClob() throws SQLException { + throw new UnsupportedOperationException(); + } + public Blob createBlob() throws SQLException { + throw new UnsupportedOperationException(); + } + + + + public boolean isValid(int i) throws SQLException { + throw new UnsupportedOperationException(); + } + + + public String getClientInfo(String name) throws SQLException { + throw new UnsupportedOperationException(); + } + public Properties getClientInfo() throws SQLException { + throw new UnsupportedOperationException(); + } + + + public Array createArrayOf(String typeName, Object[] elements) throws SQLException { + throw new UnsupportedOperationException(); + } + + public Struct createStruct(String typeName, Object[] attributes) throws SQLException { + throw new UnsupportedOperationException(); + } + + public Object unwrap(Class iface) { + return con; + } + + public boolean isWrapperFor(Class iface) { + return iface.isAssignableFrom(con.getClass()); + } + + /* + Following methods must be added to make it compile against java 1.6 + Can't be done at the moment, because NCLob, SQLXML, SQLClientInfoException don't exist in + java 1.4. + + + public NClob createNClob() throws SQLException { + throw new UnsupportedOperationException(); + } + public SQLXML createSQLXML() throws SQLException { + throw new UnsupportedOperationException(); + } + public void setClientInfo(String name, String value) throws SQLClientInfoException { + throw new UnsupportedOperationException(); + } + public void setClientInfo(Properties properties) throws SQLClientInfoException { + throw new UnsupportedOperationException(); + } + */ + } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs