FantasySportsModule 0.0.2-dev

org.fanfoot.db
Class ID

java.lang.Object
  |
  +--org.fanfoot.db.ID

public class ID
extends java.lang.Object

Provides utility methods for generating ID's for database entries.

Author:
rgardler

Constructor Summary
ID()
           
 
Method Summary
static java.lang.String getPlayerID()
          Create an ID number for a player in the indicated postion
static void setPlayerID(int id)
          Set the player ID to the supplied value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ID

public ID()
Method Detail

setPlayerID

public static void setPlayerID(int id)
Set the player ID to the supplied value

Parameters:
id - The new playerID value

getPlayerID

public static java.lang.String getPlayerID()
                                    throws DBException
Create an ID number for a player in the indicated postion

Returns:
an ID which consists of the position code followed by a unique number for that position
Throws:
DBException - if the position is not recognised

FantasySportsModule 0.0.2-dev

Copyright © 2003 We know What you Want.net. All Rights Reserved.