01: /*
02:
03: Derby - Class org.apache.derby.client.am.MaterialPreparedStatement
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 MaterialPreparedStatement extends MaterialStatement {
25:
26: // ------------------------ abstract box car and callback methods --------------------------------
27:
28: public abstract void writeExecute_(Section section,
29: ColumnMetaData parameterMetaData, Object[] inputs,
30: int numInputColumns, boolean outputExpected,
31: // This is a hint to the material layer that more write commands will follow.
32: // It is ignored by the driver in all cases except when blob data is written,
33: // in which case this boolean is used to optimize the implementation.
34: // Otherwise we wouldn't be able to chain after blob data is sent.
35: // Current servers have a restriction that blobs can only be chained with blobs
36: // Can the blob code
37: boolean chainedWritesFollowingSetLob) throws SqlException;
38:
39: public abstract void readExecute_() throws SqlException;
40:
41: public abstract void writeOpenQuery_(Section section,
42: int fetchSize, int resultSetType, int numInputColumns,
43: ColumnMetaData parameterMetaData, Object[] inputs)
44: throws SqlException;
45:
46: public abstract void writeDescribeInput_(Section section)
47: throws SqlException;
48:
49: public abstract void readDescribeInput_() throws SqlException;
50:
51: public abstract void writeDescribeOutput_(Section section)
52: throws SqlException;
53:
54: public abstract void readDescribeOutput_() throws SqlException;
55: }
|