/**
* Alipay.com Inc.
* Copyright (c) 2004-2012 All Rights Reserved.
*/
package com.alipay.zdal.datasource.resource.adapter.jdbc;
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.CallableStatement;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Ref;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
/**
* A cache wrapper for java.sql.CallableStatement
*
* @author ����
* @version $Id: CachedCallableStatement.java, v 0.1 2014-1-6 ����05:27:35 Exp $
*/
public class CachedCallableStatement extends CachedPreparedStatement implements CallableStatement {
private final CallableStatement cs;
/**
* @param ps
* @throws SQLException
*/
public CachedCallableStatement(CallableStatement ps) throws SQLException {
super(ps);
this.cs = ps;
}
/**
* @see java.sql.CallableStatement#wasNull()
*/
public boolean wasNull() throws SQLException {
return cs.wasNull();
}
/**
* @see java.sql.CallableStatement#getByte(int)
*/
public byte getByte(int parameterIndex) throws SQLException {
return cs.getByte(parameterIndex);
}
public double getDouble(int parameterIndex) throws SQLException {
return cs.getDouble(parameterIndex);
}
public float getFloat(int parameterIndex) throws SQLException {
return cs.getFloat(parameterIndex);
}
public int getInt(int parameterIndex) throws SQLException {
return cs.getInt(parameterIndex);
}
public long getLong(int parameterIndex) throws SQLException {
return cs.getLong(parameterIndex);
}
public short getShort(int parameterIndex) throws SQLException {
return cs.getShort(parameterIndex);
}
public boolean getBoolean(int parameterIndex) throws SQLException {
return cs.getBoolean(parameterIndex);
}
public byte[] getBytes(int parameterIndex) throws SQLException {
return cs.getBytes(parameterIndex);
}
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException {
cs.registerOutParameter(parameterIndex, sqlType);
}
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException {
cs.registerOutParameter(parameterIndex, sqlType, scale);
}
public Object getObject(int parameterIndex) throws SQLException {
return cs.getObject(parameterIndex);
}
public String getString(int parameterIndex) throws SQLException {
return cs.getString(parameterIndex);
}
public void registerOutParameter(int paramIndex, int sqlType, String typeName)
throws SQLException {
cs.registerOutParameter(paramIndex, sqlType, typeName);
}
public byte getByte(String parameterName) throws SQLException {
return cs.getByte(parameterName);
}
public double getDouble(String parameterName) throws SQLException {
return cs.getDouble(parameterName);
}
public float getFloat(String parameterName) throws SQLException {
return cs.getFloat(parameterName);
}
public int getInt(String parameterName) throws SQLException {
return cs.getInt(parameterName);
}
public long getLong(String parameterName) throws SQLException {
return cs.getLong(parameterName);
}
public short getShort(String parameterName) throws SQLException {
return cs.getShort(parameterName);
}
public boolean getBoolean(String parameterName) throws SQLException {
return cs.getBoolean(parameterName);
}
public byte[] getBytes(String parameterName) throws SQLException {
return cs.getBytes(parameterName);
}
public void setByte(String parameterName, byte x) throws SQLException {
cs.setByte(parameterName, x);
}
public void setDouble(String parameterName, double x) throws SQLException {
cs.setDouble(parameterName, x);
}
public void setFloat(String parameterName, float x) throws SQLException {
cs.setFloat(parameterName, x);
}
public void registerOutParameter(String parameterName, int sqlType) throws SQLException {
cs.registerOutParameter(parameterName, sqlType);
}
public void setInt(String parameterName, int x) throws SQLException {
cs.setInt(parameterName, x);
}
public void setNull(String parameterName, int sqlType) throws SQLException {
cs.setNull(parameterName, sqlType);
}
public void registerOutParameter(String parameterName, int sqlType, int scale)
throws SQLException {
cs.registerOutParameter(parameterName, sqlType, scale);
}
public void setLong(String parameterName, long x) throws SQLException {
cs.setLong(parameterName, x);
}
public void setShort(String parameterName, short x) throws SQLException {
cs.setShort(parameterName, x);
}
public void setBoolean(String parameterName, boolean x) throws SQLException {
cs.setBoolean(parameterName, x);
}
public void setBytes(String parameterName, byte[] x) throws SQLException {
cs.setBytes(parameterName, x);
}
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
return cs.getBigDecimal(parameterIndex);
}
/**
* @deprecated
*/
@Deprecated
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {
return cs.getBigDecimal(parameterIndex, scale);
}
public URL getURL(int parameterIndex) throws SQLException {
return cs.getURL(parameterIndex);
}
public Array getArray(int i) throws SQLException {
return cs.getArray(i);
}
public Blob getBlob(int i) throws SQLException {
return cs.getBlob(i);
}
public Clob getClob(int i) throws SQLException {
return cs.getClob(i);
}
public Date getDate(int parameterIndex) throws SQLException {
return cs.getDate(parameterIndex);
}
public Ref getRef(int i) throws SQLException {
return cs.getRef(i);
}
public Time getTime(int parameterIndex) throws SQLException {
return cs.getTime(parameterIndex);
}
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
return cs.getTimestamp(parameterIndex);
}
public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException {
cs.setAsciiStream(parameterName, x, length);
}
public void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException {
cs.setBinaryStream(parameterName, x, length);
}
public void setCharacterStream(String parameterName, Reader reader, int length)
throws SQLException {
cs.setCharacterStream(parameterName, reader, length);
}
public Object getObject(String parameterName) throws SQLException {
return cs.getObject(parameterName);
}
public void setObject(String parameterName, Object x) throws SQLException {
cs.setObject(parameterName, x);
}
public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {
cs.setObject(parameterName, x, targetSqlType);
}
public void setObject(String parameterName, Object x, int targetSqlType, int scale)
throws SQLException {
cs.setObject(parameterName, x, targetSqlType, scale);
}
public Object getObject(int i, Map<String, Class<?>> map) throws SQLException {
return cs.getObject(i, map);
}
public String getString(String parameterName) throws SQLException {
return cs.getString(parameterName);
}
public void registerOutParameter(String parameterName, int sqlType, String typeName)
throws SQLException {
cs.registerOutParameter(parameterName, sqlType, typeName);
}
public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {
cs.setNull(parameterName, sqlType, typeName);
}
public void setString(String parameterName, String x) throws SQLException {
cs.setString(parameterName, x);
}
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
return cs.getBigDecimal(parameterName);
}
public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {
cs.setBigDecimal(parameterName, x);
}
public URL getURL(String parameterName) throws SQLException {
return cs.getURL(parameterName);
}
public void setURL(String parameterName, URL val) throws SQLException {
cs.setURL(parameterName, val);
}
public Array getArray(String parameterName) throws SQLException {
return cs.getArray(parameterName);
}
public Blob getBlob(String parameterName) throws SQLException {
return cs.getBlob(parameterName);
}
public Clob getClob(String parameterName) throws SQLException {
return cs.getClob(parameterName);
}
public Date getDate(String parameterName) throws SQLException {
return cs.getDate(parameterName);
}
public void setDate(String parameterName, Date x) throws SQLException {
cs.setDate(parameterName, x);
}
public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
return cs.getDate(parameterIndex, cal);
}
public Ref getRef(String parameterName) throws SQLException {
return cs.getRef(parameterName);
}
public Time getTime(String parameterName) throws SQLException {
return cs.getTime(parameterName);
}
public void setTime(String parameterName, Time x) throws SQLException {
cs.setTime(parameterName, x);
}
public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
return cs.getTime(parameterIndex, cal);
}
public Timestamp getTimestamp(String parameterName) throws SQLException {
return cs.getTimestamp(parameterName);
}
public void setTimestamp(String parameterName, Timestamp x) throws SQLException {
cs.setTimestamp(parameterName, x);
}
public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException {
return cs.getTimestamp(parameterIndex, cal);
}
public Object getObject(String parameterName, Map<String, Class<?>> map) throws SQLException {
return cs.getObject(parameterName, map);
}
public Date getDate(String parameterName, Calendar cal) throws SQLException {
return cs.getDate(parameterName, cal);
}
public Time getTime(String parameterName, Calendar cal) throws SQLException {
return cs.getTime(parameterName, cal);
}
public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException {
return cs.getTimestamp(parameterName, cal);
}
public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {
cs.setDate(parameterName, x, cal);
}
public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {
cs.setTime(parameterName, x, cal);
}
public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {
cs.setTimestamp(parameterName, x, cal);
}
public Reader getCharacterStream(int parameterIndex) throws SQLException {
return null;
}
public Reader getCharacterStream(String parameterName) throws SQLException {
return null;
}
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
return null;
}
public Reader getNCharacterStream(String parameterName) throws SQLException {
return null;
}
public NClob getNClob(int parameterIndex) throws SQLException {
return null;
}
public NClob getNClob(String parameterName) throws SQLException {
return null;
}
public String getNString(int parameterIndex) throws SQLException {
return null;
}
public String getNString(String parameterName) throws SQLException {
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
return null;
}
public RowId getRowId(String parameterName) throws SQLException {
return null;
}
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
return null;
}
public SQLXML getSQLXML(String parameterName) throws SQLException {
return null;
}
public void setAsciiStream(String parameterName, InputStream x) throws SQLException {
}
public void setAsciiStream(String parameterName, InputStream x, long length)
throws SQLException {
}
public void setBinaryStream(String parameterName, InputStream x) throws SQLException {
}
public void setBinaryStream(String parameterName, InputStream x, long length)
throws SQLException {
}
public void setBlob(String parameterName, Blob x) throws SQLException {
}
public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
}
public void setBlob(String parameterName, InputStream inputStream, long length)
throws SQLException {
}
public void setCharacterStream(String parameterName, Reader reader) throws SQLException {
}
public void setCharacterStream(String parameterName, Reader reader, long length)
throws SQLException {
}
public void setClob(String parameterName, Clob x) throws SQLException {
}
public void setClob(String parameterName, Reader reader) throws SQLException {
}
public void setClob(String parameterName, Reader reader, long length) throws SQLException {
}
public void setNCharacterStream(String parameterName, Reader value) throws SQLException {
}
public void setNCharacterStream(String parameterName, Reader value, long length)
throws SQLException {
}
public void setNClob(String parameterName, NClob value) throws SQLException {
}
public void setNClob(String parameterName, Reader reader) throws SQLException {
}
public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
}
public void setNString(String parameterName, String value) throws SQLException {
}
public void setRowId(String parameterName, RowId x) throws SQLException {
}
public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
}
@Override
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
}
@Override
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
}
@Override
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
}
@Override
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
}
@Override
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
}
@Override
public void setBlob(int parameterIndex, InputStream inputStream, long length)
throws SQLException {
}
@Override
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
}
@Override
public void setCharacterStream(int parameterIndex, Reader reader, long length)
throws SQLException {
}
@Override
public void setClob(int parameterIndex, Reader reader) throws SQLException {
}
@Override
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
}
@Override
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
}
@Override
public void setNCharacterStream(int parameterIndex, Reader value, long length)
throws SQLException {
}
@Override
public void setNClob(int parameterIndex, NClob value) throws SQLException {
}
@Override
public void setNClob(int parameterIndex, Reader reader) throws SQLException {
}
@Override
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
}
@Override
public void setNString(int parameterIndex, String value) throws SQLException {
}
@Override
public void setRowId(int parameterIndex, RowId x) throws SQLException {
}
@Override
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
}
@Override
public boolean isClosed() throws SQLException {
return false;
}
@Override
public boolean isPoolable() throws SQLException {
return false;
}
@Override
public void setPoolable(boolean poolable) throws SQLException {
}
}