KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > DbRemote > DbRemoteClient


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DbRemoteClient.java,v 1.4 2002/09/18 06:54:16 per_nyfelt Exp $
8

9 package org.ozoneDB.core.DbRemote;
10
11 import org.ozoneDB.ExternalDatabase;
12 import org.ozoneDB.OzoneProxy;
13
14 import java.io.IOException JavaDoc;
15
16
17 /**
18  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
19  * @version $Revision: 1.4 $Date: 2002/09/18 06:54:16 $
20  */

21 public class DbRemoteClient extends DbClient {
22
23
24     public DbRemoteClient( ExternalDatabase _db, String JavaDoc _host, int _port, String JavaDoc _user ) throws IOException JavaDoc{
25         super( _db, _host, _port, _user );
26     }
27
28
29     /**
30      * Receive object and handle proxy link conversion.
31      */

32     public Object JavaDoc receive() throws IOException JavaDoc, ClassNotFoundException JavaDoc {
33         try {
34             OzoneProxy.linkTable.addForKey( db, in );
35             return super.receive();
36         } finally {
37             OzoneProxy.linkTable.removeForKey( in );
38         }
39     }
40
41 }
42
Popular Tags