001: /*
002: Copyright (C) 2007 MySQL AB
003:
004: This program is free software; you can redistribute it and/or modify
005: it under the terms of version 2 of the GNU General Public License as
006: published by the Free Software Foundation.
007:
008: There are special exceptions to the terms and conditions of the GPL
009: as it is applied to this software. View the full text of the
010: exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
011: software distribution.
012:
013: This program is distributed in the hope that it will be useful,
014: but WITHOUT ANY WARRANTY; without even the implied warranty of
015: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: GNU General Public License for more details.
017:
018: You should have received a copy of the GNU General Public License
019: along with this program; if not, write to the Free Software
020: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021:
022: */
023: package com.mysql.jdbc;
024:
025: import java.io.InputStream;
026: import java.io.Reader;
027: import java.math.BigDecimal;
028: import java.net.URL;
029: import java.sql.Array;
030: import java.sql.Blob;
031: import java.sql.Clob;
032: import java.sql.Date;
033: import java.sql.Ref;
034: import java.sql.SQLException;
035: import java.sql.Time;
036: import java.sql.Timestamp;
037:
038: /**
039: * Interface to allow PreparedStatement implementations to expose
040: * their parameter bindings to StatementInterceptors.
041: *
042: * @version $Id: $
043: */
044: public interface ParameterBindings {
045:
046: public abstract Array getArray(int parameterIndex)
047: throws SQLException;
048:
049: public abstract InputStream getAsciiStream(int parameterIndex)
050: throws SQLException;
051:
052: public abstract BigDecimal getBigDecimal(int parameterIndex)
053: throws SQLException;
054:
055: public abstract InputStream getBinaryStream(int parameterIndex)
056: throws SQLException;
057:
058: public abstract java.sql.Blob getBlob(int parameterIndex)
059: throws SQLException;
060:
061: public abstract boolean getBoolean(int parameterIndex)
062: throws SQLException;
063:
064: public abstract byte getByte(int parameterIndex)
065: throws SQLException;
066:
067: public abstract byte[] getBytes(int parameterIndex)
068: throws SQLException;
069:
070: public abstract Reader getCharacterStream(int parameterIndex)
071: throws SQLException;
072:
073: public abstract Clob getClob(int parameterIndex)
074: throws SQLException;
075:
076: public abstract Date getDate(int parameterIndex)
077: throws SQLException;
078:
079: public abstract double getDouble(int parameterIndex)
080: throws SQLException;
081:
082: public abstract float getFloat(int parameterIndex)
083: throws SQLException;
084:
085: public abstract int getInt(int parameterIndex) throws SQLException;
086:
087: public abstract long getLong(int parameterIndex)
088: throws SQLException;
089:
090: public abstract Reader getNCharacterStream(int parameterIndex)
091: throws SQLException;
092:
093: public abstract Reader getNClob(int parameterIndex)
094: throws SQLException;
095:
096: public abstract Object getObject(int parameterIndex)
097: throws SQLException;
098:
099: public abstract Ref getRef(int parameterIndex) throws SQLException;
100:
101: public abstract short getShort(int parameterIndex)
102: throws SQLException;
103:
104: public abstract String getString(int parameterIndex)
105: throws SQLException;
106:
107: public abstract Time getTime(int parameterIndex)
108: throws SQLException;
109:
110: public abstract Timestamp getTimestamp(int parameterIndex)
111: throws SQLException;
112:
113: public abstract URL getURL(int parameterIndex) throws SQLException;
114:
115: public abstract boolean isNull(int parameterIndex)
116: throws SQLException;
117: }
|