KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > nava > informa > impl > hibernate > Cloud


1 //
2
// Informa -- RSS Library for Java
3
// Copyright (c) 2002 by Niko Schmuck
4
//
5
// Niko Schmuck
6
// http://sourceforge.net/projects/informa
7
// mailto:niko_schmuck@users.sourceforge.net
8
//
9
// This library is free software.
10
//
11
// You may redistribute it and/or modify it under the terms of the GNU
12
// Lesser General Public License as published by the Free Software Foundation.
13
//
14
// Version 2.1 of the license should be included with this distribution in
15
// the file LICENSE. If the license is not included with this distribution,
16
// you may find a copy at the FSF web site at 'www.gnu.org' or 'www.fsf.org',
17
// or you may write to the Free Software Foundation, 675 Mass Ave, Cambridge,
18
// MA 02139 USA.
19
//
20
// This library is distributed in the hope that it will be useful,
21
// but WITHOUT ANY WARRANTY; without even the implied waranty of
22
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
// Lesser General Public License for more details.
24
//
25

26 // $Id: Cloud.java,v 1.2 2003/10/21 03:31:22 mharhen Exp $
27

28 package de.nava.informa.impl.hibernate;
29
30 import de.nava.informa.core.CloudIF;
31
32 /**
33  * Hibernate implementation of the CloudIF interface.
34  *
35  * @author Michael Harhen
36  *
37  * @hibernate.class
38  * table="CLOUDS"
39  */

40 public class Cloud implements CloudIF, java.io.Serializable JavaDoc {
41
42   private int id;
43   private String JavaDoc domain;
44   private int port;
45   private String JavaDoc path;
46   private String JavaDoc registerProcedure;
47   private String JavaDoc protocol;
48
49   public Cloud() {
50     this("[No Cloud]", -1, null, null, null);
51   }
52
53   public Cloud(String JavaDoc domain, int port, String JavaDoc path, String JavaDoc registerProcedure, String JavaDoc protocol) {
54     this.domain = domain;
55     this.port = port;
56     this.path = path;
57     this.registerProcedure = registerProcedure;
58     this.protocol = protocol;
59   }
60
61   // --------------------------------------------------------------
62
// implementation of CloudIF interface
63
// --------------------------------------------------------------
64

65   /**
66    * @hibernate.id
67    * column="CLOUD_ID"
68    * generator-class="native"
69    * type="integer"
70    */

71   public int getIntId() {
72     return id;
73   }
74
75   public void setIntId(int id) {
76     this.id = id;
77   }
78
79   public long getId() {
80     return id;
81   }
82
83   public void setId(long id) {
84     this.id = (int) id;
85   }
86
87   /**
88    * @hibernate.property
89    * column="DOMAIN"
90    * not-null="true"
91    */

92   public String JavaDoc getDomain() {
93     return domain;
94   }
95
96   public void setDomain(String JavaDoc domain) {
97     this.domain = domain;
98   }
99
100   /**
101    * @hibernate.property
102    * column="PORT"
103    * not-null="true"
104    */

105   public int getPort() {
106     return port;
107   }
108
109   public void setPort(int port) {
110     this.port = port;
111   }
112
113   /**
114    * @hibernate.property
115    * column="PATH"
116    * not-null="true"
117    */

118   public String JavaDoc getPath() {
119     return path;
120   }
121
122   public void setPath(String JavaDoc path) {
123     this.path = path;
124   }
125
126   /**
127    * @hibernate.property
128    * column="REGISTER_PROCEDURE"
129    * not-null="true"
130    */

131   public String JavaDoc getRegisterProcedure() {
132     return registerProcedure;
133   }
134
135   public void setRegisterProcedure(String JavaDoc registerProcedure) {
136     this.registerProcedure = registerProcedure;
137   }
138
139   /**
140    * @hibernate.property
141    * column="PROTOCOL"
142    * not-null="true"
143    */

144   public String JavaDoc getProtocol() {
145     return protocol;
146   }
147
148   public void setProtocol(String JavaDoc protocol) {
149     this.protocol = protocol;
150   }
151
152 }
153
Popular Tags