KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > eziba > sql > Statement


1 /*
2  * Copyright (C) 2001 eZiba.com, Inc.
3  * All Rights Reserved
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * Redistributions in binary form must reproduce the above
12  * copyright notice, this list of conditions and the following
13  * disclaimer in the documentation and/or other materials provided
14  * with the distribution. Neither the name of eZiba.com nor the
15  * names of its contributors may be used to endorse or promote
16  * products derived from this software without specific prior
17  * written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
23  * eZiba.com OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30  * OF THE POSSIBILITY OF SUCH DAMAGE.
31  */

32
33 package com.mockobjects.eziba.sql;
34 import java.sql.SQLException JavaDoc;public class Statement
35   implements java.sql.Statement JavaDoc
36 {
37     protected final Connection connection;
38     protected final String JavaDoc sql;
39
40     Statement(Connection p_connection, String JavaDoc p_sql)
41     {
42         connection = p_connection;
43         sql = p_sql;
44     }
45
46     public void close()
47     {
48         // noop
49
}
50
51     public java.sql.Connection JavaDoc getConnection()
52     {
53         return connection;
54     }
55
56     // be afraid, be very afraid, for below this line
57
// all methods throw the dreaded NotImplementedException ...
58

59
60
61     public void addBatch(String JavaDoc sql)
62     {
63         throw new NotImplementedException();
64     }
65
66     public void cancel()
67     {
68         throw new NotImplementedException();
69     }
70
71     public void clearBatch()
72     {
73         throw new NotImplementedException();
74     }
75
76     public void clearWarnings()
77     {
78         throw new NotImplementedException();
79     }
80
81     public boolean execute(String JavaDoc sql)
82         throws SQLException JavaDoc
83     {
84         throw new NotImplementedException();
85     }
86
87     public int[] executeBatch()
88     {
89         throw new NotImplementedException();
90     }
91
92     public java.sql.ResultSet JavaDoc executeQuery(String JavaDoc sql)
93     {
94         throw new NotImplementedException();
95     }
96
97     public int executeUpdate(String JavaDoc sql)
98     {
99         throw new NotImplementedException();
100     }
101
102     public int getFetchDirection()
103     {
104         throw new NotImplementedException();
105     }
106
107     public int getFetchSize()
108     {
109         throw new NotImplementedException();
110     }
111
112     public int getMaxFieldSize()
113     {
114         throw new NotImplementedException();
115     }
116
117     public int getMaxRows()
118     {
119         throw new NotImplementedException();
120     }
121
122     public boolean getMoreResults()
123     {
124         throw new NotImplementedException();
125     }
126
127     public int getQueryTimeout()
128     {
129         throw new NotImplementedException();
130     }
131
132     public java.sql.ResultSet JavaDoc getResultSet()
133     {
134         throw new NotImplementedException();
135     }
136
137     public int getResultSetConcurrency()
138     {
139         throw new NotImplementedException();
140     }
141
142     public int getResultSetType()
143     {
144         throw new NotImplementedException();
145     }
146
147     public int getUpdateCount()
148     {
149         throw new NotImplementedException();
150     }
151
152     public java.sql.SQLWarning JavaDoc getWarnings()
153     {
154         throw new NotImplementedException();
155     }
156
157     public void setCursorName(String JavaDoc name)
158     {
159         throw new NotImplementedException();
160     }
161
162     public void setEscapeProcessing(boolean enable)
163     {
164         throw new NotImplementedException();
165     }
166
167     public void setFetchDirection(int direction)
168     {
169         throw new NotImplementedException();
170     }
171
172     public void setFetchSize(int rows)
173     {
174         throw new NotImplementedException();
175     }
176
177     public void setMaxFieldSize(int max)
178     {
179         throw new NotImplementedException();
180     }
181
182     public void setMaxRows(int max)
183     {
184         throw new NotImplementedException();
185     }
186
187     public void setQueryTimeout(int seconds)
188     {
189         throw new NotImplementedException();
190     }
191 }
Popular Tags