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: DbProxyDeath.java,v 1.3 2002/06/25 11:34:38 mediumnet Exp $
08:
09: package org.ozoneDB.core.DbRemote;
10:
11: import org.ozoneDB.DxLib.*;
12: import org.ozoneDB.*;
13: import org.ozoneDB.core.*;
14: import java.io.IOException;
15:
16: /**
17: * @author <a href="http://www.softwarebuero.de/">SMB</a>
18: * @author <a href="http://www.medium.net/">Medium.net</a>
19: * @version $Revision: 1.3 $Date: 2002/06/25 11:34:38 $
20: */
21: public class DbProxyDeath extends DbCommand {
22:
23: // private OzoneProxy obj;
24: protected ObjectID id;
25:
26: public DbProxyDeath() {
27: }
28:
29: public DbProxyDeath(OzoneProxy obj) {
30: // this.obj = obj;
31: this .id = obj.remoteID();
32: }
33:
34: public void perform(Transaction ta) throws Exception {
35: getProxyObjectGate().removeObjectReferencedByClient(id);
36: }
37:
38: /**
39: Returns wether a result should be sent to the client.
40: */
41: public boolean shouldResultBeSentToClient() {
42: return false;
43: }
44: }
|