university
Class ID

java.lang.Object
  extended by university.ID
All Implemented Interfaces:
java.io.Serializable

public class ID
extends java.lang.Object
implements java.io.Serializable

Singleton class to create IDs.

See Also:
Serialized Form

Method Summary
static ID getFactory()
          Returns an instance of the ID class
 int getNextId()
          Returns the next id.
 void setId(int count)
          Set the value of the next id number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static ID getFactory()
Returns an instance of the ID class

Returns:
An instance of ID

getNextId

public int getNextId()
Returns the next id.

Returns:
Returns the the next id

setId

public void setId(int count)
Set the value of the next id number

Parameters:
count - the next id number to use