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: DbCopyObj.java,v 1.2 2002/06/08 00:49: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: * Dieses Kommando loescht ein Datenbankobjekt.
18: *
19: *
20: * @author <a href="http://www.softwarebuero.de/">SMB</a>
21: * @version $Revision: 1.2 $Date: 2002/06/08 00:49:38 $
22: */
23: public class DbCopyObj extends DbCommand {
24:
25: private OzoneProxy obj;
26:
27: public DbCopyObj() {
28: }
29:
30: public DbCopyObj(OzoneProxy _obj) {
31: obj = _obj;
32: }
33:
34: public void perform(Transaction ta) throws Exception {
35: // env.logWriter.newEntry (this, "DbCopyObj.perform()...", LogWriter.DEBUG);
36: ObjectContainer container = ta.copyObjectAndPin(obj.remoteID());
37:
38: try {
39: result = container.ozoneProxy();
40: } finally {
41: container.unpin();
42: }
43: }
44:
45: }
|