com.openexchange.admin.rmi.dataobjects
Class Server

java.lang.Object
  extended by com.openexchange.admin.rmi.dataobjects.Server
All Implemented Interfaces:
NameAndIdObject, Serializable

public class Server
extends Object
implements Serializable, NameAndIdObject

This class represents a server.

Author:
Manuel Kraft, Carsten Hoeger, Dennis Sieben
See Also:
Serialized Form

Constructor Summary
Server()
          Initiates an empty server object
 
Method Summary
 boolean equals(Object obj)
           
 Integer getId()
          Returns the id of this server object
 String getName()
          Returns the name of this server object
 int hashCode()
           
 boolean isIdset()
          Used to check if the id field of this server object has been changed
 boolean isNameset()
          Used to check if the name field of this server object has been changed
 void setId(Integer id)
          Sets the id for this server object
 void setName(String name)
          Sets the name for this server object
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Server

public Server()
Initiates an empty server object

Method Detail

getId

public Integer getId()
Returns the id of this server object

Specified by:
getId in interface NameAndIdObject
Returns:
An Integer containing the id

setId

public void setId(Integer id)
Sets the id for this server object

Specified by:
setId in interface NameAndIdObject
Parameters:
id - An Integer containing the id

getName

public String getName()
Returns the name of this server object

Specified by:
getName in interface NameAndIdObject
Returns:
A String containing the name

setName

public void setName(String name)
Sets the name for this server object

Specified by:
setName in interface NameAndIdObject
Parameters:
name - A String containing the name

toString

public String toString()
Overrides:
toString in class Object

isIdset

public boolean isIdset()
Used to check if the id field of this server object has been changed

Returns:
true if set; false if not

isNameset

public boolean isNameset()
Used to check if the name field of this server object has been changed

Returns:
true if set; false if not

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object