|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents a class that can provide a means to update entities in the data model. The data source is scoped to a specific user and password combination.
CelebDataSourceFactory| Method Summary | |
java.lang.String |
buyShares(Celebrity celebrity,
int number)
Buy shares in a Celebrity. |
java.util.Set |
getCelebrities()
Return an array of all the visible Celebrities for this data source. |
java.util.Set |
getLeagues()
Return an Set of all the Mini League that the assoicated account is a member. |
java.lang.String |
getUsername()
Returns the username of the account assoicated to this source. |
boolean |
isLive()
Is this data source live; does the load the details directly from the remote Celebdaq server. |
java.lang.String |
sellShares(Celebrity celebrity,
int number)
Sell shares in a Celebrity. |
void |
setUserPassword(java.lang.String user,
java.lang.String password)
Update teh username and password assigned to this datasource |
void |
updateCelebrity(Celebrity celeb)
This method updates the specific Celebrity with data from the managed source. |
void |
updateLeague(MiniLeague league)
This method updates the specific League with data from the managed source. |
void |
updatePortfolio(Portfolio portfolio)
This method updates the specific Portfolio with data from the managed source. |
| Method Detail |
public java.lang.String buyShares(Celebrity celebrity,
int number)
throws java.io.IOException
celebrity - Celebrity to buynumber - Number to buy
java.io.IOException - Problem contacting server
public java.util.Set getCelebrities()
throws java.io.IOException
java.io.IOException - Problem contacting server
public java.util.Set getLeagues()
throws java.io.IOException
java.io.IOException - Problem contacting serverpublic java.lang.String getUsername()
public boolean isLive()
public java.lang.String sellShares(Celebrity celebrity,
int number)
throws java.io.IOException
celebrity - Celebrity to sellnumber - Number to sell
java.io.IOException - Problem contacting server
public void setUserPassword(java.lang.String user,
java.lang.String password)
user - New userpassword - New Password
public void updateCelebrity(Celebrity celeb)
throws java.io.IOException
celeb - Celebrity to update.
java.io.IOException - Problem contacting server
public void updateLeague(MiniLeague league)
throws java.io.IOException
league - The league to update.
java.io.IOException - Problem contacting server
public void updatePortfolio(Portfolio portfolio)
throws java.io.IOException
portfolio - The portfolio to update.
java.io.IOException - Problem contacting server
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||