KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdbc > fetch > FetchOpData


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdbc.fetch;
13
14 import com.versant.core.common.State;
15 import com.versant.core.common.OID;
16
17 import java.sql.ResultSet JavaDoc;
18
19 /**
20  * <p>This is used for communication between FetchOp's when one needs to
21  * provide information to another. It knows how to get the information
22  * required from a FetchData instance. This decouples the receiving
23  * FetchOp from the one providing the data making FetchOp's more reusable.</p>
24  *
25  * <p>Note that these must not store any per-fetch instance data. This must go
26  * in the fetchData slot for the FetchOp.</p>
27  *
28  * Remember to add to keep {@link FetchOpDataProxy} in sync with this class.
29  */

30 public class FetchOpData {
31
32     public OID getOID(FetchResultImp fetchResult) {
33         return null;
34     }
35
36     public State getState(FetchResultImp fetchResult) {
37         return null;
38     }
39
40     public ResultSet JavaDoc getResultSet(FetchResultImp fetchResult) {
41         return null;
42     }
43
44     /**
45      * Return a description of this data for the fetch plan. This should
46      * include a leading space if it is not blank.
47      */

48     public String JavaDoc getDescription() {
49         return "";
50     }
51
52 }
53
Popular Tags