This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_0_311 in repository libpostgresql-jdbc-java.
commit 426e0b1ca8bed3d146cf356c0541d3f3064e65a1 Author: Kris Jurka <[email protected]> Date: Tue Feb 15 08:55:51 2005 +0000 Add method names to the not implemented exception to allow unhelpful client programs that don't provide a stacktrace to be debugged. Xavier Poinsard --- org/postgresql/Driver.java.in | 16 ++- org/postgresql/core/v2/QueryExecutorImpl.java | 4 +- org/postgresql/jdbc2/AbstractJdbc2Array.java | 13 ++- org/postgresql/jdbc2/AbstractJdbc2Blob.java | 4 +- org/postgresql/jdbc2/AbstractJdbc2Clob.java | 6 +- org/postgresql/jdbc2/AbstractJdbc2Connection.java | 6 +- org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 8 +- org/postgresql/jdbc2/AbstractJdbc2Statement.java | 14 +-- org/postgresql/jdbc3/AbstractJdbc3Blob.java | 10 +- org/postgresql/jdbc3/AbstractJdbc3Clob.java | 12 +-- .../jdbc3/AbstractJdbc3DatabaseMetaData.java | 8 +- org/postgresql/jdbc3/AbstractJdbc3ResultSet.java | 22 ++--- org/postgresql/jdbc3/AbstractJdbc3Statement.java | 108 ++++++++++----------- 13 files changed, 124 insertions(+), 107 deletions(-) diff --git a/org/postgresql/Driver.java.in b/org/postgresql/Driver.java.in index 710e8e5..0197004 100644 --- a/org/postgresql/Driver.java.in +++ b/org/postgresql/Driver.java.in @@ -3,7 +3,7 @@ * Copyright (c) 2003-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/Driver.java.in,v 1.62 2005/01/18 22:31:54 oliver Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/Driver.java.in,v 1.63 2005/01/18 23:17:36 oliver Exp $ * *------------------------------------------------------------------------- */ @@ -564,10 +564,20 @@ public class Driver implements java.sql.Driver * for an unimplemented method. I decided to do it this way while * implementing the JDBC2 extensions to JDBC, as it should help keep the * overall driver size down. + * It now requires the call Class and the function name to help when the + * driver is used with closed software that don't report the stack strace + * @param callClass the call Class + * @param functionName the name of the unimplemented function with the type + * of its arguments + * @return PSQLException with a localized message giving the complete + * description of the unimplemeted function */ - public static SQLException notImplemented() + public static SQLException notImplemented(Class callClass, String functionName) { - return new PSQLException(GT.tr("This method is not yet implemented."), PSQLState.NOT_IMPLEMENTED); + String message = GT.tr("Method {0} is not yet implemented.",callClass.getName()+"."+functionName); + if (Driver.logDebug) + Driver.debug(message); + return new PSQLException(message, PSQLState.NOT_IMPLEMENTED); } /** diff --git a/org/postgresql/core/v2/QueryExecutorImpl.java b/org/postgresql/core/v2/QueryExecutorImpl.java index fcb1b9b..95ad0ca 100644 --- a/org/postgresql/core/v2/QueryExecutorImpl.java +++ b/org/postgresql/core/v2/QueryExecutorImpl.java @@ -4,7 +4,7 @@ * Copyright (c) 2004, Open Cloud Limited. * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/core/v2/QueryExecutorImpl.java,v 1.10 2005/02/01 07:27:54 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/core/v2/QueryExecutorImpl.java,v 1.10.2.1 2005/02/10 19:52:45 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -267,7 +267,7 @@ public class QueryExecutorImpl implements QueryExecutor { } public void fetch(ResultCursor cursor, ResultHandler handler, int rows) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "fetch(ResultCursor,ResultHandler,int)"); } private void execute(V2Query query, diff --git a/org/postgresql/jdbc2/AbstractJdbc2Array.java b/org/postgresql/jdbc2/AbstractJdbc2Array.java index d3c4a0b..8d971c9 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Array.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Array.java @@ -3,12 +3,13 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Array.java,v 1.12 2005/01/11 08:25:45 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Array.java,v 1.13 2005/01/14 01:20:19 oliver Exp $ * *------------------------------------------------------------------------- */ package org.postgresql.jdbc2; +import org.postgresql.Driver; import org.postgresql.core.*; import org.postgresql.util.PSQLException; import org.postgresql.util.PSQLState; @@ -84,7 +85,7 @@ public class AbstractJdbc2Array public Object getArrayImpl(long index, int count, Map map) throws SQLException { if ( map != null ) // For now maps aren't supported. - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getArrayImpl(long,int,Map)"); if (index < 1) throw new PSQLException(GT.tr("The array index is out of range: {0}", new Long(index)), PSQLState.DATA_ERROR); @@ -226,7 +227,9 @@ public class AbstractJdbc2Array // Other datatypes not currently supported. If you are really using other types ask // yourself if an array of non-trivial data types is really good database design. default: - throw org.postgresql.Driver.notImplemented(); + if (Driver.logDebug) + Driver.debug("getArrayImpl(long,int,Map) with "+getBaseTypeName()); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getArrayImpl(long,int,Map)"); } return retVal; } @@ -405,7 +408,9 @@ public class AbstractJdbc2Array // Other datatypes not currently supported. If you are really using other types ask // yourself if an array of non-trivial data types is really good database design. default: - throw org.postgresql.Driver.notImplemented(); + if (Driver.logDebug) + Driver.debug("getResultSetImpl(long,int,Map) with "+getBaseTypeName()); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getResultSetImpl(long,int,Map)"); } BaseStatement stat = (BaseStatement) conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); return (ResultSet) stat.createDriverResultSet(fields, rows); diff --git a/org/postgresql/jdbc2/AbstractJdbc2Blob.java b/org/postgresql/jdbc2/AbstractJdbc2Blob.java index d67a06f..230ec19 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Blob.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Blob.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Blob.java,v 1.6 2004/11/09 08:48:29 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Blob.java,v 1.7 2005/01/11 08:25:45 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -47,7 +47,7 @@ public abstract class AbstractJdbc2Blob */ public long position(byte[] pattern, long start) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "position(byte[],long)"); } /* diff --git a/org/postgresql/jdbc2/AbstractJdbc2Clob.java b/org/postgresql/jdbc2/AbstractJdbc2Clob.java index 5dc3f4a..2231121 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Clob.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Clob.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Clob.java,v 1.6 2004/11/09 08:48:29 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Clob.java,v 1.7 2005/01/11 08:25:45 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -55,7 +55,7 @@ public class AbstractJdbc2Clob */ public long position(String pattern, long start) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "position(String,long)"); } /* @@ -63,7 +63,7 @@ public class AbstractJdbc2Clob */ public long position(Clob pattern, long start) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "position(Clob,start)"); } } diff --git a/org/postgresql/jdbc2/AbstractJdbc2Connection.java b/org/postgresql/jdbc2/AbstractJdbc2Connection.java index 021c6b8..132e080 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Connection.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Connection.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java,v 1.25 2005/01/14 01:20:19 oliver Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java,v 1.26 2005/01/25 06:21:21 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -357,7 +357,9 @@ public abstract class AbstractJdbc2Connection implements BaseConnection if (d != null) { // Handle the type (requires SQLInput & SQLOutput classes to be implemented) - throw org.postgresql.Driver.notImplemented(); + if (Driver.logDebug) + Driver.debug("getObject(String,String) with custom typemap"); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getObject(String,String)"); } } diff --git a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java index 3c6042c..d240dc4 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java +++ b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java @@ -3,7 +3,7 @@ * Copyright (c) 2003-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v 1.70 2005/01/14 01:20:19 oliver Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v 1.71 2005/01/27 22:07:33 oliver Exp $ * *------------------------------------------------------------------------- */ @@ -98,7 +98,7 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg public java.net.URL getURL(int columnIndex) throws SQLException { checkClosed(); - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(int)"); } @@ -453,7 +453,7 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg public Object getObjectImpl(int i, java.util.Map map) throws SQLException { checkClosed(); - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)"); } @@ -467,7 +467,7 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg { checkClosed(); //The backend doesn't yet have SQL3 REF types - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getRef(int)"); } diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 0869f27..d309e6f 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.68 2005/02/01 07:27:54 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.68.2.1 2005/02/15 08:32:16 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -2723,7 +2723,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement public void setRef(int i, Ref x) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "setRef(int,Ref)"); } public void setDate(int i, java.sql.Date d, java.util.Calendar cal) throws SQLException @@ -2780,22 +2780,22 @@ public abstract class AbstractJdbc2Statement implements BaseStatement public Blob getBlob(int i) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "getBlob(int)"); } public Clob getClob(int i) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "getClob(int)"); } public Object getObjectImpl(int i, java.util.Map map) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)"); } public Ref getRef(int i) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "getRef(int)"); } public java.sql.Date getDate(int i, java.util.Calendar cal) throws SQLException @@ -2834,7 +2834,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement // no custom types allowed yet.. public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLException { - throw Driver.notImplemented(); + throw Driver.notImplemented(this.getClass(), "registerOutParameter(int,int,String)"); } diff --git a/org/postgresql/jdbc3/AbstractJdbc3Blob.java b/org/postgresql/jdbc3/AbstractJdbc3Blob.java index d6ecf2f..8d66af0 100644 --- a/org/postgresql/jdbc3/AbstractJdbc3Blob.java +++ b/org/postgresql/jdbc3/AbstractJdbc3Blob.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Blob.java,v 1.4 2004/11/09 08:50:07 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Blob.java,v 1.5 2005/01/11 08:25:46 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -37,7 +37,7 @@ public abstract class AbstractJdbc3Blob extends org.postgresql.jdbc2.AbstractJdb */ public int setBytes(long pos, byte[] bytes) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBytes(long,byte[]"); } /** @@ -63,7 +63,7 @@ public abstract class AbstractJdbc3Blob extends org.postgresql.jdbc2.AbstractJdb */ public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBytes(long,byte[],int,int)"); } /** @@ -82,7 +82,7 @@ public abstract class AbstractJdbc3Blob extends org.postgresql.jdbc2.AbstractJdb */ public java.io.OutputStream setBinaryStream(long pos) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBinaryStream(long)"); } /** @@ -97,7 +97,7 @@ public abstract class AbstractJdbc3Blob extends org.postgresql.jdbc2.AbstractJdb */ public void truncate(long len) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "truncate(long)"); } } diff --git a/org/postgresql/jdbc3/AbstractJdbc3Clob.java b/org/postgresql/jdbc3/AbstractJdbc3Clob.java index fc05aab..bf13b88 100644 --- a/org/postgresql/jdbc3/AbstractJdbc3Clob.java +++ b/org/postgresql/jdbc3/AbstractJdbc3Clob.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Clob.java,v 1.4 2004/11/09 08:50:07 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Clob.java,v 1.5 2005/01/11 08:25:46 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -37,7 +37,7 @@ public abstract class AbstractJdbc3Clob extends org.postgresql.jdbc2.AbstractJdb */ public int setString(long pos, String str) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setString(long,str)"); } /** @@ -60,7 +60,7 @@ public abstract class AbstractJdbc3Clob extends org.postgresql.jdbc2.AbstractJdb */ public int setString(long pos, String str, int offset, int len) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setString(long,String,int,int)"); } /** @@ -79,7 +79,7 @@ public abstract class AbstractJdbc3Clob extends org.postgresql.jdbc2.AbstractJdb */ public java.io.OutputStream setAsciiStream(long pos) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setAsciiStream(long)"); } /** @@ -99,7 +99,7 @@ public abstract class AbstractJdbc3Clob extends org.postgresql.jdbc2.AbstractJdb */ public java.io.Writer setCharacterStream(long pos) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setCharacteStream(long)"); } /** @@ -115,7 +115,7 @@ public abstract class AbstractJdbc3Clob extends org.postgresql.jdbc2.AbstractJdb */ public void truncate(long len) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "truncate(long)"); } } diff --git a/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java b/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java index 42f45be..e3c2a89 100644 --- a/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java +++ b/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java,v 1.9 2004/11/09 10:53:35 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java,v 1.10 2005/01/11 08:25:46 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -121,7 +121,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2 public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getSuperTypes(String,String,String)"); } /** @@ -160,7 +160,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2 public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getSuperTables(String,String,String,String)"); } /** @@ -237,7 +237,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2 String typeNamePattern, String attributeNamePattern) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getAttributes(String,String,String,String)"); } /** diff --git a/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java b/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java index d8edd79..dd35880 100644 --- a/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java +++ b/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java,v 1.10 2004/11/09 08:50:07 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java,v 1.11 2005/01/11 08:25:46 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -44,7 +44,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public java.net.URL getURL(int columnIndex) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(int)"); } /** @@ -62,7 +62,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public java.net.URL getURL(String columnName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(String)"); } /** @@ -79,7 +79,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateRef(int columnIndex, java.sql.Ref x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateRef(int,Ref)"); } /** @@ -96,7 +96,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateRef(String columnName, java.sql.Ref x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateRef(String,Ref)"); } /** @@ -113,7 +113,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateBlob(int columnIndex, java.sql.Blob x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateBlob(int,Blob)"); } /** @@ -130,7 +130,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateBlob(String columnName, java.sql.Blob x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateBlob(String,Blob)"); } /** @@ -147,7 +147,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateClob(int columnIndex, java.sql.Clob x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateClob(int,Clob)"); } /** @@ -164,7 +164,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateClob(String columnName, java.sql.Clob x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateClob(String,Clob)"); } /** @@ -181,7 +181,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateArray(int columnIndex, java.sql.Array x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateArray(int,Array)"); } /** @@ -198,7 +198,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra */ public void updateArray(String columnName, java.sql.Array x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "updateArray(String,Array)"); } } diff --git a/org/postgresql/jdbc3/AbstractJdbc3Statement.java b/org/postgresql/jdbc3/AbstractJdbc3Statement.java index ecbad08..1cfbf20 100644 --- a/org/postgresql/jdbc3/AbstractJdbc3Statement.java +++ b/org/postgresql/jdbc3/AbstractJdbc3Statement.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java,v 1.15 2005/01/11 08:25:46 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java,v 1.16 2005/02/01 07:27:54 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -348,7 +348,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setURL(int parameterIndex, java.net.URL x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setURL(int,URL)"); } /** @@ -403,7 +403,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void registerOutParameter(String parameterName, int sqlType) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "registerOutParameter(String,int)"); } /** @@ -430,7 +430,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "registerOutParameter(String,int,int)"); } /** @@ -470,7 +470,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void registerOutParameter (String parameterName, int sqlType, String typeName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "registerOutParameter(String,int,String)"); } /** @@ -489,7 +489,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public java.net.URL getURL(int parameterIndex) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(String)"); } /** @@ -506,7 +506,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setURL(String parameterName, java.net.URL val) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setURL(String,URL)"); } /** @@ -521,7 +521,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setNull(String parameterName, int sqlType) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setNull(String,int)"); } /** @@ -537,7 +537,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setBoolean(String parameterName, boolean x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBoolean(String,boolean)"); } /** @@ -553,7 +553,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setByte(String parameterName, byte x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setByte(String,byte)"); } /** @@ -569,7 +569,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setShort(String parameterName, short x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setShort(String,short)"); } /** @@ -585,7 +585,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setInt(String parameterName, int x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setInt(String,int)"); } /** @@ -601,7 +601,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setLong(String parameterName, long x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setLong(String,long)"); } /** @@ -617,7 +617,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setFloat(String parameterName, float x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setFloat(String,float)"); } /** @@ -633,7 +633,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setDouble(String parameterName, double x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setDouble(String,double)"); } /** @@ -650,7 +650,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBigDecimal(String,BigDecimal)"); } /** @@ -669,7 +669,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setString(String parameterName, String x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setString(String,String)"); } /** @@ -687,7 +687,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setBytes(String parameterName, byte x[]) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBytes(String,byte)"); } /** @@ -704,7 +704,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setDate(String parameterName, java.sql.Date x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setDate(String,Date)"); } /** @@ -721,7 +721,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setTime(String parameterName, java.sql.Time x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setTime(String,Time)"); } /** @@ -739,7 +739,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setTimestamp(String parameterName, java.sql.Timestamp x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setTimestamp(String,Timestamp)"); } /** @@ -764,7 +764,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setAsciiStream(String parameterName, java.io.InputStream x, int length) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setAsciiStream(String,InputStream,int)"); } /** @@ -788,7 +788,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setBinaryStream(String parameterName, java.io.InputStream x, int length) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setBinaryStream(String,InputStream,int)"); } /** @@ -826,7 +826,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setObject(String,Object,int,int)"); } /** @@ -845,7 +845,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setObject(String,Object,int)"); } /** @@ -882,7 +882,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public void setObject(String parameterName, Object x) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setObject(String,Object)"); } @@ -910,7 +910,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra java.io.Reader reader, int length) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setCharacterStream(String,Reader,int)"); } /** @@ -934,7 +934,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setDate(String parameterName, java.sql.Date x, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setDate(String,Date,Calendar)"); } /** @@ -958,7 +958,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setTime(String parameterName, java.sql.Time x, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setTime(String,Time,Calendar)"); } /** @@ -982,7 +982,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setTimestamp(String,Timestamp,Calendar)"); } /** @@ -1017,7 +1017,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public void setNull (String parameterName, int sqlType, String typeName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "setNull(String,int,String)"); } /** @@ -1039,7 +1039,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public String getString(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getString(String)"); } /** @@ -1054,7 +1054,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public boolean getBoolean(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getBoolean(String)"); } /** @@ -1069,7 +1069,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public byte getByte(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getByte(String)"); } /** @@ -1084,7 +1084,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public short getShort(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getShort(String)"); } /** @@ -1100,7 +1100,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public int getInt(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getInt(String)"); } /** @@ -1116,7 +1116,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public long getLong(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getLong(String)"); } /** @@ -1131,7 +1131,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public float getFloat(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getFloat(String)"); } /** @@ -1146,7 +1146,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public double getDouble(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getDouble(String)"); } /** @@ -1162,7 +1162,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public byte[] getBytes(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getBytes(String)"); } /** @@ -1177,7 +1177,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public java.sql.Date getDate(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getDate(String)"); } /** @@ -1192,7 +1192,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public java.sql.Time getTime(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getTime(String)"); } /** @@ -1207,7 +1207,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public java.sql.Timestamp getTimestamp(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getTimestamp(String)"); } /** @@ -1229,7 +1229,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Object getObject(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getObject(String)"); } /** @@ -1245,7 +1245,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public BigDecimal getBigDecimal(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getBigDecimal(String)"); } /** @@ -1267,7 +1267,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Object getObjectImpl (String parameterName, java.util.Map map) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getObject(String,Map)"); } /** @@ -1283,7 +1283,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Ref getRef (String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getRef(String)"); } /** @@ -1299,7 +1299,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Blob getBlob (String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getBlob(String)"); } /** @@ -1314,7 +1314,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Clob getClob (String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getClob(String)"); } /** @@ -1330,7 +1330,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public Array getArray (String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getArray(String)"); } /** @@ -1355,7 +1355,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public java.sql.Date getDate(String parameterName, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getDate(String,Calendar)"); } /** @@ -1380,7 +1380,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public java.sql.Time getTime(String parameterName, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getTime(String,Calendar)"); } /** @@ -1406,7 +1406,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra public java.sql.Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getTimestamp(String,Calendar)"); } /** @@ -1424,7 +1424,7 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra */ public java.net.URL getURL(String parameterName) throws SQLException { - throw org.postgresql.Driver.notImplemented(); + throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(String)"); } public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

