提交 2c6aa619 authored 作者: Thomas Mueller's avatar Thomas Mueller

Source code switching using //## has been simplified.

上级 8c616222
...@@ -17,11 +17,11 @@ import java.sql.Clob; ...@@ -17,11 +17,11 @@ import java.sql.Clob;
import java.sql.Date; import java.sql.Date;
import java.sql.Ref; import java.sql.Ref;
import java.sql.ResultSetMetaData; import java.sql.ResultSetMetaData;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.NClob; import java.sql.NClob;
import java.sql.SQLXML; import java.sql.SQLXML;
import java.sql.RowId; import java.sql.RowId;
//## Java 1.6 end ## //*/
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Time; import java.sql.Time;
import java.sql.Timestamp; import java.sql.Timestamp;
...@@ -724,22 +724,22 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -724,22 +724,22 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* *
* @param parameterIndex the parameter index (1, 2, ...) * @param parameterIndex the parameter index (1, 2, ...)
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public RowId getRowId(int parameterIndex) throws SQLException { public RowId getRowId(int parameterIndex) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a row id. * [Not supported] Returns the value of the specified column as a row id.
* *
* @param parameterName the parameter name * @param parameterName the parameter name
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public RowId getRowId(String parameterName) throws SQLException { public RowId getRowId(String parameterName) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a Clob. * Returns the value of the specified column as a Clob.
...@@ -748,12 +748,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -748,12 +748,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value * @return the value
* @throws SQLException if the column is not found or if the result set is closed * @throws SQLException if the column is not found or if the result set is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public NClob getNClob(int parameterIndex) throws SQLException { public NClob getNClob(int parameterIndex) throws SQLException {
checkRegistered(parameterIndex); checkRegistered(parameterIndex);
return getOpenResultSet().getNClob(parameterIndex); return getOpenResultSet().getNClob(parameterIndex);
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a Clob. * Returns the value of the specified column as a Clob.
...@@ -762,29 +762,29 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -762,29 +762,29 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value * @return the value
* @throws SQLException if the column is not found or if the result set is closed * @throws SQLException if the column is not found or if the result set is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public NClob getNClob(String parameterName) throws SQLException { public NClob getNClob(String parameterName) throws SQLException {
return getNClob(getIndexForName(parameterName)); return getNClob(getIndexForName(parameterName));
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a SQLXML object. * [Not supported] Returns the value of the specified column as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public SQLXML getSQLXML(int parameterIndex) throws SQLException { public SQLXML getSQLXML(int parameterIndex) throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a SQLXML object. * [Not supported] Returns the value of the specified column as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public SQLXML getSQLXML(String parameterName) throws SQLException { public SQLXML getSQLXML(String parameterName) throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a String. * Returns the value of the specified column as a String.
...@@ -794,12 +794,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -794,12 +794,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public String getNString(int parameterIndex) throws SQLException { public String getNString(int parameterIndex) throws SQLException {
checkRegistered(parameterIndex); checkRegistered(parameterIndex);
return getOpenResultSet().getNString(parameterIndex); return getOpenResultSet().getNString(parameterIndex);
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a String. * Returns the value of the specified column as a String.
...@@ -809,11 +809,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -809,11 +809,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public String getNString(String parameterName) throws SQLException { public String getNString(String parameterName) throws SQLException {
return getNString(getIndexForName(parameterName)); return getNString(getIndexForName(parameterName));
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -823,13 +823,13 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -823,13 +823,13 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getNCharacterStream(int parameterIndex) public Reader getNCharacterStream(int parameterIndex)
throws SQLException { throws SQLException {
checkRegistered(parameterIndex); checkRegistered(parameterIndex);
return getOpenResultSet().getNCharacterStream(parameterIndex); return getOpenResultSet().getNCharacterStream(parameterIndex);
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -839,12 +839,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -839,12 +839,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getNCharacterStream(String parameterName) public Reader getNCharacterStream(String parameterName)
throws SQLException { throws SQLException {
return getNCharacterStream(getIndexForName(parameterName)); return getNCharacterStream(getIndexForName(parameterName));
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -854,13 +854,13 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -854,13 +854,13 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getCharacterStream(int parameterIndex) public Reader getCharacterStream(int parameterIndex)
throws SQLException { throws SQLException {
checkRegistered(parameterIndex); checkRegistered(parameterIndex);
return getOpenResultSet().getCharacterStream(parameterIndex); return getOpenResultSet().getCharacterStream(parameterIndex);
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -870,12 +870,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -870,12 +870,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getCharacterStream(String parameterName) public Reader getCharacterStream(String parameterName)
throws SQLException { throws SQLException {
return getCharacterStream(getIndexForName(parameterName)); return getCharacterStream(getIndexForName(parameterName));
} }
//## Java 1.6 end ## //*/
// ============================================================= // =============================================================
...@@ -1178,12 +1178,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1178,12 +1178,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
/** /**
* [Not supported] Sets the value of a parameter as a row id. * [Not supported] Sets the value of a parameter as a row id.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setRowId(String parameterName, RowId x) public void setRowId(String parameterName, RowId x)
throws SQLException { throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter. * Sets the value of a parameter.
...@@ -1192,12 +1192,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1192,12 +1192,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNString(String parameterName, String x) public void setNString(String parameterName, String x)
throws SQLException { throws SQLException {
setNString(getIndexForName(parameterName), x); setNString(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1209,12 +1209,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1209,12 +1209,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNCharacterStream(String parameterName, public void setNCharacterStream(String parameterName,
Reader x, long length) throws SQLException { Reader x, long length) throws SQLException {
setNCharacterStream(getIndexForName(parameterName), x, length); setNCharacterStream(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1223,12 +1223,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1223,12 +1223,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(String parameterName, NClob x) public void setNClob(String parameterName, NClob x)
throws SQLException { throws SQLException {
setNClob(getIndexForName(parameterName), x); setNClob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1240,12 +1240,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1240,12 +1240,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setClob(String parameterName, Reader x, public void setClob(String parameterName, Reader x,
long length) throws SQLException { long length) throws SQLException {
setClob(getIndexForName(parameterName), x, length); setClob(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Blob. * Sets the value of a parameter as a Blob.
...@@ -1257,12 +1257,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1257,12 +1257,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of bytes * @param length the maximum number of bytes
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setBlob(String parameterName, InputStream x, public void setBlob(String parameterName, InputStream x,
long length) throws SQLException { long length) throws SQLException {
setBlob(getIndexForName(parameterName), x, length); setBlob(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1274,12 +1274,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1274,12 +1274,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(String parameterName, Reader x, public void setNClob(String parameterName, Reader x,
long length) throws SQLException { long length) throws SQLException {
setNClob(getIndexForName(parameterName), x, length); setNClob(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Blob. * Sets the value of a parameter as a Blob.
...@@ -1288,12 +1288,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1288,12 +1288,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setBlob(String parameterName, Blob x) public void setBlob(String parameterName, Blob x)
throws SQLException { throws SQLException {
setBlob(getIndexForName(parameterName), x); setBlob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1302,11 +1302,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1302,11 +1302,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setClob(String parameterName, Clob x) throws SQLException { public void setClob(String parameterName, Clob x) throws SQLException {
setClob(getIndexForName(parameterName), x); setClob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as an ASCII stream. * Sets the value of a parameter as an ASCII stream.
...@@ -1317,12 +1317,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1317,12 +1317,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setAsciiStream(String parameterName, InputStream x) public void setAsciiStream(String parameterName, InputStream x)
throws SQLException { throws SQLException {
setAsciiStream(getIndexForName(parameterName), x); setAsciiStream(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as an ASCII stream. * Sets the value of a parameter as an ASCII stream.
...@@ -1348,12 +1348,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1348,12 +1348,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setBinaryStream(String parameterName, public void setBinaryStream(String parameterName,
InputStream x) throws SQLException { InputStream x) throws SQLException {
setBinaryStream(getIndexForName(parameterName), x); setBinaryStream(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as an input stream. * Sets the value of a parameter as an input stream.
...@@ -1365,12 +1365,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1365,12 +1365,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of bytes * @param length the maximum number of bytes
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setBinaryStream(String parameterName, public void setBinaryStream(String parameterName,
InputStream x, long length) throws SQLException { InputStream x, long length) throws SQLException {
setBinaryStream(getIndexForName(parameterName), x, length); setBinaryStream(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Blob. * Sets the value of a parameter as a Blob.
...@@ -1381,12 +1381,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1381,12 +1381,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setBlob(String parameterName, InputStream x) public void setBlob(String parameterName, InputStream x)
throws SQLException { throws SQLException {
setBlob(getIndexForName(parameterName), x); setBlob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1397,12 +1397,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1397,12 +1397,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setCharacterStream(String parameterName, Reader x) public void setCharacterStream(String parameterName, Reader x)
throws SQLException { throws SQLException {
setCharacterStream(getIndexForName(parameterName), x); setCharacterStream(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1414,12 +1414,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1414,12 +1414,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setCharacterStream(String parameterName, public void setCharacterStream(String parameterName,
Reader x, long length) throws SQLException { Reader x, long length) throws SQLException {
setCharacterStream(getIndexForName(parameterName), x, length); setCharacterStream(getIndexForName(parameterName), x, length);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1430,11 +1430,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1430,11 +1430,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setClob(String parameterName, Reader x) throws SQLException { public void setClob(String parameterName, Reader x) throws SQLException {
setClob(getIndexForName(parameterName), x); setClob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1445,12 +1445,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1445,12 +1445,12 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNCharacterStream(String parameterName, Reader x) public void setNCharacterStream(String parameterName, Reader x)
throws SQLException { throws SQLException {
setNCharacterStream(getIndexForName(parameterName), x); setNCharacterStream(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1461,22 +1461,22 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1461,22 +1461,22 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(String parameterName, Reader x) public void setNClob(String parameterName, Reader x)
throws SQLException { throws SQLException {
setNClob(getIndexForName(parameterName), x); setNClob(getIndexForName(parameterName), x);
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Sets the value of a parameter as a SQLXML object. * [Not supported] Sets the value of a parameter as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setSQLXML(String parameterName, SQLXML x) public void setSQLXML(String parameterName, SQLXML x)
throws SQLException { throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
...@@ -1484,11 +1484,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1484,11 +1484,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param parameterIndex the parameter index (1, 2, ...) * @param parameterIndex the parameter index (1, 2, ...)
* @param type the class of the returned value * @param type the class of the returned value
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public <T> T getObject(int parameterIndex, Class<T> type) { public <T> T getObject(int parameterIndex, Class<T> type) {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
...@@ -1496,11 +1496,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call ...@@ -1496,11 +1496,11 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param parameterName the parameter name * @param parameterName the parameter name
* @param type the class of the returned value * @param type the class of the returned value
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public <T> T getObject(String parameterName, Class<T> type) { public <T> T getObject(String parameterName, Class<T> type) {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
private ResultSetMetaData getCheckedMetaData() throws SQLException { private ResultSetMetaData getCheckedMetaData() throws SQLException {
ResultSetMetaData meta = getMetaData(); ResultSetMetaData meta = getMetaData();
......
...@@ -16,9 +16,9 @@ import java.io.StringReader; ...@@ -16,9 +16,9 @@ import java.io.StringReader;
import java.io.StringWriter; import java.io.StringWriter;
import java.io.Writer; import java.io.Writer;
import java.sql.Clob; import java.sql.Clob;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.NClob; import java.sql.NClob;
//## Java 1.6 end ## //*/
import java.sql.SQLException; import java.sql.SQLException;
import org.h2.constant.ErrorCode; import org.h2.constant.ErrorCode;
import org.h2.engine.Constants; import org.h2.engine.Constants;
...@@ -32,9 +32,9 @@ import org.h2.value.Value; ...@@ -32,9 +32,9 @@ import org.h2.value.Value;
* Represents a CLOB value. * Represents a CLOB value.
*/ */
public class JdbcClob extends TraceObject implements Clob public class JdbcClob extends TraceObject implements Clob
//## Java 1.6 begin ## //## Java 1.6 ##
, NClob , NClob
//## Java 1.6 end ## //*/
{ {
Value value; Value value;
...@@ -256,11 +256,11 @@ public class JdbcClob extends TraceObject implements Clob ...@@ -256,11 +256,11 @@ public class JdbcClob extends TraceObject implements Clob
/** /**
* [Not supported] Returns the reader, starting from an offset. * [Not supported] Returns the reader, starting from an offset.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getCharacterStream(long pos, long length) throws SQLException { public Reader getCharacterStream(long pos, long length) throws SQLException {
throw unsupported("LOB subset"); throw unsupported("LOB subset");
} }
//## Java 1.6 end ## //*/
private void checkClosed() { private void checkClosed() {
conn.checkClosed(); conn.checkClosed();
......
...@@ -42,17 +42,17 @@ import org.h2.value.ValueInt; ...@@ -42,17 +42,17 @@ import org.h2.value.ValueInt;
import org.h2.value.ValueNull; import org.h2.value.ValueNull;
import org.h2.value.ValueString; import org.h2.value.ValueString;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.Array; import java.sql.Array;
import java.sql.NClob; import java.sql.NClob;
import java.sql.Struct; import java.sql.Struct;
import java.sql.SQLXML; import java.sql.SQLXML;
import java.sql.SQLClientInfoException; import java.sql.SQLClientInfoException;
//## Java 1.6 end ## //*/
/*## Java 1.7 begin ## /*## Java 1.7 ##
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
## Java 1.7 end ##*/ //*/
/** /**
* <p> * <p>
...@@ -1509,7 +1509,7 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1509,7 +1509,7 @@ public class JdbcConnection extends TraceObject implements Connection {
* *
* @return the object * @return the object
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public NClob createNClob() throws SQLException { public NClob createNClob() throws SQLException {
try { try {
int id = getNextId(TraceObject.CLOB); int id = getNextId(TraceObject.CLOB);
...@@ -1527,36 +1527,36 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1527,36 +1527,36 @@ public class JdbcConnection extends TraceObject implements Connection {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Create a new empty SQLXML object. * [Not supported] Create a new empty SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public SQLXML createSQLXML() throws SQLException { public SQLXML createSQLXML() throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Create a new empty Array object. * [Not supported] Create a new empty Array object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Array createArrayOf(String typeName, Object[] elements) public Array createArrayOf(String typeName, Object[] elements)
throws SQLException { throws SQLException {
throw unsupported("createArray"); throw unsupported("createArray");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Create a new empty Struct object. * [Not supported] Create a new empty Struct object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Struct createStruct(String typeName, Object[] attributes) public Struct createStruct(String typeName, Object[] attributes)
throws SQLException { throws SQLException {
throw unsupported("Struct"); throw unsupported("Struct");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns true if this connection is still valid. * Returns true if this connection is still valid.
...@@ -1584,61 +1584,61 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1584,61 +1584,61 @@ public class JdbcConnection extends TraceObject implements Connection {
/** /**
* [Not supported] Set a client property. * [Not supported] Set a client property.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setClientInfo(String name, String value) public void setClientInfo(String name, String value)
throws SQLClientInfoException { throws SQLClientInfoException {
throw new SQLClientInfoException(); throw new SQLClientInfoException();
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Set the client properties. * [Not supported] Set the client properties.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setClientInfo(Properties properties) throws SQLClientInfoException { public void setClientInfo(Properties properties) throws SQLClientInfoException {
throw new SQLClientInfoException(); throw new SQLClientInfoException();
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Get the client properties. * [Not supported] Get the client properties.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Properties getClientInfo() throws SQLClientInfoException { public Properties getClientInfo() throws SQLClientInfoException {
throw new SQLClientInfoException(); throw new SQLClientInfoException();
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Set a client property. * [Not supported] Set a client property.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public String getClientInfo(String name) throws SQLException { public String getClientInfo(String name) throws SQLException {
throw unsupported("clientInfo"); throw unsupported("clientInfo");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
* *
* @param iface the class * @param iface the class
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
* *
* @param iface the class * @param iface the class
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* Create a Clob value from this reader. * Create a Clob value from this reader.
...@@ -1683,31 +1683,31 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1683,31 +1683,31 @@ public class JdbcConnection extends TraceObject implements Connection {
* *
* @param schema the schema * @param schema the schema
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public void setSchema(String schema) { public void setSchema(String schema) {
// not supported // not supported
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public String getSchema() { public String getSchema() {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
* *
* @param executor the executor used by this method * @param executor the executor used by this method
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public void abort(Executor executor) { public void abort(Executor executor) {
// not supported // not supported
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
...@@ -1715,20 +1715,20 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1715,20 +1715,20 @@ public class JdbcConnection extends TraceObject implements Connection {
* @param executor the executor used by this method * @param executor the executor used by this method
* @param milliseconds the TCP connection timeout * @param milliseconds the TCP connection timeout
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public void setNetworkTimeout(Executor executor, int milliseconds) { public void setNetworkTimeout(Executor executor, int milliseconds) {
// not supported // not supported
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public int getNetworkTimeout() { public int getNetworkTimeout() {
return 0; return 0;
} }
## Java 1.7 end ##*/ //*/
private static void checkMap(Map<String, Class<?>> map) { private static void checkMap(Map<String, Class<?>> map) {
if (map != null && map.size() > 0) { if (map != null && map.size() > 0) {
......
...@@ -10,9 +10,9 @@ import java.sql.Connection; ...@@ -10,9 +10,9 @@ import java.sql.Connection;
import java.sql.DatabaseMetaData; import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.RowIdLifetime; import java.sql.RowIdLifetime;
//## Java 1.6 end ## //*/
import java.sql.SQLException; import java.sql.SQLException;
import org.h2.constant.SysProperties; import org.h2.constant.SysProperties;
...@@ -2692,9 +2692,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat ...@@ -2692,9 +2692,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
public int getJDBCMajorVersion() { public int getJDBCMajorVersion() {
debugCodeCall("getJDBCMajorVersion"); debugCodeCall("getJDBCMajorVersion");
int majorVersion = 3; int majorVersion = 3;
//## Java 1.6 begin ## //## Java 1.6 ##
majorVersion = 4; majorVersion = 4;
//## Java 1.6 end ## //*/
return majorVersion; return majorVersion;
} }
...@@ -2762,22 +2762,22 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat ...@@ -2762,22 +2762,22 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* *
* @return ROWID_UNSUPPORTED * @return ROWID_UNSUPPORTED
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public RowIdLifetime getRowIdLifetime() { public RowIdLifetime getRowIdLifetime() {
debugCodeCall("getRowIdLifetime"); debugCodeCall("getRowIdLifetime");
return RowIdLifetime.ROWID_UNSUPPORTED; return RowIdLifetime.ROWID_UNSUPPORTED;
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Gets the list of schemas. * [Not supported] Gets the list of schemas.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public ResultSet getSchemas(String catalog, String schemaPattern) public ResultSet getSchemas(String catalog, String schemaPattern)
throws SQLException { throws SQLException {
throw unsupported("getSchemas(., .)"); throw unsupported("getSchemas(., .)");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns whether the database supports calling functions using the call syntax. * Returns whether the database supports calling functions using the call syntax.
...@@ -2809,50 +2809,50 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat ...@@ -2809,50 +2809,50 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Gets the list of function columns. * [Not supported] Gets the list of function columns.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public ResultSet getFunctionColumns(String catalog, String schemaPattern, public ResultSet getFunctionColumns(String catalog, String schemaPattern,
String functionNamePattern, String columnNamePattern) String functionNamePattern, String columnNamePattern)
throws SQLException { throws SQLException {
throw unsupported("getFunctionColumns"); throw unsupported("getFunctionColumns");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Gets the list of functions. * [Not supported] Gets the list of functions.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public ResultSet getFunctions(String catalog, String schemaPattern, public ResultSet getFunctions(String catalog, String schemaPattern,
String functionNamePattern) throws SQLException { String functionNamePattern) throws SQLException {
throw unsupported("getFunctions"); throw unsupported("getFunctions");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public boolean generatedKeyAlwaysReturned() { public boolean generatedKeyAlwaysReturned() {
return true; return true;
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
...@@ -2865,12 +2865,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat ...@@ -2865,12 +2865,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* @param columnNamePattern null (to get all objects) or a column name * @param columnNamePattern null (to get all objects) or a column name
* (uppercase for unquoted names) * (uppercase for unquoted names)
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public ResultSet getPseudoColumns(String catalog, String schemaPattern, public ResultSet getPseudoColumns(String catalog, String schemaPattern,
String tableNamePattern, String columnNamePattern) { String tableNamePattern, String columnNamePattern) {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
/** /**
* INTERNAL * INTERNAL
......
...@@ -211,20 +211,20 @@ public class JdbcParameterMetaData extends TraceObject implements ParameterMetaD ...@@ -211,20 +211,20 @@ public class JdbcParameterMetaData extends TraceObject implements ParameterMetaD
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* INTERNAL * INTERNAL
......
...@@ -48,11 +48,11 @@ import org.h2.value.ValueString; ...@@ -48,11 +48,11 @@ import org.h2.value.ValueString;
import org.h2.value.ValueTime; import org.h2.value.ValueTime;
import org.h2.value.ValueTimestamp; import org.h2.value.ValueTimestamp;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.RowId; import java.sql.RowId;
import java.sql.NClob; import java.sql.NClob;
import java.sql.SQLXML; import java.sql.SQLXML;
//## Java 1.6 end ## //*/
/** /**
* Represents a prepared statement. * Represents a prepared statement.
...@@ -1277,11 +1277,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1277,11 +1277,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/** /**
* [Not supported] Sets the value of a parameter as a row id. * [Not supported] Sets the value of a parameter as a row id.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setRowId(int parameterIndex, RowId x) throws SQLException { public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter. * Sets the value of a parameter.
...@@ -1290,7 +1290,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1290,7 +1290,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNString(int parameterIndex, String x) throws SQLException { public void setNString(int parameterIndex, String x) throws SQLException {
try { try {
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -1302,7 +1302,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1302,7 +1302,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1314,7 +1314,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1314,7 +1314,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNCharacterStream(int parameterIndex, Reader x, long length) public void setNCharacterStream(int parameterIndex, Reader x, long length)
throws SQLException { throws SQLException {
try { try {
...@@ -1333,7 +1333,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1333,7 +1333,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a character stream. * Sets the value of a parameter as a character stream.
...@@ -1344,12 +1344,12 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1344,12 +1344,12 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNCharacterStream(int parameterIndex, Reader x) public void setNCharacterStream(int parameterIndex, Reader x)
throws SQLException { throws SQLException {
setNCharacterStream(parameterIndex, x, -1); setNCharacterStream(parameterIndex, x, -1);
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1358,7 +1358,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1358,7 +1358,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(int parameterIndex, NClob x) throws SQLException { public void setNClob(int parameterIndex, NClob x) throws SQLException {
try { try {
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -1376,7 +1376,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1376,7 +1376,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1387,7 +1387,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1387,7 +1387,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value * @param x the value
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(int parameterIndex, Reader x) throws SQLException { public void setNClob(int parameterIndex, Reader x) throws SQLException {
try { try {
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -1404,7 +1404,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1404,7 +1404,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Sets the value of a parameter as a Clob. * Sets the value of a parameter as a Clob.
...@@ -1470,7 +1470,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1470,7 +1470,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param length the maximum number of characters * @param length the maximum number of characters
* @throws SQLException if this object is closed * @throws SQLException if this object is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setNClob(int parameterIndex, Reader x, long length) public void setNClob(int parameterIndex, Reader x, long length)
throws SQLException { throws SQLException {
try { try {
...@@ -1492,11 +1492,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat ...@@ -1492,11 +1492,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/** /**
* [Not supported] Sets the value of a parameter as a SQLXML object. * [Not supported] Sets the value of a parameter as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void setSQLXML(int parameterIndex, SQLXML x) throws SQLException { public void setSQLXML(int parameterIndex, SQLXML x) throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* INTERNAL * INTERNAL
......
...@@ -26,11 +26,11 @@ import java.util.Calendar; ...@@ -26,11 +26,11 @@ import java.util.Calendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
//## Java 1.6 begin ## //## Java 1.6 ##
import java.sql.NClob; import java.sql.NClob;
import java.sql.RowId; import java.sql.RowId;
import java.sql.SQLXML; import java.sql.SQLXML;
//## Java 1.6 end ## //*/
import org.h2.constant.ErrorCode; import org.h2.constant.ErrorCode;
import org.h2.constant.SysProperties; import org.h2.constant.SysProperties;
...@@ -2998,22 +2998,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -2998,22 +2998,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* *
* @param columnIndex (1,2,...) * @param columnIndex (1,2,...)
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public RowId getRowId(int columnIndex) throws SQLException { public RowId getRowId(int columnIndex) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a row id. * [Not supported] Returns the value of the specified column as a row id.
* *
* @param columnLabel the column label * @param columnLabel the column label
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public RowId getRowId(String columnLabel) throws SQLException { public RowId getRowId(String columnLabel) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Updates a column in the current or insert row. * [Not supported] Updates a column in the current or insert row.
...@@ -3021,11 +3021,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3021,11 +3021,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnIndex (1,2,...) * @param columnIndex (1,2,...)
* @param x the value * @param x the value
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateRowId(int columnIndex, RowId x) throws SQLException { public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Updates a column in the current or insert row. * [Not supported] Updates a column in the current or insert row.
...@@ -3033,11 +3033,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3033,11 +3033,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnLabel the column label * @param columnLabel the column label
* @param x the value * @param x the value
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateRowId(String columnLabel, RowId x) throws SQLException { public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw unsupported("rowId"); throw unsupported("rowId");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the current result set holdability. * Returns the current result set holdability.
...@@ -3076,7 +3076,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3076,7 +3076,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param x the value * @param x the value
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNString(int columnIndex, String x) throws SQLException { public void updateNString(int columnIndex, String x) throws SQLException {
try { try {
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -3088,7 +3088,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3088,7 +3088,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Updates a column in the current or insert row. * Updates a column in the current or insert row.
...@@ -3097,7 +3097,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3097,7 +3097,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param x the value * @param x the value
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNString(String columnLabel, String x) throws SQLException { public void updateNString(String columnLabel, String x) throws SQLException {
try { try {
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -3109,64 +3109,64 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3109,64 +3109,64 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(int columnIndex, NClob x) throws SQLException { public void updateNClob(int columnIndex, NClob x) throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x) throws SQLException { public void updateNClob(int columnIndex, Reader x) throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x, long length) public void updateNClob(int columnIndex, Reader x, long length)
throws SQLException { throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x) public void updateNClob(String columnLabel, Reader x)
throws SQLException { throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x, long length) public void updateNClob(String columnLabel, Reader x, long length)
throws SQLException { throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNClob(String columnLabel, NClob x) throws SQLException { public void updateNClob(String columnLabel, NClob x) throws SQLException {
throw unsupported("NClob"); throw unsupported("NClob");
} }
//## Java 1.6 end ## //*/
/** /**
...@@ -3176,7 +3176,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3176,7 +3176,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value * @return the value
* @throws SQLException if the column is not found or if the result set is closed * @throws SQLException if the column is not found or if the result set is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public NClob getNClob(int columnIndex) throws SQLException { public NClob getNClob(int columnIndex) throws SQLException {
try { try {
int id = getNextId(TraceObject.CLOB); int id = getNextId(TraceObject.CLOB);
...@@ -3187,7 +3187,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3187,7 +3187,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a Clob. * Returns the value of the specified column as a Clob.
...@@ -3196,7 +3196,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3196,7 +3196,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value * @return the value
* @throws SQLException if the column is not found or if the result set is closed * @throws SQLException if the column is not found or if the result set is closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public NClob getNClob(String columnLabel) throws SQLException { public NClob getNClob(String columnLabel) throws SQLException {
try { try {
int id = getNextId(TraceObject.CLOB); int id = getNextId(TraceObject.CLOB);
...@@ -3207,45 +3207,45 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3207,45 +3207,45 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a SQLXML object. * [Not supported] Returns the value of the specified column as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public SQLXML getSQLXML(int columnIndex) throws SQLException { public SQLXML getSQLXML(int columnIndex) throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Returns the value of the specified column as a SQLXML object. * [Not supported] Returns the value of the specified column as a SQLXML object.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public SQLXML getSQLXML(String columnLabel) throws SQLException { public SQLXML getSQLXML(String columnLabel) throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Updates a column in the current or insert row. * [Not supported] Updates a column in the current or insert row.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateSQLXML(int columnIndex, SQLXML xmlObject) public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException { throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Updates a column in the current or insert row. * [Not supported] Updates a column in the current or insert row.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateSQLXML(String columnLabel, SQLXML xmlObject) public void updateSQLXML(String columnLabel, SQLXML xmlObject)
throws SQLException { throws SQLException {
throw unsupported("SQLXML"); throw unsupported("SQLXML");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a String. * Returns the value of the specified column as a String.
...@@ -3255,7 +3255,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3255,7 +3255,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public String getNString(int columnIndex) throws SQLException { public String getNString(int columnIndex) throws SQLException {
try { try {
debugCodeCall("getNString", columnIndex); debugCodeCall("getNString", columnIndex);
...@@ -3264,7 +3264,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3264,7 +3264,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a String. * Returns the value of the specified column as a String.
...@@ -3274,7 +3274,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3274,7 +3274,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public String getNString(String columnLabel) throws SQLException { public String getNString(String columnLabel) throws SQLException {
try { try {
debugCodeCall("getNString", columnLabel); debugCodeCall("getNString", columnLabel);
...@@ -3283,7 +3283,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3283,7 +3283,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -3293,7 +3293,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3293,7 +3293,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getNCharacterStream(int columnIndex) throws SQLException { public Reader getNCharacterStream(int columnIndex) throws SQLException {
try { try {
debugCodeCall("getNCharacterStream", columnIndex); debugCodeCall("getNCharacterStream", columnIndex);
...@@ -3302,7 +3302,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3302,7 +3302,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Returns the value of the specified column as a reader. * Returns the value of the specified column as a reader.
...@@ -3312,7 +3312,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3312,7 +3312,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is * @throws SQLException if the column is not found or if the result set is
* closed * closed
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public Reader getNCharacterStream(String columnLabel) throws SQLException { public Reader getNCharacterStream(String columnLabel) throws SQLException {
try { try {
debugCodeCall("getNCharacterStream", columnLabel); debugCodeCall("getNCharacterStream", columnLabel);
...@@ -3321,7 +3321,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3321,7 +3321,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Updates a column in the current or insert row. * Updates a column in the current or insert row.
...@@ -3330,12 +3330,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3330,12 +3330,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param x the value * @param x the value
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x) public void updateNCharacterStream(int columnIndex, Reader x)
throws SQLException { throws SQLException {
updateNCharacterStream(columnIndex, x, -1); updateNCharacterStream(columnIndex, x, -1);
} }
//## Java 1.6 end ## //*/
/** /**
* Updates a column in the current or insert row. * Updates a column in the current or insert row.
...@@ -3345,7 +3345,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3345,7 +3345,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param length the number of characters * @param length the number of characters
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x, long length) public void updateNCharacterStream(int columnIndex, Reader x, long length)
throws SQLException { throws SQLException {
try { try {
...@@ -3359,7 +3359,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3359,7 +3359,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* Updates a column in the current or insert row. * Updates a column in the current or insert row.
...@@ -3368,12 +3368,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3368,12 +3368,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param x the value * @param x the value
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x) public void updateNCharacterStream(String columnLabel, Reader x)
throws SQLException { throws SQLException {
updateNCharacterStream(columnLabel, x, -1); updateNCharacterStream(columnLabel, x, -1);
} }
//## Java 1.6 end ## //*/
/** /**
* Updates a column in the current or insert row. * Updates a column in the current or insert row.
...@@ -3383,7 +3383,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3383,7 +3383,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param length the number of characters * @param length the number of characters
* @throws SQLException if the result set is closed or not updatable * @throws SQLException if the result set is closed or not updatable
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x, long length) public void updateNCharacterStream(String columnLabel, Reader x, long length)
throws SQLException { throws SQLException {
try { try {
...@@ -3397,25 +3397,25 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3397,25 +3397,25 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e); throw logAndConvert(e);
} }
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] * [Not supported]
...@@ -3423,11 +3423,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3423,11 +3423,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnIndex the column index (1, 2, ...) * @param columnIndex the column index (1, 2, ...)
* @param type the class of the returned value * @param type the class of the returned value
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public <T> T getObject(int columnIndex, Class<T> type) { public <T> T getObject(int columnIndex, Class<T> type) {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
...@@ -3435,11 +3435,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3435,11 +3435,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnName the column name * @param columnName the column name
* @param type the class of the returned value * @param type the class of the returned value
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public <T> T getObject(String columnName, Class<T> type) { public <T> T getObject(String columnName, Class<T> type) {
return null; return null;
} }
## Java 1.7 end ##*/ //*/
/** /**
* INTERNAL * INTERNAL
......
...@@ -432,20 +432,20 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD ...@@ -432,20 +432,20 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* INTERNAL * INTERNAL
......
...@@ -870,20 +870,20 @@ public class JdbcStatement extends TraceObject implements Statement { ...@@ -870,20 +870,20 @@ public class JdbcStatement extends TraceObject implements Statement {
/** /**
* [Not supported] * [Not supported]
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public void closeOnCompletion() { public void closeOnCompletion() {
// not supported // not supported
} }
## Java 1.7 end ##*/ //*/
/** /**
* [Not supported] * [Not supported]
*/ */
/*## Java 1.7 begin ## /*## Java 1.7 ##
public boolean isCloseOnCompletion() { public boolean isCloseOnCompletion() {
return true; return true;
} }
## Java 1.7 end ##*/ //*/
// ============================================================= // =============================================================
...@@ -998,20 +998,20 @@ public class JdbcStatement extends TraceObject implements Statement { ...@@ -998,20 +998,20 @@ public class JdbcStatement extends TraceObject implements Statement {
/** /**
* [Not supported] Return an object of this class if possible. * [Not supported] Return an object of this class if possible.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap"); throw unsupported("unwrap");
} }
//## Java 1.6 end ## //*/
/** /**
* [Not supported] Checks if unwrap can return an object of this class. * [Not supported] Checks if unwrap can return an object of this class.
*/ */
//## Java 1.6 begin ## //## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException { public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor"); throw unsupported("isWrapperFor");
} }
//## Java 1.6 end ## //*/
/** /**
* Returns whether this object is poolable. * Returns whether this object is poolable.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论