KickJava   Java API By Example, From Geeks To Geeks.

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


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

9 package org.ozoneDB.core.DbRemote;
10
11 import org.ozoneDB.core.ObjectID;
12 import org.ozoneDB.core.Transaction;
13
14
15 /**
16  * @author James Stiefel</a>
17  * @version $Revision: 1.3 $
18  */

19 public class DbObjForHandle extends DbCommand {
20
21     private ObjectID handle = null;
22
23
24     public DbObjForHandle() {
25     }
26
27     public DbObjForHandle( String JavaDoc _handle ) {
28         handle = new ObjectID (_handle);
29     }
30
31     public void perform( Transaction ta ) throws Exception JavaDoc {
32         // env.logWriter.newEntry (this, "DbObjForHandle.perform()...", LogWriter.DEBUG);
33
result = ta.objectForID( handle );
34     }
35
36 }
37
Popular Tags