01: /*
02:
03: Derby - Class org.apache.derby.client.am.StatementCallbackInterface
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (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: // Methods implemented by the common Statement class to handle
25: // certain events that may originate from the material or common layers.
26: //
27: // Reply implementations may update statement state via this interface.
28: //
29:
30: public interface StatementCallbackInterface extends UnitOfWorkListener {
31: // A query has been opened on the server.
32: public void completeOpenQuery(Sqlca sqlca, ResultSet resultSet)
33: throws DisconnectException;
34:
35: public void completeExecuteCallOpenQuery(Sqlca sqlca,
36: ResultSet resultSet, ColumnMetaData resultSetMetaData,
37: Section generatedSection);
38:
39: // Chains a warning onto the statement.
40: public void accumulateWarning(SqlWarning e);
41:
42: public void completePrepare(Sqlca sqlca);
43:
44: public void completePrepareDescribeOutput(
45: ColumnMetaData columnMetaData, Sqlca sqlca);
46:
47: public void completeExecuteImmediate(Sqlca sqlca);
48:
49: public void completeExecuteSetStatement(Sqlca sqlca);
50:
51: public void completeExecute(Sqlca sqlca);
52:
53: public void completeExecuteCall(Sqlca sqlca, Cursor params,
54: ResultSet[] resultSets);
55:
56: public void completeExecuteCall(Sqlca sqlca, Cursor params);
57:
58: public int completeSqlca(Sqlca sqlca);
59:
60: public ConnectionCallbackInterface getConnectionCallbackInterface();
61:
62: public ColumnMetaData getGuessedResultSetMetaData();
63: }
|