01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdbc.fetch;
12:
13: import com.versant.core.common.State;
14: import com.versant.core.common.OID;
15:
16: import java.sql.ResultSet;
17:
18: /**
19: * <p>This is used for communication between FetchOp's when one needs to
20: * provide information to another. It knows how to get the information
21: * required from a FetchData instance. This decouples the receiving
22: * FetchOp from the one providing the data making FetchOp's more reusable.</p>
23: *
24: * <p>Note that these must not store any per-fetch instance data. This must go
25: * in the fetchData slot for the FetchOp.</p>
26: *
27: * Remember to add to keep {@link FetchOpDataProxy} in sync with this class.
28: */
29: public class FetchOpData {
30:
31: public OID getOID(FetchResultImp fetchResult) {
32: return null;
33: }
34:
35: public State getState(FetchResultImp fetchResult) {
36: return null;
37: }
38:
39: public ResultSet getResultSet(FetchResultImp fetchResult) {
40: return null;
41: }
42:
43: /**
44: * Return a description of this data for the fetch plan. This should
45: * include a leading space if it is not blank.
46: */
47: public String getDescription() {
48: return "";
49: }
50:
51: }
|