KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > myoodb > mi > GozillaDbImpl


1 ///////////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
4
//
5
// All Rights Reserved
6
//
7
// This program is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License and GNU Library
9
// General Public License as published by the Free Software Foundation;
10
// either version 2, or (at your option) any later version.
11
//
12
// This program is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License and GNU Library General Public License
16
// for more details.
17
//
18
// You should have received a copy of the GNU General Public License
19
// and GNU Library General Public License along with this program; if
20
// not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
21
// MA 02139, USA.
22
//
23
///////////////////////////////////////////////////////////////////////////////
24
package org.myoodb.mi;
25
26 public class GozillaDbImpl extends DinosaurDbImpl /*, FrogDbImpl */ implements Gozilla
27 {
28     private int m_type;
29
30     public GozillaDbImpl()
31     {
32         m_type = -1;
33     }
34
35     public void setType(int type)
36     {
37         m_type = type;
38     }
39
40     public int getType()
41     {
42         return m_type;
43     }
44
45     public void setPoisonousFlag(boolean flag)
46     {
47         ((Frog) getContainer().getTarget(1)).setPoisonousFlag(flag);
48     }
49
50     public boolean getPoisonousFlag()
51     {
52         return ((Frog) getContainer().getTarget(1)).getPoisonousFlag();
53     }
54 }
55
Popular Tags