com.openexchange.admin.rmi.dataobjects
Class Server

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

public class Server
extends java.lang.Object
implements java.io.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(java.lang.Object obj)
           
 java.lang.Integer getId()
          Returns the id of this server object
 java.lang.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(java.lang.Integer id)
          Sets the id for this server object
 void setName(java.lang.String name)
          Sets the name for this server object
 java.lang.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 java.lang.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(java.lang.Integer id)
Sets the id for this server object

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

getName

public java.lang.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(java.lang.String name)
Sets the name for this server object

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object