KickJava   Java API By Example, From Geeks To Geeks.

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


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: DbProxyDeath.java,v 1.5 2002/09/18 06:54:16 per_nyfelt Exp $
8

9 package org.ozoneDB.core.DbRemote;
10
11 import org.ozoneDB.OzoneProxy;
12 import org.ozoneDB.core.ObjectID;
13 import org.ozoneDB.core.Transaction;
14
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.5 $Date: 2002/09/18 06:54:16 $
20  */

21 public class DbProxyDeath extends DbCommand {
22
23 // private OzoneProxy obj;
24
protected ObjectID id;
25
26
27     public DbProxyDeath() {
28     }
29
30
31     public DbProxyDeath(OzoneProxy obj) {
32 // this.obj = obj;
33
this.id = obj.remoteID();
34     }
35
36
37     public void perform( Transaction ta ) throws Exception JavaDoc {
38         getProxyObjectGate().removeObjectReferencedByClient(id);
39     }
40
41     /**
42         Returns wether a result should be sent to the client.
43     */

44     public boolean shouldResultBeSentToClient() {
45         return false;
46     }
47 }
48
Popular Tags