summaryrefslogtreecommitdiff
path: root/orkbasej/java/net/sf/oreka/persistent/Service.java
blob: 701948e9cefdf9b71d737f8f3c2507bb34eb939d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*
 * Oreka -- A media capture and retrieval platform
 * 
 * Copyright (C) 2005, orecx LLC
 *
 * http://www.orecx.com
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License.
 * Please refer to http://www.gnu.org/copyleft/gpl.html
 *
 */

/**
 * 
 */
package net.sf.oreka.persistent;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratorType;
import javax.persistence.Id;
import javax.persistence.Table;

import net.sf.oreka.ServiceClass;

/**
 * @hibernate.class
 */
@Entity
@Table(name = "service")
public class Service implements Serializable {
	
	private int id;
	private String name = "";
	private String hostname = "";
	private int tcpPort = 0;
	private String fileServeProtocol = "";
	private int fileServeTcpPort = 0;
	private String fileServePath = "";
	private ServiceClass serviceClass;
	private boolean recordMaster = false;
	  
	/**
	 * 
	 */
	public Service() {
		serviceClass = ServiceClass.UNKN;
	}
	
	/**
	 * 
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the fileServePath.
	 */
	public String getFileServePath() {
		return fileServePath;
	}
	

	/**
	 * @param fileServePath The fileServePath to set.
	 */
	public void setFileServePath(String fileServePath) {
		this.fileServePath = fileServePath;
	}

	public int getFileServeTcpPort() {
		return fileServeTcpPort;
	}

	public void setFileServeTcpPort(int fileServeTcpPort) {
		this.fileServeTcpPort = fileServeTcpPort;
	}

	public int getTcpPort() {
		return tcpPort;
	}

	public void setTcpPort(int tcpPort) {
		this.tcpPort = tcpPort;
	}

	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the fileServeProtocol.
	 */
	public String getFileServeProtocol() {
		return fileServeProtocol;
	}
	

	/**
	 * @param fileServeProtocol The fileServeProtocol to set.
	 */
	public void setFileServeProtocol(String fileServeProtocol) {
		this.fileServeProtocol = fileServeProtocol;
	}
	

	/**
	 * @hibernate.property
	 * unique="true"
	 * not-null="true"
	 * @return Returns the gUID.
	 */
	public String getName() {
		return name;
	}
	

	/**
	 * @param name The name to set.
	 */
	public void setName(String name) {
		this.name = name;
	}
	

	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the hostname.
	 */
	public String getHostname() {
		return hostname;
	}
	

	/**
	 * @param hostname The hostname to set.
	 */
	public void setHostname(String hostname) {
		this.hostname = hostname;
	}
	

	/**
	 * @hibernate.id
	 * generator-class="native"
	 * @return Returns the id.
	 */
	@Id(generate=GeneratorType.AUTO)
	public int getId() {
		return id;
	}
	

	/**
	 * @param id The id to set.
	 */
	public void setId(int id) {
		this.id = id;
	}

	public ServiceClass getServiceClass() {
		return serviceClass;
	}

	public void setServiceClass(ServiceClass serviceClass) {
		this.serviceClass = serviceClass;
	}

	public boolean isRecordMaster() {
		return recordMaster;
	}

	public void setRecordMaster(boolean cdrMaster) {
		this.recordMaster = cdrMaster;
	}
	

}