KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > dods > cache > DOShell


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  */

20 package org.enhydra.dods.cache;
21
22 import com.lutris.appserver.server.sql.DatabaseManagerException;
23 import com.lutris.dods.builder.generator.dataobject.GenericDO;
24
25 /**
26  * DOShell class maintains data for result (data objects and data handles).
27  *
28  * @author Tanja Jovanovic
29  * @version 2.0 15.06.2003.
30  */

31 public class DOShell {
32     
33     /**
34      * Data object's handle.
35      */

36     public String JavaDoc handle;
37     
38     /**
39      * Data object.
40      */

41     public GenericDO dataObject = null;
42     
43     /**
44      * Constructor (String).
45      *
46      * @param handle Data object's handle.
47      */

48     public DOShell(String JavaDoc handle) {
49         this.handle = handle;
50     }
51     
52     /**
53      * Constructor (GenericDO).
54      *
55      * @param object Data object.
56      */

57     public DOShell(GenericDO object) {
58         try {
59             this.handle = object.get_Handle();
60             this.dataObject = object;
61         } catch (DatabaseManagerException e) {}
62     }
63 }
64
Popular Tags