Migrate to Java 7
org.openrewrite.java.migrate.UpgradeToJava7
This recipe will apply changes commonly needed when upgrading to Java 7. This recipe will also replace deprecated API with equivalents when there is a clear migration strategy.
Tags
- java7
Recipe source
GitHub, Issue Tracker, Maven Central
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
This recipe is available under the Moderne Source Available License.
Definition
- Recipe List
- Yaml Recipe List
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.UpgradeToJava7
displayName: Migrate to Java 7
description: |
This recipe will apply changes commonly needed when upgrading to Java 7. This recipe will also replace deprecated API with equivalents when there is a clear migration strategy.
tags:
- java7
recipeList:
- org.openrewrite.java.migrate.UpgradeToJava6
- org.openrewrite.java.migrate.JREJdbcInterfaceNewMethods
- org.openrewrite.java.migrate.JREThrowableFinalMethods
- org.openrewrite.java.migrate.util.ReplaceMathRandomWithThreadLocalRandomRecipe
Examples
Example 1
- java
- Diff
Before
package com.test.withoutV170Methods;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.CallableStatement;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public class JRE7JdbcCallableStatement implements CallableStatement {
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
}
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false;
}
public void addBatch(String sql) throws SQLException {
}
public void cancel() throws SQLException {
}
public void clearBatch() throws SQLException {
}
public void clearWarnings() throws SQLException {
}
public void close() throws SQLException {
}
public boolean execute(String sql) throws SQLException {
return false;
}
public boolean execute(String sql, int autoGeneratedKeys)
throws SQLException {
return false;
}
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
return false;
}
public boolean execute(String sql, String[] columnNames)
throws SQLException {
return false;
}
public int[] executeBatch() throws SQLException {
return null;
}
public ResultSet executeQuery(String sql) throws SQLException {
return null;
}
public int executeUpdate(String sql) throws SQLException {
return 0;
}
public int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, int[] columnIndexes)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, String[] columnNames)
throws SQLException {
return 0;
}
public Connection getConnection() throws SQLException {
return null;
}
public int getFetchDirection() throws SQLException {
return 0;
}
public int getFetchSize() throws SQLException {
return 0;
}
public ResultSet getGeneratedKeys() throws SQLException {
return null;
}
public int getMaxFieldSize() throws SQLException {
return 0;
}
public int getMaxRows() throws SQLException {
return 0;
}
public boolean getMoreResults() throws SQLException {
return false;
}
public boolean getMoreResults(int current) throws SQLException {
return false;
}
public int getQueryTimeout() throws SQLException {
return 0;
}
public ResultSet getResultSet() throws SQLException {
return null;
}
public int getResultSetConcurrency() throws SQLException {
return 0;
}
public int getResultSetHoldability() throws SQLException {
return 0;
}
public int getResultSetType() throws SQLException {
return 0;
}
public int getUpdateCount() throws SQLException {
return 0;
}
public SQLWarning getWarnings() throws SQLException {
return null;
}
public void setCursorName(String name) throws SQLException {
}
public void setEscapeProcessing(boolean enable) throws SQLException {
}
public void setFetchDirection(int direction) throws SQLException {
}
public void setFetchSize(int rows) throws SQLException {
}
public void setMaxFieldSize(int max) throws SQLException {
}
public void setMaxRows(int max) throws SQLException {
}
public void setQueryTimeout(int seconds) throws SQLException {
}
public boolean isClosed() throws SQLException {
return false;
}
public void setPoolable(boolean poolable) throws SQLException {
}
public boolean isPoolable() throws SQLException {
return false;
}
public void addBatch() throws SQLException {
// TODO Auto-generated method stub
}
public void clearParameters() throws SQLException {
// TODO Auto-generated method stub
}
public boolean execute() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public ResultSet executeQuery() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public int executeUpdate() throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public ResultSetMetaData getMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public ParameterMetaData getParameterMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void setArray(int arg0, Array arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, Blob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(int arg0, boolean arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(int arg0, byte arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(int arg0, byte[] arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Clob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(int arg0, double arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(int arg0, float arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(int arg0, long arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, NClob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1, String arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2, int arg3)
throws SQLException {
// TODO Auto-generated method stub
}
public void setRef(int arg0, Ref arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(int arg0, RowId arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(int arg0, short arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(int arg0, URL arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setUnicodeStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public Array getArray(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Array getArray(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public boolean getBoolean(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public boolean getBoolean(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public byte getByte(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte getByte(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte[] getBytes(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public byte[] getBytes(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public double getDouble(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public double getDouble(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getNCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public short getShort(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public short getShort(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public String getString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void registerOutParameter(int parameterIndex, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(String parameterName, BigDecimal x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, Blob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(String parameterName, boolean x) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(String parameterName, byte x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(String parameterName, byte[] x) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
int length) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Clob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(String parameterName, double x) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(String parameterName, float x) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(String parameterName, int x) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(String parameterName, long x) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, NClob value) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(String parameterName, String value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType, String typeName)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(String parameterName, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(String parameterName, SQLXML xmlObject)
throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(String parameterName, short x) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(String parameterName, String x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(String parameterName, URL val) throws SQLException {
// TODO Auto-generated method stub
}
public boolean wasNull() throws SQLException {
// TODO Auto-generated method stub
return false;
}
}
After
package com.test.withoutV170Methods;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.CallableStatement;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public class JRE7JdbcCallableStatement implements CallableStatement {
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
}
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false;
}
public void addBatch(String sql) throws SQLException {
}
public void cancel() throws SQLException {
}
public void clearBatch() throws SQLException {
}
public void clearWarnings() throws SQLException {
}
public void close() throws SQLException {
}
public boolean execute(String sql) throws SQLException {
return false;
}
public boolean execute(String sql, int autoGeneratedKeys)
throws SQLException {
return false;
}
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
return false;
}
public boolean execute(String sql, String[] columnNames)
throws SQLException {
return false;
}
public int[] executeBatch() throws SQLException {
return null;
}
public ResultSet executeQuery(String sql) throws SQLException {
return null;
}
public int executeUpdate(String sql) throws SQLException {
return 0;
}
public int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, int[] columnIndexes)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, String[] columnNames)
throws SQLException {
return 0;
}
public Connection getConnection() throws SQLException {
return null;
}
public int getFetchDirection() throws SQLException {
return 0;
}
public int getFetchSize() throws SQLException {
return 0;
}
public ResultSet getGeneratedKeys() throws SQLException {
return null;
}
public int getMaxFieldSize() throws SQLException {
return 0;
}
public int getMaxRows() throws SQLException {
return 0;
}
public boolean getMoreResults() throws SQLException {
return false;
}
public boolean getMoreResults(int current) throws SQLException {
return false;
}
public int getQueryTimeout() throws SQLException {
return 0;
}
public ResultSet getResultSet() throws SQLException {
return null;
}
public int getResultSetConcurrency() throws SQLException {
return 0;
}
public int getResultSetHoldability() throws SQLException {
return 0;
}
public int getResultSetType() throws SQLException {
return 0;
}
public int getUpdateCount() throws SQLException {
return 0;
}
public SQLWarning getWarnings() throws SQLException {
return null;
}
public void setCursorName(String name) throws SQLException {
}
public void setEscapeProcessing(boolean enable) throws SQLException {
}
public void setFetchDirection(int direction) throws SQLException {
}
public void setFetchSize(int rows) throws SQLException {
}
public void setMaxFieldSize(int max) throws SQLException {
}
public void setMaxRows(int max) throws SQLException {
}
public void setQueryTimeout(int seconds) throws SQLException {
}
public boolean isClosed() throws SQLException {
return false;
}
public void setPoolable(boolean poolable) throws SQLException {
}
public boolean isPoolable() throws SQLException {
return false;
}
public void addBatch() throws SQLException {
// TODO Auto-generated method stub
}
public void clearParameters() throws SQLException {
// TODO Auto-generated method stub
}
public boolean execute() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public ResultSet executeQuery() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public int executeUpdate() throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public ResultSetMetaData getMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public ParameterMetaData getParameterMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void setArray(int arg0, Array arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, Blob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(int arg0, boolean arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(int arg0, byte arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(int arg0, byte[] arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Clob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(int arg0, double arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(int arg0, float arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(int arg0, long arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, NClob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1, String arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2, int arg3)
throws SQLException {
// TODO Auto-generated method stub
}
public void setRef(int arg0, Ref arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(int arg0, RowId arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(int arg0, short arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(int arg0, URL arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setUnicodeStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public Array getArray(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Array getArray(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public boolean getBoolean(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public boolean getBoolean(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public byte getByte(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte getByte(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte[] getBytes(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public byte[] getBytes(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public double getDouble(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public double getDouble(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getNCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public short getShort(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public short getShort(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public String getString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void registerOutParameter(int parameterIndex, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(String parameterName, BigDecimal x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, Blob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(String parameterName, boolean x) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(String parameterName, byte x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(String parameterName, byte[] x) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
int length) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Clob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(String parameterName, double x) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(String parameterName, float x) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(String parameterName, int x) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(String parameterName, long x) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, NClob value) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(String parameterName, String value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType, String typeName)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(String parameterName, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(String parameterName, SQLXML xmlObject)
throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(String parameterName, short x) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(String parameterName, String x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(String parameterName, URL val) throws SQLException {
// TODO Auto-generated method stub
}
public boolean wasNull() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public void closeOnCompletion() {
// TODO Auto-generated method stub
}
public boolean isCloseOnCompletion() {
// TODO Auto-generated method stub
return false;
}
}
@@ -985,0 +985,9 @@
}
+ public void closeOnCompletion() {
+ // TODO Auto-generated method stub
+ }
+
+ public boolean isCloseOnCompletion() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
}
Example 2
- java
- Diff
Before
package com.test.withoutV170Methods;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.CallableStatement;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public class JRE7JdbcCallableStatement implements CallableStatement {
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
}
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false;
}
public void addBatch(String sql) throws SQLException {
}
public void cancel() throws SQLException {
}
public void clearBatch() throws SQLException {
}
public void clearWarnings() throws SQLException {
}
public void close() throws SQLException {
}
public boolean execute(String sql) throws SQLException {
return false;
}
public boolean execute(String sql, int autoGeneratedKeys)
throws SQLException {
return false;
}
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
return false;
}
public boolean execute(String sql, String[] columnNames)
throws SQLException {
return false;
}
public int[] executeBatch() throws SQLException {
return null;
}
public ResultSet executeQuery(String sql) throws SQLException {
return null;
}
public int executeUpdate(String sql) throws SQLException {
return 0;
}
public int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, int[] columnIndexes)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, String[] columnNames)
throws SQLException {
return 0;
}
public Connection getConnection() throws SQLException {
return null;
}
public int getFetchDirection() throws SQLException {
return 0;
}
public int getFetchSize() throws SQLException {
return 0;
}
public ResultSet getGeneratedKeys() throws SQLException {
return null;
}
public int getMaxFieldSize() throws SQLException {
return 0;
}
public int getMaxRows() throws SQLException {
return 0;
}
public boolean getMoreResults() throws SQLException {
return false;
}
public boolean getMoreResults(int current) throws SQLException {
return false;
}
public int getQueryTimeout() throws SQLException {
return 0;
}
public ResultSet getResultSet() throws SQLException {
return null;
}
public int getResultSetConcurrency() throws SQLException {
return 0;
}
public int getResultSetHoldability() throws SQLException {
return 0;
}
public int getResultSetType() throws SQLException {
return 0;
}
public int getUpdateCount() throws SQLException {
return 0;
}
public SQLWarning getWarnings() throws SQLException {
return null;
}
public void setCursorName(String name) throws SQLException {
}
public void setEscapeProcessing(boolean enable) throws SQLException {
}
public void setFetchDirection(int direction) throws SQLException {
}
public void setFetchSize(int rows) throws SQLException {
}
public void setMaxFieldSize(int max) throws SQLException {
}
public void setMaxRows(int max) throws SQLException {
}
public void setQueryTimeout(int seconds) throws SQLException {
}
public boolean isClosed() throws SQLException {
return false;
}
public void setPoolable(boolean poolable) throws SQLException {
}
public boolean isPoolable() throws SQLException {
return false;
}
public void addBatch() throws SQLException {
// TODO Auto-generated method stub
}
public void clearParameters() throws SQLException {
// TODO Auto-generated method stub
}
public boolean execute() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public ResultSet executeQuery() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public int executeUpdate() throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public ResultSetMetaData getMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public ParameterMetaData getParameterMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void setArray(int arg0, Array arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, Blob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(int arg0, boolean arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(int arg0, byte arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(int arg0, byte[] arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Clob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(int arg0, double arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(int arg0, float arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(int arg0, long arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, NClob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1, String arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2, int arg3)
throws SQLException {
// TODO Auto-generated method stub
}
public void setRef(int arg0, Ref arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(int arg0, RowId arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(int arg0, short arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(int arg0, URL arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setUnicodeStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public Array getArray(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Array getArray(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public boolean getBoolean(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public boolean getBoolean(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public byte getByte(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte getByte(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte[] getBytes(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public byte[] getBytes(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public double getDouble(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public double getDouble(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getNCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public short getShort(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public short getShort(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public String getString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void registerOutParameter(int parameterIndex, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(String parameterName, BigDecimal x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, Blob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(String parameterName, boolean x) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(String parameterName, byte x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(String parameterName, byte[] x) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
int length) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Clob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(String parameterName, double x) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(String parameterName, float x) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(String parameterName, int x) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(String parameterName, long x) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, NClob value) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(String parameterName, String value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType, String typeName)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(String parameterName, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(String parameterName, SQLXML xmlObject)
throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(String parameterName, short x) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(String parameterName, String x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(String parameterName, URL val) throws SQLException {
// TODO Auto-generated method stub
}
public boolean wasNull() throws SQLException {
// TODO Auto-generated method stub
return false;
}
}
After
package com.test.withoutV170Methods;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.CallableStatement;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public class JRE7JdbcCallableStatement implements CallableStatement {
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
}
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false;
}
public void addBatch(String sql) throws SQLException {
}
public void cancel() throws SQLException {
}
public void clearBatch() throws SQLException {
}
public void clearWarnings() throws SQLException {
}
public void close() throws SQLException {
}
public boolean execute(String sql) throws SQLException {
return false;
}
public boolean execute(String sql, int autoGeneratedKeys)
throws SQLException {
return false;
}
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
return false;
}
public boolean execute(String sql, String[] columnNames)
throws SQLException {
return false;
}
public int[] executeBatch() throws SQLException {
return null;
}
public ResultSet executeQuery(String sql) throws SQLException {
return null;
}
public int executeUpdate(String sql) throws SQLException {
return 0;
}
public int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, int[] columnIndexes)
throws SQLException {
return 0;
}
public int executeUpdate(String sql, String[] columnNames)
throws SQLException {
return 0;
}
public Connection getConnection() throws SQLException {
return null;
}
public int getFetchDirection() throws SQLException {
return 0;
}
public int getFetchSize() throws SQLException {
return 0;
}
public ResultSet getGeneratedKeys() throws SQLException {
return null;
}
public int getMaxFieldSize() throws SQLException {
return 0;
}
public int getMaxRows() throws SQLException {
return 0;
}
public boolean getMoreResults() throws SQLException {
return false;
}
public boolean getMoreResults(int current) throws SQLException {
return false;
}
public int getQueryTimeout() throws SQLException {
return 0;
}
public ResultSet getResultSet() throws SQLException {
return null;
}
public int getResultSetConcurrency() throws SQLException {
return 0;
}
public int getResultSetHoldability() throws SQLException {
return 0;
}
public int getResultSetType() throws SQLException {
return 0;
}
public int getUpdateCount() throws SQLException {
return 0;
}
public SQLWarning getWarnings() throws SQLException {
return null;
}
public void setCursorName(String name) throws SQLException {
}
public void setEscapeProcessing(boolean enable) throws SQLException {
}
public void setFetchDirection(int direction) throws SQLException {
}
public void setFetchSize(int rows) throws SQLException {
}
public void setMaxFieldSize(int max) throws SQLException {
}
public void setMaxRows(int max) throws SQLException {
}
public void setQueryTimeout(int seconds) throws SQLException {
}
public boolean isClosed() throws SQLException {
return false;
}
public void setPoolable(boolean poolable) throws SQLException {
}
public boolean isPoolable() throws SQLException {
return false;
}
public void addBatch() throws SQLException {
// TODO Auto-generated method stub
}
public void clearParameters() throws SQLException {
// TODO Auto-generated method stub
}
public boolean execute() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public ResultSet executeQuery() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public int executeUpdate() throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public ResultSetMetaData getMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public ParameterMetaData getParameterMetaData() throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void setArray(int arg0, Array arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, Blob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(int arg0, InputStream arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(int arg0, boolean arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(int arg0, byte arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(int arg0, byte[] arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Clob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(int arg0, double arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(int arg0, float arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(int arg0, long arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(int arg0, Reader arg1, long arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, NClob arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(int arg0, int arg1, String arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(int arg0, Object arg1, int arg2, int arg3)
throws SQLException {
// TODO Auto-generated method stub
}
public void setRef(int arg0, Ref arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(int arg0, RowId arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(int arg0, short arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(int arg0, String arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(int arg0, URL arg1) throws SQLException {
// TODO Auto-generated method stub
}
public void setUnicodeStream(int arg0, InputStream arg1, int arg2)
throws SQLException {
// TODO Auto-generated method stub
}
public Array getArray(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Array getArray(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Blob getBlob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public boolean getBoolean(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public boolean getBoolean(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return false;
}
public byte getByte(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte getByte(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public byte[] getBytes(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public byte[] getBytes(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Clob getClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Date getDate(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public double getDouble(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public double getDouble(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public float getFloat(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public int getInt(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public long getLong(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Reader getNCharacterStream(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public NClob getNClob(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getNString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(int parameterIndex, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Object getObject(String parameterName, Map<String, Class<?>> map)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Ref getRef(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public RowId getRowId(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public SQLXML getSQLXML(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public short getShort(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public short getShort(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public String getString(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public String getString(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Time getTime(String parameterName, Calendar cal) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(int parameterIndex, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public Timestamp getTimestamp(String parameterName, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public URL getURL(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
public void registerOutParameter(int parameterIndex, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(int parameterIndex, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void registerOutParameter(String parameterName, int sqlType,
String typeName) throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setAsciiStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBigDecimal(String parameterName, BigDecimal x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBinaryStream(String parameterName, InputStream x, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, Blob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream)
throws SQLException {
// TODO Auto-generated method stub
}
public void setBlob(String parameterName, InputStream inputStream,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setBoolean(String parameterName, boolean x) throws SQLException {
// TODO Auto-generated method stub
}
public void setByte(String parameterName, byte x) throws SQLException {
// TODO Auto-generated method stub
}
public void setBytes(String parameterName, byte[] x) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
int length) throws SQLException {
// TODO Auto-generated method stub
}
public void setCharacterStream(String parameterName, Reader reader,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Clob x) throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x) throws SQLException {
// TODO Auto-generated method stub
}
public void setDate(String parameterName, Date x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setDouble(String parameterName, double x) throws SQLException {
// TODO Auto-generated method stub
}
public void setFloat(String parameterName, float x) throws SQLException {
// TODO Auto-generated method stub
}
public void setInt(String parameterName, int x) throws SQLException {
// TODO Auto-generated method stub
}
public void setLong(String parameterName, long x) throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNCharacterStream(String parameterName, Reader value,
long length) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, NClob value) throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNClob(String parameterName, Reader reader, long length)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNString(String parameterName, String value)
throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType) throws SQLException {
// TODO Auto-generated method stub
}
public void setNull(String parameterName, int sqlType, String typeName)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x) throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException {
// TODO Auto-generated method stub
}
public void setObject(String parameterName, Object x, int targetSqlType,
int scale) throws SQLException {
// TODO Auto-generated method stub
}
public void setRowId(String parameterName, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
public void setSQLXML(String parameterName, SQLXML xmlObject)
throws SQLException {
// TODO Auto-generated method stub
}
public void setShort(String parameterName, short x) throws SQLException {
// TODO Auto-generated method stub
}
public void setString(String parameterName, String x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x) throws SQLException {
// TODO Auto-generated method stub
}
public void setTime(String parameterName, Time x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x)
throws SQLException {
// TODO Auto-generated method stub
}
public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
throws SQLException {
// TODO Auto-generated method stub
}
public void setURL(String parameterName, URL val) throws SQLException {
// TODO Auto-generated method stub
}
public boolean wasNull() throws SQLException {
// TODO Auto-generated method stub
return false;
}
public void closeOnCompletion() {
// TODO Auto-generated method stub
}
public boolean isCloseOnCompletion() {
// TODO Auto-generated method stub
return false;
}
}
@@ -985,0 +985,9 @@
}
+ public void closeOnCompletion() {
+ // TODO Auto-generated method stub
+ }
+
+ public boolean isCloseOnCompletion() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
}
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-migrate-java
in your build file or by running a shell command (in which case no build changes are needed):
- Gradle
- Gradle init script
- Maven POM
- Maven Command Line
- Moderne CLI
- Add the following to your
build.gradle
file:
plugins {
id("org.openrewrite.rewrite") version("7.6.1")
}
rewrite {
activeRecipe("org.openrewrite.java.migrate.UpgradeToJava7")
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.9.0")
}
- Run
gradle rewriteRun
to run the recipe.
- Create a file named
init.gradle
in the root of your project.
initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:7.6.1") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.9.0")
}
rewrite {
activeRecipe("org.openrewrite.java.migrate.UpgradeToJava7")
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
repositories {
mavenCentral()
}
}
}
}
- Run the recipe.
gradle --init-script init.gradle rewriteRun
- Add the following to your
pom.xml
file:
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>6.8.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.java.migrate.UpgradeToJava7</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-migrate-java</artifactId>
<version>3.9.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
- Run
mvn rewrite:run
to run the recipe.
You will need to have Maven installed on your machine before you can run the following command.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava7 -Drewrite.exportDatatables=true
You will need to have configured the Moderne CLI on your machine before you can run the following command.
mod run . --recipe UpgradeToJava7
If the recipe is not available locally, then you can install it using:
mod config recipes jar install org.openrewrite.recipe:rewrite-migrate-java:3.9.0
See how this recipe works across multiple open-source repositories
Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.
Data Tables
- SourcesFileResults
- SourcesFileErrors
- RecipeRunStats
- MavenMetadataFailures
Source files that had results
org.openrewrite.table.SourcesFileResults
Source files that were modified by the recipe run.
Column Name | Description |
---|---|
Source path before the run | The source path of the file before the run. null when a source file was created during the run. |
Source path after the run | A recipe may modify the source path. This is the path after the run. null when a source file was deleted during the run. |
Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
Recipe that made changes | The specific recipe that made a change. |
Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
Cycle | The recipe cycle in which the change was made. |
Source files that errored on a recipe
org.openrewrite.table.SourcesFileErrors
The details of all errors produced by a recipe run.
Column Name | Description |
---|---|
Source path | The file that failed to parse. |
Recipe that made changes | The specific recipe that made a change. |
Stack trace | The stack trace of the failure. |
Recipe performance
org.openrewrite.table.RecipeRunStats
Statistics used in analyzing the performance of recipes.
Column Name | Description |
---|---|
The recipe | The recipe whose stats are being measured both individually and cumulatively. |
Source file count | The number of source files the recipe ran over. |
Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
99th percentile scanning time (ns) | 99 out of 100 scans completed in this amount of time. |
Max scanning time (ns) | The max time scanning any one source file. |
Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
99th percentile edit time (ns) | 99 out of 100 edits completed in this amount of time. |
Max edit time (ns) | The max time editing any one source file. |
Maven metadata failures
org.openrewrite.maven.table.MavenMetadataFailures
Attempts to resolve maven metadata that failed.
Column Name | Description |
---|---|
Group id | The groupId of the artifact for which the metadata download failed. |
Artifact id | The artifactId of the artifact for which the metadata download failed. |
Version | The version of the artifact for which the metadata download failed. |
Maven repository | The URL of the Maven repository that the metadata download failed on. |
Snapshots | Does the repository support snapshots. |
Releases | Does the repository support releases. |
Failure | The reason the metadata download failed. |
Contributors
Chuka Obinabo, Anu Ramamoorthy, Daryl Robbins, Knut Wannheden, Sam Snyder, Jonathan Schnéider, Tim te Beek, Tim te Beek