01: /*
02:
03: Derby - Class org.apache.derby.client.am.MaterialStatement
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: public interface MaterialStatement {
25: public abstract void writeExecuteImmediate_(String sql,
26: Section section) throws SqlException;
27:
28: public abstract void readExecuteImmediate_() throws SqlException;
29:
30: // The sql parameter is supplied in the read method for drivers that
31: // process all commands on the "read-side" and do little/nothing on the "write-side".
32: // Drivers that follow the write/read paradigm (e.g. NET) will likely ignore the sql parameter.
33: public abstract void readExecuteImmediateForBatch_(String sql)
34: throws SqlException;
35:
36: public abstract void writePrepareDescribeOutput_(String sql,
37: Section section) throws SqlException;
38:
39: public abstract void readPrepareDescribeOutput_()
40: throws SqlException;
41:
42: public abstract void writeOpenQuery_(Section section,
43: int fetchSize, int resultSetType) throws SqlException;
44:
45: public abstract void readOpenQuery_() throws SqlException;
46:
47: public abstract void writeExecuteCall_(boolean outputExpected,
48: String procedureName, Section section,
49: int fetchSize,
50: boolean suppressResultSets, // for batch updates set to true, otherwise to false
51: int resultSetType, ColumnMetaData parameterMetaData,
52: Object[] inputs) throws SqlException;
53:
54: public abstract void readExecuteCall_() throws SqlException;
55:
56: // Used for re-prepares across commit and other places as well
57: public abstract void writePrepare_(String sql, Section section)
58: throws SqlException;
59:
60: public abstract void readPrepare_() throws SqlException;
61:
62: public abstract void markClosedOnServer_();
63:
64: public abstract void writeSetSpecialRegister_(
65: java.util.ArrayList sqlsttList) throws SqlException;
66:
67: public abstract void readSetSpecialRegister_() throws SqlException;
68:
69: public abstract void reset_();
70:
71: }
|