KickJava   Java API By Example, From Geeks To Geeks.

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


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.OID;
15 import com.versant.core.common.State;
16 import com.versant.core.common.Debug;
17 import com.versant.core.common.BindingSupportImpl;
18
19 import java.sql.ResultSet JavaDoc;
20
21 /**
22  * This delegates all calls to a src FetchOpData. Subclasses can extend this
23  * and override some of the methods to return different data.
24  */

25 public class FetchOpDataProxy extends FetchOpData {
26
27     private FetchOpData src;
28
29     public FetchOpDataProxy(FetchOpData src) {
30         if (Debug.DEBUG) {
31             if (src == null) {
32                 throw BindingSupportImpl.getInstance().internal("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 JavaDoc getResultSet(FetchResultImp fetchResult) {
47         return src.getResultSet(fetchResult);
48     }
49
50 }
51
52
Popular Tags