KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > client > am > StatementCallbackInterface


1 /*
2
3    Derby - Class org.apache.derby.client.am.StatementCallbackInterface
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.client.am;
23
24
25
26 // Methods implemented by the common Statement class to handle
27
// certain events that may originate from the material or common layers.
28
//
29
// Reply implementations may update statement state via this interface.
30
//
31

32 public interface StatementCallbackInterface extends UnitOfWorkListener {
33     // A query has been opened on the server.
34
public void completeOpenQuery(Sqlca sqlca, ResultSet resultSet) throws DisconnectException;
35
36     public void completeExecuteCallOpenQuery(Sqlca sqlca, ResultSet resultSet, ColumnMetaData resultSetMetaData, Section generatedSection);
37
38     // Chains a warning onto the statement.
39
public void accumulateWarning(SqlWarning e);
40
41     public void completePrepare(Sqlca sqlca);
42
43     public void completePrepareDescribeOutput(ColumnMetaData columnMetaData, Sqlca sqlca);
44
45     public void completeExecuteImmediate(Sqlca sqlca);
46
47     public void completeExecuteSetStatement(Sqlca sqlca);
48
49
50     public void completeExecute(Sqlca sqlca);
51
52     public void completeExecuteCall(Sqlca sqlca, Cursor params, ResultSet[] resultSets);
53
54     public void completeExecuteCall(Sqlca sqlca, Cursor params);
55
56     public int completeSqlca(Sqlca sqlca);
57
58     public ConnectionCallbackInterface getConnectionCallbackInterface();
59
60     public ColumnMetaData getGuessedResultSetMetaData();
61 }
62
Popular Tags