KickJava   Java API By Example, From Geeks To Geeks.

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


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