01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DbRemoteClient.java,v 1.2 2002/06/08 00:49:38 mediumnet Exp $
08:
09: package org.ozoneDB.core.DbRemote;
10:
11: import java.io.IOException;
12: import org.ozoneDB.DxLib.*;
13: import org.ozoneDB.DxLib.net.DxClient;
14: import org.ozoneDB.*;
15: import org.ozoneDB.core.*;
16:
17: /**
18: * @author <a href="http://www.softwarebuero.de/">SMB</a>
19: * @version $Revision: 1.2 $Date: 2002/06/08 00:49:38 $
20: */
21: public class DbRemoteClient extends DbClient {
22:
23: public DbRemoteClient(ExternalDatabase _db, String _host,
24: int _port, String _user) throws IOException {
25: super (_db, _host, _port, _user);
26: }
27:
28: /**
29: * Receive object and handle proxy link conversion.
30: */
31: public Object receive() throws IOException, ClassNotFoundException {
32: try {
33: OzoneProxy.linkTable.addForKey(db, in);
34: return super.receive();
35: } finally {
36: OzoneProxy.linkTable.removeForKey(in);
37: }
38: }
39:
40: }
|