01: /*
02: Copyright (C) 2002-2007 MySQL AB
03:
04: This program is free software; you can redistribute it and/or modify
05: it under the terms of version 2 of the GNU General Public License as
06: published by the Free Software Foundation.
07:
08: There are special exceptions to the terms and conditions of the GPL
09: as it is applied to this software. View the full text of the
10: exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
11: software distribution.
12:
13: This program is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: GNU General Public License for more details.
17:
18: You should have received a copy of the GNU General Public License
19: along with this program; if not, write to the Free Software
20: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21:
22: */
23:
24: package com.mysql.jdbc;
25:
26: import java.io.InputStream;
27: import java.io.Reader;
28: import java.sql.NClob;
29: import java.sql.RowId;
30: import java.sql.SQLXML;
31: import java.sql.SQLException;
32: import java.sql.Types;
33:
34: import com.mysql.jdbc.Connection;
35: import com.mysql.jdbc.PreparedStatement;
36: import com.mysql.jdbc.PreparedStatement.ParseInfo;
37: import com.mysql.jdbc.exceptions.NotYetImplementedException;
38:
39: public class JDBC4PreparedStatement extends PreparedStatement {
40:
41: public JDBC4PreparedStatement(ConnectionImpl conn, String catalog)
42: throws SQLException {
43: super (conn, catalog);
44: }
45:
46: public JDBC4PreparedStatement(ConnectionImpl conn, String sql,
47: String catalog) throws SQLException {
48: super (conn, sql, catalog);
49: }
50:
51: public JDBC4PreparedStatement(ConnectionImpl conn, String sql,
52: String catalog, ParseInfo cachedParseInfo)
53: throws SQLException {
54: super (conn, sql, catalog, cachedParseInfo);
55: }
56:
57: public void setRowId(int parameterIndex, RowId x)
58: throws SQLException {
59: JDBC4PreparedStatementHelper.setRowId(this , parameterIndex, x);
60: }
61:
62: /**
63: * JDBC 4.0 Set a NCLOB parameter.
64: *
65: * @param i
66: * the first parameter is 1, the second is 2, ...
67: * @param x
68: * an object representing a NCLOB
69: *
70: * @throws SQLException
71: * if a database error occurs
72: */
73: public void setNClob(int parameterIndex, NClob value)
74: throws SQLException {
75: JDBC4PreparedStatementHelper.setNClob(this , parameterIndex,
76: value);
77: }
78:
79: public void setSQLXML(int parameterIndex, SQLXML xmlObject)
80: throws SQLException {
81: JDBC4PreparedStatementHelper.setSQLXML(this, parameterIndex,
82: xmlObject);
83: }
84: }
|