KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > client > net > ResultSetRequestInterface


1 /*
2
3    Derby - Class org.apache.derby.client.net.ResultSetRequestInterface
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.net;
23
24 import org.apache.derby.client.am.Section;
25
26 // In general, required data is passed.
27
// In addition, ResultSet objects are passed for convenient access to any material result set caches.
28
// Implementations of this interface should not dereference common layer ResultSet state, as it is passed in,
29
// but may dereference material layer ResultSet state if necessary for performance.
30

31 public interface ResultSetRequestInterface {
32     public void writeFetch(NetResultSet resultSet,
33                            Section section,
34                            int fetchSize) throws org.apache.derby.client.am.SqlException;
35
36     public void writeScrollableFetch(NetResultSet resultSet,
37                                      Section section,
38                                      int fetchSize,
39                                      int orientation,
40                                      long rowToFetch,
41                                      boolean resetQueryBlocks) throws org.apache.derby.client.am.SqlException;
42
43     public void writePositioningFetch(NetResultSet resultSet,
44                                       Section section,
45                                       int orientation,
46                                       long rowToFetch) throws org.apache.derby.client.am.SqlException;
47
48     public void writeCursorClose(NetResultSet resultSet,
49                                  Section section) throws org.apache.derby.client.am.SqlException;
50
51 }
52
Popular Tags