KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > tools > ij > ijResult


1 /*
2
3    Derby - Class org.apache.derby.impl.tools.ij.ijResult
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.impl.tools.ij;
23
24 import java.sql.Connection JavaDoc;
25 import java.sql.ResultSet JavaDoc;
26 import java.sql.Statement JavaDoc;
27 import java.sql.PreparedStatement JavaDoc;
28 import java.sql.SQLException JavaDoc;
29 import java.sql.SQLWarning JavaDoc;
30 import java.util.Vector JavaDoc;
31
32 /**
33  * This is a wrapper for results coming out of the
34  * ij parser.
35  *
36  * @author ames
37  *
38  */

39 interface ijResult {
40     boolean isConnection();
41     boolean isStatement();
42     boolean isResultSet() throws SQLException JavaDoc;
43     boolean isUpdateCount() throws SQLException JavaDoc;
44     boolean isNextRowOfResultSet();
45     boolean isVector();
46     boolean isMulti();
47     boolean isException();
48     boolean hasWarnings() throws SQLException JavaDoc ;
49
50     Connection JavaDoc getConnection();
51     Statement JavaDoc getStatement();
52     int getUpdateCount() throws SQLException JavaDoc;
53     ResultSet JavaDoc getResultSet() throws SQLException JavaDoc;
54     ResultSet JavaDoc getNextRowOfResultSet();
55     Vector JavaDoc getVector();
56     SQLException JavaDoc getException();
57     int[] getColumnDisplayList();
58     int[] getColumnWidthList();
59
60     void closeStatement() throws SQLException JavaDoc ;
61
62     /*
63         Since they will all need to do warning calls/clears, may as
64         well stick it here.
65      */

66     SQLWarning JavaDoc getSQLWarnings() throws SQLException JavaDoc ;
67     void clearSQLWarnings() throws SQLException JavaDoc ;
68 }
69
Popular Tags