Source Code Cross Referenced for CachedCallableStatement.java in  » EJB-Server-JBoss-4.2.1 » connector » org » jboss » resource » adapter » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » connector » org.jboss.resource.adapter.jdbc 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * JBoss, Home of Professional Open Source.
003:         * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004:         * as indicated by the @author tags. See the copyright.txt file in the
005:         * distribution for a full listing of individual contributors.
006:         *
007:         * This is free software; you can redistribute it and/or modify it
008:         * under the terms of the GNU Lesser General Public License as
009:         * published by the Free Software Foundation; either version 2.1 of
010:         * the License, or (at your option) any later version.
011:         *
012:         * This software is distributed in the hope that it will be useful,
013:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
014:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015:         * Lesser General Public License for more details.
016:         *
017:         * You should have received a copy of the GNU Lesser General Public
018:         * License along with this software; if not, write to the Free
019:         * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020:         * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021:         */
022:        package org.jboss.resource.adapter.jdbc;
023:
024:        import java.io.InputStream;
025:        import java.io.Reader;
026:        import java.math.BigDecimal;
027:        import java.net.URL;
028:        import java.sql.Array;
029:        import java.sql.Blob;
030:        import java.sql.CallableStatement;
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:        import java.util.Calendar;
038:        import java.util.Map;
039:
040:        /**
041:         * A cache wrapper for java.sql.CallableStatement
042:         *
043:         * @author <a href="mailto:andrewarro@mail.ru">Andrew Belomutskiy</a>
044:         * @author Scott.Stark@jboss.org
045:         * @version $Revision: 57189 $
046:         */
047:        public class CachedCallableStatement extends CachedPreparedStatement
048:                implements  CallableStatement {
049:            private final CallableStatement cs;
050:
051:            public CachedCallableStatement(CallableStatement ps)
052:                    throws SQLException {
053:                super (ps);
054:                this .cs = ps;
055:            }
056:
057:            public boolean wasNull() throws SQLException {
058:                return cs.wasNull();
059:            }
060:
061:            public byte getByte(int parameterIndex) throws SQLException {
062:                return cs.getByte(parameterIndex);
063:            }
064:
065:            public double getDouble(int parameterIndex) throws SQLException {
066:                return cs.getDouble(parameterIndex);
067:            }
068:
069:            public float getFloat(int parameterIndex) throws SQLException {
070:                return cs.getFloat(parameterIndex);
071:            }
072:
073:            public int getInt(int parameterIndex) throws SQLException {
074:                return cs.getInt(parameterIndex);
075:            }
076:
077:            public long getLong(int parameterIndex) throws SQLException {
078:                return cs.getLong(parameterIndex);
079:            }
080:
081:            public short getShort(int parameterIndex) throws SQLException {
082:                return cs.getShort(parameterIndex);
083:            }
084:
085:            public boolean getBoolean(int parameterIndex) throws SQLException {
086:                return cs.getBoolean(parameterIndex);
087:            }
088:
089:            public byte[] getBytes(int parameterIndex) throws SQLException {
090:                return cs.getBytes(parameterIndex);
091:            }
092:
093:            public void registerOutParameter(int parameterIndex, int sqlType)
094:                    throws SQLException {
095:                cs.registerOutParameter(parameterIndex, sqlType);
096:            }
097:
098:            public void registerOutParameter(int parameterIndex, int sqlType,
099:                    int scale) throws SQLException {
100:                cs.registerOutParameter(parameterIndex, sqlType, scale);
101:            }
102:
103:            public Object getObject(int parameterIndex) throws SQLException {
104:                return cs.getObject(parameterIndex);
105:            }
106:
107:            public String getString(int parameterIndex) throws SQLException {
108:                return cs.getString(parameterIndex);
109:            }
110:
111:            public void registerOutParameter(int paramIndex, int sqlType,
112:                    String typeName) throws SQLException {
113:                cs.registerOutParameter(paramIndex, sqlType, typeName);
114:            }
115:
116:            public byte getByte(String parameterName) throws SQLException {
117:                return cs.getByte(parameterName);
118:            }
119:
120:            public double getDouble(String parameterName) throws SQLException {
121:                return cs.getDouble(parameterName);
122:            }
123:
124:            public float getFloat(String parameterName) throws SQLException {
125:                return cs.getFloat(parameterName);
126:            }
127:
128:            public int getInt(String parameterName) throws SQLException {
129:                return cs.getInt(parameterName);
130:            }
131:
132:            public long getLong(String parameterName) throws SQLException {
133:                return cs.getLong(parameterName);
134:            }
135:
136:            public short getShort(String parameterName) throws SQLException {
137:                return cs.getShort(parameterName);
138:            }
139:
140:            public boolean getBoolean(String parameterName) throws SQLException {
141:                return cs.getBoolean(parameterName);
142:            }
143:
144:            public byte[] getBytes(String parameterName) throws SQLException {
145:                return cs.getBytes(parameterName);
146:            }
147:
148:            public void setByte(String parameterName, byte x)
149:                    throws SQLException {
150:                cs.setByte(parameterName, x);
151:            }
152:
153:            public void setDouble(String parameterName, double x)
154:                    throws SQLException {
155:                cs.setDouble(parameterName, x);
156:            }
157:
158:            public void setFloat(String parameterName, float x)
159:                    throws SQLException {
160:                cs.setFloat(parameterName, x);
161:            }
162:
163:            public void registerOutParameter(String parameterName, int sqlType)
164:                    throws SQLException {
165:                cs.registerOutParameter(parameterName, sqlType);
166:            }
167:
168:            public void setInt(String parameterName, int x) throws SQLException {
169:                cs.setInt(parameterName, x);
170:            }
171:
172:            public void setNull(String parameterName, int sqlType)
173:                    throws SQLException {
174:                cs.setNull(parameterName, sqlType);
175:            }
176:
177:            public void registerOutParameter(String parameterName, int sqlType,
178:                    int scale) throws SQLException {
179:                cs.registerOutParameter(parameterName, sqlType, scale);
180:            }
181:
182:            public void setLong(String parameterName, long x)
183:                    throws SQLException {
184:                cs.setLong(parameterName, x);
185:            }
186:
187:            public void setShort(String parameterName, short x)
188:                    throws SQLException {
189:                cs.setShort(parameterName, x);
190:            }
191:
192:            public void setBoolean(String parameterName, boolean x)
193:                    throws SQLException {
194:                cs.setBoolean(parameterName, x);
195:            }
196:
197:            public void setBytes(String parameterName, byte[] x)
198:                    throws SQLException {
199:                cs.setBytes(parameterName, x);
200:            }
201:
202:            public BigDecimal getBigDecimal(int parameterIndex)
203:                    throws SQLException {
204:                return cs.getBigDecimal(parameterIndex);
205:            }
206:
207:            public BigDecimal getBigDecimal(int parameterIndex, int scale)
208:                    throws SQLException {
209:                return cs.getBigDecimal(parameterIndex, scale);
210:            }
211:
212:            public URL getURL(int parameterIndex) throws SQLException {
213:                return cs.getURL(parameterIndex);
214:            }
215:
216:            public Array getArray(int i) throws SQLException {
217:                return cs.getArray(i);
218:            }
219:
220:            public Blob getBlob(int i) throws SQLException {
221:                return cs.getBlob(i);
222:            }
223:
224:            public Clob getClob(int i) throws SQLException {
225:                return cs.getClob(i);
226:            }
227:
228:            public Date getDate(int parameterIndex) throws SQLException {
229:                return cs.getDate(parameterIndex);
230:            }
231:
232:            public Ref getRef(int i) throws SQLException {
233:                return cs.getRef(i);
234:            }
235:
236:            public Time getTime(int parameterIndex) throws SQLException {
237:                return cs.getTime(parameterIndex);
238:            }
239:
240:            public Timestamp getTimestamp(int parameterIndex)
241:                    throws SQLException {
242:                return cs.getTimestamp(parameterIndex);
243:            }
244:
245:            public void setAsciiStream(String parameterName, InputStream x,
246:                    int length) throws SQLException {
247:                cs.setAsciiStream(parameterName, x, length);
248:            }
249:
250:            public void setBinaryStream(String parameterName, InputStream x,
251:                    int length) throws SQLException {
252:                cs.setBinaryStream(parameterName, x, length);
253:            }
254:
255:            public void setCharacterStream(String parameterName, Reader reader,
256:                    int length) throws SQLException {
257:                cs.setCharacterStream(parameterName, reader, length);
258:            }
259:
260:            public Object getObject(String parameterName) throws SQLException {
261:                return cs.getObject(parameterName);
262:            }
263:
264:            public void setObject(String parameterName, Object x)
265:                    throws SQLException {
266:                cs.setObject(parameterName, x);
267:            }
268:
269:            public void setObject(String parameterName, Object x,
270:                    int targetSqlType) throws SQLException {
271:                cs.setObject(parameterName, x, targetSqlType);
272:            }
273:
274:            public void setObject(String parameterName, Object x,
275:                    int targetSqlType, int scale) throws SQLException {
276:                cs.setObject(parameterName, x, targetSqlType, scale);
277:            }
278:
279:            public Object getObject(int i, Map map) throws SQLException {
280:                return cs.getObject(i, map);
281:            }
282:
283:            public String getString(String parameterName) throws SQLException {
284:                return cs.getString(parameterName);
285:            }
286:
287:            public void registerOutParameter(String parameterName, int sqlType,
288:                    String typeName) throws SQLException {
289:                cs.registerOutParameter(parameterName, sqlType, typeName);
290:            }
291:
292:            public void setNull(String parameterName, int sqlType,
293:                    String typeName) throws SQLException {
294:                cs.setNull(parameterName, sqlType, typeName);
295:            }
296:
297:            public void setString(String parameterName, String x)
298:                    throws SQLException {
299:                cs.setString(parameterName, x);
300:            }
301:
302:            public BigDecimal getBigDecimal(String parameterName)
303:                    throws SQLException {
304:                return cs.getBigDecimal(parameterName);
305:            }
306:
307:            public void setBigDecimal(String parameterName, BigDecimal x)
308:                    throws SQLException {
309:                cs.setBigDecimal(parameterName, x);
310:            }
311:
312:            public URL getURL(String parameterName) throws SQLException {
313:                return cs.getURL(parameterName);
314:            }
315:
316:            public void setURL(String parameterName, URL val)
317:                    throws SQLException {
318:                cs.setURL(parameterName, val);
319:            }
320:
321:            public Array getArray(String parameterName) throws SQLException {
322:                return cs.getArray(parameterName);
323:            }
324:
325:            public Blob getBlob(String parameterName) throws SQLException {
326:                return cs.getBlob(parameterName);
327:            }
328:
329:            public Clob getClob(String parameterName) throws SQLException {
330:                return cs.getClob(parameterName);
331:            }
332:
333:            public Date getDate(String parameterName) throws SQLException {
334:                return cs.getDate(parameterName);
335:            }
336:
337:            public void setDate(String parameterName, Date x)
338:                    throws SQLException {
339:                cs.setDate(parameterName, x);
340:            }
341:
342:            public Date getDate(int parameterIndex, Calendar cal)
343:                    throws SQLException {
344:                return cs.getDate(parameterIndex, cal);
345:            }
346:
347:            public Ref getRef(String parameterName) throws SQLException {
348:                return cs.getRef(parameterName);
349:            }
350:
351:            public Time getTime(String parameterName) throws SQLException {
352:                return cs.getTime(parameterName);
353:            }
354:
355:            public void setTime(String parameterName, Time x)
356:                    throws SQLException {
357:                cs.setTime(parameterName, x);
358:            }
359:
360:            public Time getTime(int parameterIndex, Calendar cal)
361:                    throws SQLException {
362:                return cs.getTime(parameterIndex, cal);
363:            }
364:
365:            public Timestamp getTimestamp(String parameterName)
366:                    throws SQLException {
367:                return cs.getTimestamp(parameterName);
368:            }
369:
370:            public void setTimestamp(String parameterName, Timestamp x)
371:                    throws SQLException {
372:                cs.setTimestamp(parameterName, x);
373:            }
374:
375:            public Timestamp getTimestamp(int parameterIndex, Calendar cal)
376:                    throws SQLException {
377:                return cs.getTimestamp(parameterIndex, cal);
378:            }
379:
380:            public Object getObject(String parameterName, Map map)
381:                    throws SQLException {
382:                return cs.getObject(parameterName, map);
383:            }
384:
385:            public Date getDate(String parameterName, Calendar cal)
386:                    throws SQLException {
387:                return cs.getDate(parameterName, cal);
388:            }
389:
390:            public Time getTime(String parameterName, Calendar cal)
391:                    throws SQLException {
392:                return cs.getTime(parameterName, cal);
393:            }
394:
395:            public Timestamp getTimestamp(String parameterName, Calendar cal)
396:                    throws SQLException {
397:                return cs.getTimestamp(parameterName, cal);
398:            }
399:
400:            public void setDate(String parameterName, Date x, Calendar cal)
401:                    throws SQLException {
402:                cs.setDate(parameterName, x, cal);
403:            }
404:
405:            public void setTime(String parameterName, Time x, Calendar cal)
406:                    throws SQLException {
407:                cs.setTime(parameterName, x, cal);
408:            }
409:
410:            public void setTimestamp(String parameterName, Timestamp x,
411:                    Calendar cal) throws SQLException {
412:                cs.setTimestamp(parameterName, x, cal);
413:            }
414:
415:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.