KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > jdbclogger > oracle10g > JdbcLoggerOracleStatementWrapper


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

18 import net.sourceforge.jdbclogger.core.StatementWrapper;
19 import oracle.jdbc.OracleResultSetCache;
20 import oracle.jdbc.internal.OracleStatement;
21
22 import java.sql.SQLException JavaDoc;
23
24 /**
25  * @author Martin Marinschek (latest modification by $Author: catalean $)
26  * @version $Revision: 85 $ $Date: 2007-07-08 00:01:17 +0300 (Sun, 08 Jul 2007) $
27  */

28 public class JdbcLoggerOracleStatementWrapper extends StatementWrapper
29         implements oracle.jdbc.internal.OracleStatement
30 {
31     private OracleStatement _oracleStatement;
32
33     public JdbcLoggerOracleStatementWrapper(OracleStatement statement)
34     {
35         super(statement);
36
37         _oracleStatement = statement;
38     }
39
40     public void setFixedString(boolean b)
41     {
42         _oracleStatement.setFixedString(b);
43     }
44
45     public boolean getFixedString()
46     {
47         return _oracleStatement.getFixedString();
48     }
49
50     public int sendBatch() throws SQLException JavaDoc
51     {
52         return _oracleStatement.sendBatch();
53     }
54
55     public boolean getserverCursor()
56     {
57         return _oracleStatement.getserverCursor();
58     }
59
60     public int getcacheState()
61     {
62         return _oracleStatement.getcacheState();
63     }
64
65     public int getstatementType()
66     {
67         return _oracleStatement.getstatementType();
68     }
69
70     public void clearDefines() throws SQLException JavaDoc
71     {
72         _oracleStatement.clearDefines();
73     }
74
75     public void defineColumnType(int i, int i1) throws SQLException JavaDoc
76     {
77         _oracleStatement.defineColumnType(i,i1);
78     }
79
80     public void defineColumnType(int i, int i1, int i2) throws SQLException JavaDoc
81     {
82         _oracleStatement.defineColumnType(i, i1, i2);
83     }
84
85     public void defineColumnType(int i, int i1, int i2, short i3) throws SQLException JavaDoc
86     {
87         _oracleStatement.defineColumnType(i, i1, i2, i3);
88     }
89
90     public void defineColumnTypeBytes(int i, int i1, int i2) throws SQLException JavaDoc
91     {
92         _oracleStatement.defineColumnTypeBytes(i,i1,i2);
93     }
94
95     public void defineColumnTypeChars(int i, int i1, int i2) throws SQLException JavaDoc
96     {
97         _oracleStatement.defineColumnTypeChars(i,i1,i2);
98     }
99
100     public void defineColumnType(int i, int i1, String JavaDoc s) throws SQLException JavaDoc
101     {
102         _oracleStatement.defineColumnType(i,i1,s);
103     }
104
105     public int getRowPrefetch()
106     {
107         return _oracleStatement.getRowPrefetch();
108     }
109
110     public void setResultSetCache(OracleResultSetCache oracleResultSetCache) throws SQLException JavaDoc
111     {
112         _oracleStatement.setResultSetCache(oracleResultSetCache);
113     }
114
115     public void setRowPrefetch(int i) throws SQLException JavaDoc
116     {
117         _oracleStatement.setRowPrefetch(i);
118     }
119
120     public void closeWithKey(String JavaDoc s) throws SQLException JavaDoc
121     {
122         _oracleStatement.closeWithKey(s);
123     }
124
125     public int creationState()
126     {
127         return _oracleStatement.creationState();
128     }
129
130     public boolean isNCHAR(int i) throws SQLException JavaDoc
131     {
132         return _oracleStatement.isNCHAR(i);
133     }
134 }
135
Popular Tags