userManager.user
Class Builder

java.lang.Object
  extended by userManager.user.Builder

public class Builder
extends Object

Builder class will construct the user object based on information obtained from the database.


Method Summary
 User build(String username)
          This method will build the user class.
static Builder getInstance()
          Method will return existing Builder class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Builder getInstance()
Method will return existing Builder class. If no Builder class exists, it will call the class constructor, creates an instance of it and returns it to caller.

Returns:
Builder will return instance of the Builder class.

build

public User build(String username)
This method will build the user class. At current development stage it construct the user object for iteration 1 requirement only. Method will read database annd build user's firstname, lastname and username.

Returns:
User constructed user object