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: DbObjForHandle.java,v 1.1 2002/05/08 16:06:53 per_nyfelt Exp $
08:
09: package org.ozoneDB.core.DbRemote;
10:
11: import org.ozoneDB.DxLib.*;
12: import org.ozoneDB.core.*;
13:
14: import java.io.IOException;
15:
16: /**
17: * @author James Stiefel</a>
18: * @version $Revision: 1.1 $
19: */
20: public class DbObjForHandle extends DbCommand {
21:
22: private ObjectID handle = null;
23:
24: public DbObjForHandle() {
25: }
26:
27: public DbObjForHandle(String _handle) {
28: handle = new ObjectID(_handle);
29: }
30:
31: public void perform(Transaction ta) throws Exception {
32: // env.logWriter.newEntry (this, "DbObjForHandle.perform()...", LogWriter.DEBUG);
33: result = ta.objectForID(handle);
34: }
35:
36: }
|