KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > iapi > jdbc > BrokeredCallableStatement30


1 /*
2
3    Derby - Class org.apache.derby.iapi.jdbc.BrokeredCallableStatement30
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.iapi.jdbc;
23
24 import java.sql.*;
25 import java.math.BigDecimal JavaDoc;
26 import java.net.URL JavaDoc;
27
28 import java.util.Calendar JavaDoc;
29 import java.util.Map JavaDoc;
30
31
32 /**
33     JDBC 3 brokered CallableStatement
34  */

35 public class BrokeredCallableStatement30 extends BrokeredCallableStatement
36 {
37
38     public BrokeredCallableStatement30(BrokeredStatementControl control, int jdbcLevel, String JavaDoc sql) throws SQLException {
39         super(control, jdbcLevel, sql);
40     }
41     public final void setURL(java.lang.String JavaDoc parameterName, java.net.URL JavaDoc value) throws SQLException {
42         getCallableStatement().setURL(parameterName, value);
43     }
44     public final void setNull(java.lang.String JavaDoc parameterName, int type) throws SQLException {
45         getCallableStatement().setNull(parameterName, type);
46     }
47     public final void setBoolean(java.lang.String JavaDoc parameterName, boolean value) throws SQLException {
48         getCallableStatement().setBoolean(parameterName, value);
49     }
50     public final void setByte(java.lang.String JavaDoc parameterName, byte value) throws SQLException {
51         getCallableStatement().setByte(parameterName, value);
52     }
53     public final void setShort(java.lang.String JavaDoc parameterName, short value) throws SQLException {
54         getCallableStatement().setShort(parameterName, value);
55     }
56     public final void setInt(java.lang.String JavaDoc parameterName, int value) throws SQLException {
57         getCallableStatement().setInt(parameterName, value);
58     }
59     public final void setLong(java.lang.String JavaDoc parameterName, long value) throws SQLException {
60         getCallableStatement().setLong(parameterName, value);
61     }
62     public final void setFloat(java.lang.String JavaDoc parameterName, float value) throws SQLException {
63         getCallableStatement().setFloat(parameterName, value);
64     }
65     public final void setDouble(java.lang.String JavaDoc parameterName, double value) throws SQLException {
66         getCallableStatement().setDouble(parameterName, value);
67     }
68     public final void setBigDecimal(java.lang.String JavaDoc parameterName, java.math.BigDecimal JavaDoc value) throws SQLException {
69         getCallableStatement().setBigDecimal(parameterName, value);
70     }
71     public final void setString(java.lang.String JavaDoc parameterName, java.lang.String JavaDoc value) throws SQLException {
72         getCallableStatement().setString(parameterName, value);
73     }
74     public final void setBytes(java.lang.String JavaDoc parameterName, byte[] value) throws SQLException {
75         getCallableStatement().setBytes(parameterName, value);
76     }
77     public final void setDate(java.lang.String JavaDoc parameterName, java.sql.Date JavaDoc value) throws SQLException {
78         getCallableStatement().setDate(parameterName, value);
79     }
80     public final void setTime(java.lang.String JavaDoc parameterName, java.sql.Time JavaDoc value) throws SQLException {
81         getCallableStatement().setTime(parameterName, value);
82     }
83     public final void setTimestamp(java.lang.String JavaDoc parameterName, java.sql.Timestamp JavaDoc value) throws SQLException {
84         getCallableStatement().setTimestamp(parameterName, value);
85     }
86     public final void setAsciiStream(java.lang.String JavaDoc parameterName, java.io.InputStream JavaDoc value, int length) throws SQLException {
87         getCallableStatement().setAsciiStream(parameterName, value, length);
88     }
89     public final void setBinaryStream(java.lang.String JavaDoc parameterName, java.io.InputStream JavaDoc value, int length) throws SQLException {
90         getCallableStatement().setBinaryStream(parameterName, value, length);
91     }
92     public final void setObject(java.lang.String JavaDoc parameterName, java.lang.Object JavaDoc value, int a, int b) throws SQLException {
93         getCallableStatement().setObject(parameterName, value, a, b);
94     }
95     public final void setObject(java.lang.String JavaDoc parameterName, java.lang.Object JavaDoc value, int a) throws SQLException {
96         getCallableStatement().setObject(parameterName, value, a);
97     }
98     public final void setObject(java.lang.String JavaDoc parameterName, java.lang.Object JavaDoc value) throws SQLException {
99         getCallableStatement().setObject(parameterName, value);
100     }
101     public final void setCharacterStream(java.lang.String JavaDoc parameterName, java.io.Reader JavaDoc value, int length) throws SQLException {
102         getCallableStatement().setCharacterStream(parameterName, value, length);
103     }
104     public final void setDate(java.lang.String JavaDoc parameterName, java.sql.Date JavaDoc value, java.util.Calendar JavaDoc cal) throws SQLException {
105         getCallableStatement().setDate(parameterName, value, cal);
106     }
107     public final void setTime(java.lang.String JavaDoc parameterName, java.sql.Time JavaDoc value, java.util.Calendar JavaDoc cal) throws SQLException {
108         getCallableStatement().setTime(parameterName, value, cal);
109     }
110     public final void setTimestamp(java.lang.String JavaDoc parameterName, java.sql.Timestamp JavaDoc value, java.util.Calendar JavaDoc cal) throws SQLException {
111         getCallableStatement().setTimestamp(parameterName, value, cal);
112     }
113     public final void setNull(java.lang.String JavaDoc parameterName, int a, java.lang.String JavaDoc b) throws SQLException {
114         getCallableStatement().setNull(parameterName, a, b);
115     }
116     public final java.lang.String JavaDoc getString(java.lang.String JavaDoc parameterName) throws SQLException {
117         return getCallableStatement().getString(parameterName);
118     }
119     public final boolean getBoolean(java.lang.String JavaDoc parameterName) throws SQLException {
120         return getCallableStatement().getBoolean(parameterName);
121     }
122     public final byte getByte(java.lang.String JavaDoc parameterName) throws SQLException {
123         return getCallableStatement().getByte(parameterName);
124     }
125     public final short getShort(java.lang.String JavaDoc parameterName) throws SQLException {
126         return getCallableStatement().getShort(parameterName);
127     }
128     public final int getInt(java.lang.String JavaDoc parameterName) throws SQLException {
129         return getCallableStatement().getInt(parameterName);
130     }
131     public final long getLong(java.lang.String JavaDoc parameterName) throws SQLException {
132         return getCallableStatement().getLong(parameterName);
133     }
134     public final float getFloat(java.lang.String JavaDoc parameterName) throws SQLException {
135         return getCallableStatement().getFloat(parameterName);
136     }
137     public final double getDouble(java.lang.String JavaDoc parameterName) throws SQLException {
138         return getCallableStatement().getDouble(parameterName);
139     }
140     public final byte[] getBytes(java.lang.String JavaDoc parameterName) throws SQLException {
141         return getCallableStatement().getBytes(parameterName);
142     }
143     public final java.sql.Date JavaDoc getDate(java.lang.String JavaDoc parameterName) throws SQLException {
144         return getCallableStatement().getDate(parameterName);
145     }
146     public final java.sql.Time JavaDoc getTime(java.lang.String JavaDoc parameterName) throws SQLException {
147         return getCallableStatement().getTime(parameterName);
148     }
149     public final java.sql.Timestamp JavaDoc getTimestamp(java.lang.String JavaDoc parameterName) throws SQLException {
150         return getCallableStatement().getTimestamp(parameterName);
151     }
152     public final java.lang.Object JavaDoc getObject(java.lang.String JavaDoc parameterName) throws SQLException {
153         return getCallableStatement().getObject(parameterName);
154     }
155     public final java.math.BigDecimal JavaDoc getBigDecimal(java.lang.String JavaDoc parameterName) throws SQLException {
156         return getCallableStatement().getBigDecimal(parameterName);
157     }
158     public final java.lang.Object JavaDoc getObject(java.lang.String JavaDoc parameterName, java.util.Map JavaDoc map) throws SQLException {
159         return getCallableStatement().getObject(parameterName, map);
160     }
161     public final java.sql.Ref JavaDoc getRef(java.lang.String JavaDoc parameterName) throws SQLException {
162         return getCallableStatement().getRef(parameterName);
163     }
164     public final java.sql.Blob JavaDoc getBlob(java.lang.String JavaDoc parameterName) throws SQLException {
165         return getCallableStatement().getBlob(parameterName);
166     }
167     public final java.sql.Clob JavaDoc getClob(java.lang.String JavaDoc parameterName) throws SQLException {
168         return getCallableStatement().getClob(parameterName);
169     }
170     public final java.sql.Array JavaDoc getArray(java.lang.String JavaDoc parameterName) throws SQLException {
171         return getCallableStatement().getArray(parameterName);
172     }
173     public final java.sql.Date JavaDoc getDate(java.lang.String JavaDoc parameterName, java.util.Calendar JavaDoc cal) throws SQLException {
174         return getCallableStatement().getDate(parameterName, cal);
175     }
176     public final java.sql.Time JavaDoc getTime(java.lang.String JavaDoc parameterName, java.util.Calendar JavaDoc cal) throws SQLException {
177         return getCallableStatement().getTime(parameterName, cal);
178     }
179     public final java.sql.Timestamp JavaDoc getTimestamp(java.lang.String JavaDoc parameterName, java.util.Calendar JavaDoc cal) throws SQLException {
180         return getCallableStatement().getTimestamp(parameterName, cal);
181     }
182     public final java.net.URL JavaDoc getURL(java.lang.String JavaDoc parameterName) throws SQLException {
183         return getCallableStatement().getURL(parameterName);
184     }
185     public final java.net.URL JavaDoc getURL(int i) throws SQLException {
186         return getCallableStatement().getURL(i);
187     }
188     public final void registerOutParameter(String JavaDoc a, int b) throws SQLException {
189         getCallableStatement().registerOutParameter(a,b);
190     }
191     public final void registerOutParameter(String JavaDoc a, int b, int c) throws SQLException {
192         getCallableStatement().registerOutParameter(a,b,c);
193     }
194     public final void registerOutParameter(String JavaDoc a, int b, String JavaDoc c) throws SQLException {
195         getCallableStatement().registerOutParameter(a,b,c);
196     }
197     /*
198     ** JDBC 3.0 PreparedStatement methods
199     */

200
201     public final void setURL(int i, URL JavaDoc x)
202         throws SQLException
203     {
204         getPreparedStatement().setURL( i, x);
205     }
206     public final ParameterMetaData getParameterMetaData()
207         throws SQLException
208     {
209         return getPreparedStatement().getParameterMetaData();
210     }
211     /*
212     ** Control methods
213     */

214
215     /**
216         Create a duplicate CalableStatement to this, including state, from the passed in Connection.
217     */

218     public CallableStatement createDuplicateStatement(Connection conn, CallableStatement oldStatement) throws SQLException {
219
220         CallableStatement newStatement = conn.prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
221
222         setStatementState(oldStatement, newStatement);
223
224         return newStatement;
225     }
226 }
227
Popular Tags