KickJava   Java API By Example, From Geeks To Geeks.

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


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: DbDeleteObj.java,v 1.5 2002/12/29 11:15:56 per_nyfelt Exp $
8

9 package org.ozoneDB.core.DbRemote;
10
11 import org.ozoneDB.OzoneProxy;
12 import org.ozoneDB.core.Transaction;
13
14
15 /**
16  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
17  * @version $Revision: 1.5 $Date: 2002/12/29 11:15:56 $
18  */

19 public class DbDeleteObj extends DbCommand {
20
21     private OzoneProxy obj;
22
23
24     public DbDeleteObj() {
25     }
26
27
28     public DbDeleteObj( OzoneProxy _obj ) {
29         obj = _obj;
30     }
31
32
33     public void perform( Transaction ta ) throws Exception JavaDoc {
34         env.getLogWriter().newEntry (this, "DbDeleteObj.perform(): ta="+ta+", obj="+obj+".", env.getLogWriter().DEBUG);
35         ta.deleteObject( obj.remoteID() );
36     }
37
38 }
39
Popular Tags