| java.lang.Object golfShop.data.user.UserStore golfShop.data.user.FileUserStore
FileUserStore | public class FileUserStore extends UserStore (Code) | | This is one flavor of a UserStore. The storage medium in this case
is a text file. To save the users, use serialization to write the whole
vector of them to the file. To read users, un-serialize from the file.
All other operations occur on the copy in memory.
author: Andrew John version: $Revision: 1.1 $ |
addUserToUserStore | protected void addUserToUserStore(UserDOImpl user)(Code) | | Add to memory, then write out the whole set of users to the file.
|
initializeUserStore | protected void initializeUserStore()(Code) | | Initialize the set of users.
|
initializeUserStore | protected void initializeUserStore(String fn)(Code) | | |
lookupUserFromUserStore | protected UserDOImpl lookupUserFromUserStore(String username)(Code) | | We already read all the users. Just lookup from memory.
|
updateUserInUserStore | protected void updateUserInUserStore(UserDOImpl user)(Code) | | Even though only the one user has changed, we must write out
the whole vector of all users.
|
usernameInUserStore | protected boolean usernameInUserStore(String username)(Code) | | Just search the copy of the objects in memory.
|
|
|