
leap.lang.jdbc.CallableStatementProxy Maven / Gradle / Ivy
The newest version!
/*
*
* * Copyright 2016 the original author or authors.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License.
*
*/
package leap.lang.jdbc;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.*;
import java.util.Calendar;
import java.util.Map;
public class CallableStatementProxy extends PreparedStatementProxy implements CallableStatement {
protected final CallableStatement cs;
public CallableStatementProxy(T connection, CallableStatement stmt, String sql) {
this(connection, stmt, sql, false);
}
public CallableStatementProxy(T connection, CallableStatement stmt, String sql, boolean stackTrace) {
super(connection, stmt, sql, stackTrace);
this.cs = stmt;
}
@Override
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException {
cs.registerOutParameter(parameterIndex, sqlType);
}
@Override
public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException {
cs.registerOutParameter(parameterIndex, sqlType, scale);
}
@Override
public boolean wasNull() throws SQLException {
return cs.wasNull();
}
@Override
public String getString(int parameterIndex) throws SQLException {
return cs.getString(parameterIndex);
}
@Override
public boolean getBoolean(int parameterIndex) throws SQLException {
return cs.getBoolean(parameterIndex);
}
@Override
public byte getByte(int parameterIndex) throws SQLException {
return cs.getByte(parameterIndex);
}
@Override
public short getShort(int parameterIndex) throws SQLException {
return cs.getShort(parameterIndex);
}
@Override
public int getInt(int parameterIndex) throws SQLException {
return cs.getInt(parameterIndex);
}
@Override
public long getLong(int parameterIndex) throws SQLException {
return cs.getLong(parameterIndex);
}
@Override
public float getFloat(int parameterIndex) throws SQLException {
return cs.getFloat(parameterIndex);
}
@Override
public double getDouble(int parameterIndex) throws SQLException {
return cs.getDouble(parameterIndex);
}
@Override
@Deprecated
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {
return cs.getBigDecimal(parameterIndex, scale);
}
@Override
public byte[] getBytes(int parameterIndex) throws SQLException {
return cs.getBytes(parameterIndex);
}
@Override
public Date getDate(int parameterIndex) throws SQLException {
return cs.getDate(parameterIndex);
}
@Override
public Time getTime(int parameterIndex) throws SQLException {
return cs.getTime(parameterIndex);
}
@Override
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
return cs.getTimestamp(parameterIndex);
}
@Override
public Object getObject(int parameterIndex) throws SQLException {
return cs.getObject(parameterIndex);
}
@Override
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
return cs.getBigDecimal(parameterIndex);
}
@Override
public Object getObject(int parameterIndex, Map> map) throws SQLException {
return cs.getObject(parameterIndex, map);
}
@Override
public Ref getRef(int parameterIndex) throws SQLException {
return cs.getRef(parameterIndex);
}
@Override
public Blob getBlob(int parameterIndex) throws SQLException {
return cs.getBlob(parameterIndex);
}
@Override
public Clob getClob(int parameterIndex) throws SQLException {
return cs.getClob(parameterIndex);
}
@Override
public Array getArray(int parameterIndex) throws SQLException {
return cs.getArray(parameterIndex);
}
@Override
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
return cs.getDate(parameterIndex, cal);
}
@Override
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
return cs.getTime(parameterIndex, cal);
}
@Override
public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException {
return cs.getTimestamp(parameterIndex, cal);
}
@Override
public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLException {
cs.registerOutParameter(parameterIndex, sqlType, typeName);
}
@Override
public void registerOutParameter(String parameterName, int sqlType) throws SQLException {
cs.registerOutParameter(parameterName, sqlType);
}
@Override
public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException {
cs.registerOutParameter(parameterName, sqlType, scale);
}
@Override
public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException {
cs.registerOutParameter(parameterName, sqlType, typeName);
}
@Override
public URL getURL(int parameterIndex) throws SQLException {
return cs.getURL(parameterIndex);
}
@Override
public void setURL(String parameterName, URL val) throws SQLException {
cs.setURL(parameterName, val);
}
@Override
public void setNull(String parameterName, int sqlType) throws SQLException {
cs.setNull(parameterName, sqlType);
}
@Override
public void setBoolean(String parameterName, boolean x) throws SQLException {
cs.setBoolean(parameterName, x);
}
@Override
public void setByte(String parameterName, byte x) throws SQLException {
cs.setByte(parameterName, x);
}
@Override
public void setShort(String parameterName, short x) throws SQLException {
cs.setShort(parameterName, x);
}
@Override
public void setInt(String parameterName, int x) throws SQLException {
cs.setInt(parameterName, x);
}
@Override
public void setLong(String parameterName, long x) throws SQLException {
cs.setLong(parameterName, x);
}
@Override
public void setFloat(String parameterName, float x) throws SQLException {
cs.setFloat(parameterName, x);
}
@Override
public void setDouble(String parameterName, double x) throws SQLException {
cs.setDouble(parameterName, x);
}
@Override
public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {
cs.setBigDecimal(parameterName, x);
}
@Override
public void setString(String parameterName, String x) throws SQLException {
cs.setString(parameterName, x);
}
@Override
public void setBytes(String parameterName, byte[] x) throws SQLException {
cs.setBytes(parameterName, x);
}
@Override
public void setDate(String parameterName, Date x) throws SQLException {
cs.setDate(parameterName, x);
}
@Override
public void setTime(String parameterName, Time x) throws SQLException {
cs.setTime(parameterName, x);
}
@Override
public void setTimestamp(String parameterName, Timestamp x) throws SQLException {
cs.setTimestamp(parameterName, x);
}
@Override
public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException {
cs.setAsciiStream(parameterName, x, length);
}
@Override
public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException {
cs.setBinaryStream(parameterName, x, length);
}
@Override
public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException {
cs.setObject(parameterName, x, targetSqlType, scale);
}
@Override
public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {
cs.setObject(parameterName, x, targetSqlType);
}
@Override
public void setObject(String parameterName, Object x) throws SQLException {
cs.setObject(parameterName, x);
}
@Override
public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException {
cs.setCharacterStream(parameterName, reader, length);
}
@Override
public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {
cs.setDate(parameterName, x, cal);
}
@Override
public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {
cs.setTime(parameterName, x, cal);
}
@Override
public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {
cs.setTimestamp(parameterName, x, cal);
}
@Override
public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {
cs.setNull(parameterName, sqlType, typeName);
}
@Override
public String getString(String parameterName) throws SQLException {
return cs.getString(parameterName);
}
@Override
public boolean getBoolean(String parameterName) throws SQLException {
return cs.getBoolean(parameterName);
}
@Override
public byte getByte(String parameterName) throws SQLException {
return cs.getByte(parameterName);
}
@Override
public short getShort(String parameterName) throws SQLException {
return cs.getShort(parameterName);
}
@Override
public int getInt(String parameterName) throws SQLException {
return cs.getInt(parameterName);
}
@Override
public long getLong(String parameterName) throws SQLException {
return cs.getLong(parameterName);
}
@Override
public float getFloat(String parameterName) throws SQLException {
return cs.getFloat(parameterName);
}
@Override
public double getDouble(String parameterName) throws SQLException {
return cs.getDouble(parameterName);
}
@Override
public byte[] getBytes(String parameterName) throws SQLException {
return cs.getBytes(parameterName);
}
@Override
public Date getDate(String parameterName) throws SQLException {
return cs.getDate(parameterName);
}
@Override
public Time getTime(String parameterName) throws SQLException {
return cs.getTime(parameterName);
}
@Override
public Timestamp getTimestamp(String parameterName) throws SQLException {
return cs.getTimestamp(parameterName);
}
@Override
public Object getObject(String parameterName) throws SQLException {
return cs.getObject(parameterName);
}
@Override
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
return cs.getBigDecimal(parameterName);
}
@Override
public Object getObject(String parameterName, Map> map) throws SQLException {
return cs.getObject(parameterName, map);
}
@Override
public Ref getRef(String parameterName) throws SQLException {
return cs.getRef(parameterName);
}
@Override
public Blob getBlob(String parameterName) throws SQLException {
return cs.getBlob(parameterName);
}
@Override
public Clob getClob(String parameterName) throws SQLException {
return cs.getClob(parameterName);
}
@Override
public Array getArray(String parameterName) throws SQLException {
return cs.getArray(parameterName);
}
@Override
public Date getDate(String parameterName, Calendar cal) throws SQLException {
return cs.getDate(parameterName, cal);
}
@Override
public Time getTime(String parameterName, Calendar cal) throws SQLException {
return cs.getTime(parameterName, cal);
}
@Override
public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException {
return cs.getTimestamp(parameterName, cal);
}
@Override
public URL getURL(String parameterName) throws SQLException {
return cs.getURL(parameterName);
}
@Override
public RowId getRowId(int parameterIndex) throws SQLException {
return cs.getRowId(parameterIndex);
}
@Override
public RowId getRowId(String parameterName) throws SQLException {
return cs.getRowId(parameterName);
}
@Override
public void setRowId(String parameterName, RowId x) throws SQLException {
cs.setRowId(parameterName, x);
}
@Override
public void setNString(String parameterName, String value) throws SQLException {
cs.setNString(parameterName, value);
}
@Override
public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {
cs.setNCharacterStream(parameterName, value, length);
}
@Override
public void setNClob(String parameterName, NClob value) throws SQLException {
cs.setNClob(parameterName, value);
}
@Override
public void setClob(String parameterName, Reader reader, long length) throws SQLException {
cs.setClob(parameterName, reader, length);
}
@Override
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {
cs.setBlob(parameterName, inputStream, length);
}
@Override
public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
cs.setNClob(parameterName, reader, length);
}
@Override
public NClob getNClob(int parameterIndex) throws SQLException {
return cs.getNClob(parameterIndex);
}
@Override
public NClob getNClob(String parameterName) throws SQLException {
return cs.getNClob(parameterName);
}
@Override
public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
cs.setSQLXML(parameterName, xmlObject);
}
@Override
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
return cs.getSQLXML(parameterIndex);
}
@Override
public SQLXML getSQLXML(String parameterName) throws SQLException {
return cs.getSQLXML(parameterName);
}
@Override
public String getNString(int parameterIndex) throws SQLException {
return cs.getNString(parameterIndex);
}
@Override
public String getNString(String parameterName) throws SQLException {
return cs.getNString(parameterName);
}
@Override
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
return cs.getNCharacterStream(parameterIndex);
}
@Override
public Reader getNCharacterStream(String parameterName) throws SQLException {
return cs.getNCharacterStream(parameterName);
}
@Override
public Reader getCharacterStream(int parameterIndex) throws SQLException {
return cs.getCharacterStream(parameterIndex);
}
@Override
public Reader getCharacterStream(String parameterName) throws SQLException {
return cs.getCharacterStream(parameterName);
}
@Override
public void setBlob(String parameterName, Blob x) throws SQLException {
cs.setBlob(parameterName, x);
}
@Override
public void setClob(String parameterName, Clob x) throws SQLException {
cs.setClob(parameterName, x);
}
@Override
public void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException {
cs.setAsciiStream(parameterName, x, length);
}
@Override
public void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException {
cs.setBinaryStream(parameterName, x, length);
}
@Override
public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {
cs.setCharacterStream(parameterName, reader, length);
}
@Override
public void setAsciiStream(String parameterName, InputStream x) throws SQLException {
cs.setAsciiStream(parameterName, x);
}
@Override
public void setBinaryStream(String parameterName, InputStream x) throws SQLException {
cs.setBinaryStream(parameterName, x);
}
@Override
public void setCharacterStream(String parameterName, Reader reader) throws SQLException {
cs.setCharacterStream(parameterName, reader);
}
@Override
public void setNCharacterStream(String parameterName, Reader value) throws SQLException {
cs.setNCharacterStream(parameterName, value);
}
@Override
public void setClob(String parameterName, Reader reader) throws SQLException {
cs.setClob(parameterName, reader);
}
@Override
public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
cs.setBlob(parameterName, inputStream);
}
@Override
public void setNClob(String parameterName, Reader reader) throws SQLException {
cs.setNClob(parameterName, reader);
}
@Override
public T getObject(int parameterIndex, Class type) throws SQLException {
return cs.getObject(parameterIndex, type);
}
@Override
public T getObject(String parameterName, Class type) throws SQLException {
return cs.getObject(parameterName, type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy