KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Derby - Class org.apache.derby.client.am.MaterialPreparedStatement
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 MaterialPreparedStatement extends MaterialStatement {
27
28
29     // ------------------------ abstract box car and callback methods --------------------------------
30

31     public abstract void writeExecute_(Section section,
32                                        ColumnMetaData parameterMetaData,
33                                        Object JavaDoc[] inputs,
34                                        int numInputColumns,
35                                        boolean outputExpected,
36                                        // This is a hint to the material layer that more write commands will follow.
37
// It is ignored by the driver in all cases except when blob data is written,
38
// in which case this boolean is used to optimize the implementation.
39
// Otherwise we wouldn't be able to chain after blob data is sent.
40
// Current servers have a restriction that blobs can only be chained with blobs
41
// Can the blob code
42
boolean chainedWritesFollowingSetLob) throws SqlException;
43
44
45     public abstract void readExecute_() throws SqlException;
46
47     public abstract void writeOpenQuery_(Section section,
48                                          int fetchSize,
49                                          int resultSetType,
50                                          int numInputColumns,
51                                          ColumnMetaData parameterMetaData,
52                                          Object JavaDoc[] inputs) throws SqlException;
53
54     public abstract void writeDescribeInput_(Section section) throws SqlException;
55
56     public abstract void readDescribeInput_() throws SqlException;
57
58     public abstract void writeDescribeOutput_(Section section) throws SqlException;
59
60     public abstract void readDescribeOutput_() throws SqlException;
61 }
62
Popular Tags