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.OID;
14: import com.versant.core.common.State;
15: import com.versant.core.common.Debug;
16: import com.versant.core.common.BindingSupportImpl;
17:
18: import java.sql.ResultSet;
19:
20: /**
21: * This delegates all calls to a src FetchOpData. Subclasses can extend this
22: * and override some of the methods to return different data.
23: */
24: public class FetchOpDataProxy extends FetchOpData {
25:
26: private FetchOpData src;
27:
28: public FetchOpDataProxy(FetchOpData src) {
29: if (Debug.DEBUG) {
30: if (src == null) {
31: throw BindingSupportImpl.getInstance().internal(
32: "src == null");
33: }
34: }
35: this .src = src;
36: }
37:
38: public OID getOID(FetchResultImp fetchResult) {
39: return src.getOID(fetchResult);
40: }
41:
42: public State getState(FetchResultImp fetchResult) {
43: return src.getState(fetchResult);
44: }
45:
46: public ResultSet getResultSet(FetchResultImp fetchResult) {
47: return src.getResultSet(fetchResult);
48: }
49:
50: }
|