com.openexchange.admin.rmi.dataobjects
Interface NameAndIdObject

All Known Implementing Classes:
Context, Database, Group, Resource, Server, User

public interface NameAndIdObject

This interface forces 4 Methods for a data object so that we can easily combine some operations

Author:
d7

Method Summary
 Integer getId()
          Returns the id of this object
 String getName()
          Returns the name of this object
 void setId(Integer id)
          Sets the id for this object
 void setName(String name)
          Sets the name for this object
 

Method Detail

setId

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

Parameters:
id - An Integer object containing the id

getId

Integer getId()
Returns the id of this object

Returns:
An Integer object containing the id

setName

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

Parameters:
name - A String containing the name

getName

String getName()
Returns the name of this object

Returns:
A String containing the name